hi,
i want to test the ici to implement the phone functions. in the first step i want to subscribe me. i added a web resource to my project. and this is the code:
try
{
subscribe s = new subscribe ( );
s.appId = "11";
s.appUrl = "http://pc-gh:80";
s.channelType = "1";
s.containerId = "825";
subscribeResponse sr = cont.subscribe ( s );
}
catch ( InvalidOperationException er )
{
Console.WriteLine ( er.Message.ToString () );
}
catch ( System.Web.Services.Protocols.SoapException er2 )
{
Console.WriteLine ( er2.Message.ToString ());
Console.WriteLine ( er2.Source.ToString () );
Console.WriteLine ( er2.StackTrace.ToString ( ) );
Console.WriteLine ( er2.TargetSite.ToString ( ) );
}
and i become this error:
Client Error
System.Web.Services
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at TestSAP2.WebReference7.IciContainerService.subscribe(subscribe subscribe1) in C:\Dokumente und Einstellungen\ghoernig\Eigene Dateien\Visual Studio Projects\TestSAP2\Web References\WebReference7\Reference.cs:line 67
at TestSAP2.Form1.button1_Click(Object sender, EventArgs e) in c:\dokumente und einstellungen\ghoernig\eigene dateien\visual studio projects\testsap2\form1.cs:line 119
System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean)
this is my wsdl-file:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by WSDLDefinitionsParser -->
http://schemas.xmlsoap.org/wsdl/" name="IciContainerInterfaceDefinifions" targetNamespace="urn:IciContainerInterface" xmlns:xs=" http://www.w3.org/2001/XMLSchema" xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:IciContainerInterface">
<wsdl:types>
<xs:schema targetNamespace="urn:IciContainerInterface">
http://www.w3.org/2001/XMLSchema" name="unsubscribe">
<complexType>
<sequence>
<element name="appUrl" type="xs:string"/>
<element name="appId" type="xs:string"/>
</sequence>
</complexType>
</element>
http://www.w3.org/2001/XMLSchema" name="unsubscribeResponse">
<complexType>
<sequence>
<element name="response">
<complexType>
<sequence/>
</complexType>
</element>
</sequence>
</complexType>
</element>
http://www.w3.org/2001/XMLSchema" name="user" type="xs:string"/>
http://www.w3.org/2001/XMLSchema" name="language" type="xs:string"/>
http://www.w3.org/2001/XMLSchema" name="subscribe">
<complexType>
<sequence>
<element name="appUrl" type="xs:string"/>
<element name="appId" type="xs:string"/>
<element name="channelType" type="xs:string"/>
<element name="containerId" type="xs:string"/>
</sequence>
</complexType>
</element>
http://www.w3.org/2001/XMLSchema" name="subscribeResponse">
<complexType>
<sequence>
<element name="response">
<complexType>
<sequence/>
</complexType>
</element>
</sequence>
</complexType>
</element>
</xs:schema>
</wsdl:types>
<wsdl:message name="IciContainer_unsubscribe_Request">
<wsdl:part name="request" element="tns:unsubscribe"/>
</wsdl:message>
<wsdl:message name="IciContainer_unsubscribe_Response">
<wsdl:part name="response" element="tns:unsubscribeResponse"/>
</wsdl:message>
<wsdl:message name="SOAPFaultExceptionMessage">
<wsdl:part name="errorMessage" type="xs:string"/>
</wsdl:message>
<wsdl:message name="unsubscribe_RequestHeaders">
<wsdl:part name="user" element="tns:user"/>
<wsdl:part name="language" element="tns:language"/>
</wsdl:message>
<wsdl:message name="IciContainer_subscribe_Request">
<wsdl:part name="request" element="tns:subscribe"/>
</wsdl:message>
<wsdl:message name="IciContainer_subscribe_Response">
<wsdl:part name="response" element="tns:subscribeResponse"/>
</wsdl:message>
<wsdl:message name="subscribe_RequestHeaders">
<wsdl:part name="user" element="tns:user"/>
<wsdl:part name="language" element="tns:language"/>
</wsdl:message>
<wsdl:portType name="IciContainerInterface">
<wsdl:operation name="unsubscribe">
<wsdl:input name="unsubscribeRequest" message="tns:IciContainer_unsubscribe_Request"/>
<wsdl:output name="unsubscribeResponse" message="tns:IciContainer_unsubscribe_Response"/>
<wsdl:fault name="SOAPFaultException" message="tns:SOAPFaultExceptionMessage"/>
</wsdl:operation>
<wsdl:operation name="subscribe">
<wsdl:input name="subscribeRequest" message="tns:IciContainer_subscribe_Request"/>
<wsdl:output name="subscribeResponse" message="tns:IciContainer_subscribe_Response"/>
<wsdl:fault name="SOAPFaultException" message="tns:SOAPFaultExceptionMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="IciContainerSOAPHTTPBinding" type="tns:IciContainerInterface">
http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="unsubscribe">
http://inqmy.com/soapdispatcher/rpc/bcbici/IciContainerBean"/>
<wsdl:input name="unsubscribeRequest">
<soap:body use="literal"/>
<soap:header message="tns:unsubscribe_RequestHeaders" part="user" use="literal"/>
<soap:header message="tns:unsubscribe_RequestHeaders" part="language" use="literal"/>
</wsdl:input>
<wsdl:output name="unsubscribeResponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="SOAPFaultException">
<soap:fault name="tns:SOAPFaultException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="subscribe">
http://inqmy.com/soapdispatcher/rpc/bcbici/IciContainerBean"/>
<wsdl:input name="subscribeRequest">
<soap:body use="literal"/>
<soap:header message="tns:subscribe_RequestHeaders" part="user" use="literal"/>
<soap:header message="tns:subscribe_RequestHeaders" part="language" use="literal"/>
</wsdl:input>
<wsdl:output name="subscribeResponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="SOAPFaultException">
<soap:fault name="tns:SOAPFaultException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="IciContainerService">
<wsdl:port name="IciContainerServicePort" binding="tns:IciContainerSOAPHTTPBinding">
<soap:address location="http://127.0.0.1:1080/soapdispatcher"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
are there any ideas - thanks for help !!