Since I didn;t have any luck with C++ I decided to turn to C# in writing a C# client consuming the services of an Apache SOAP server.
The point is that I ran wsdl.exe using the wsdl file I was offered and the proxy was generated. Nice & tight, so far.
I managed to make a request to the SOAP server, but in turn I've got an exception like:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
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 MainService.PerformAction(String str1, String str2) in <source & line>
at App.Form1.button2_Click(Object sender, EventArgs e)
The point is that using a sniffer, I can see that the server is receiving my request and that it sends back a perfect response. The problem is when receiving the response.
The call looks like:
mainService.PerformAction(param1,param2);
1) Is there any way I can determine the proxy NOT to deserialize the response?
2) Is there any good tutorial on writing C# clients for Apache SOAP servers?
3) Can I invoke a call on the SOAP server without having to generate a proxy from the wsdl file?
Thank you.
The point is that I ran wsdl.exe using the wsdl file I was offered and the proxy was generated. Nice & tight, so far.
I managed to make a request to the SOAP server, but in turn I've got an exception like:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
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 MainService.PerformAction(String str1, String str2) in <source & line>
at App.Form1.button2_Click(Object sender, EventArgs e)
The point is that using a sniffer, I can see that the server is receiving my request and that it sends back a perfect response. The problem is when receiving the response.
The call looks like:
mainService.PerformAction(param1,param2);
1) Is there any way I can determine the proxy NOT to deserialize the response?
2) Is there any good tutorial on writing C# clients for Apache SOAP servers?
3) Can I invoke a call on the SOAP server without having to generate a proxy from the wsdl file?
Thank you.