C# client to Java web service
- by tomislavg
I have received wsdl file from outside company.
I'm using VS2005 c#.
With wsdl.exe I have created class containing methods and types for the given web service.
To connect to the service outside company requires that certificate from the smart card is inputed in the header.
I think i have achieved this with service.ClientCertificates.Add("Path to exported cert" - at least for now, after probably later i will take it from Certificate Store
When service is called there are three steps that are taken and visible by the Fidller(Web Debugging Proxy)).
service is called on the url http://test.company.com/webservice.wsdl
service redirects the request to certificate server and pin needs to be inputed to get cookie for the server
service is again redirected to url http://test.company.com/webservice.wsdl
At point 1. I can see that my request send to the server contains ....
but at point 3. i can not see request` just a empty string.
The exception is thrown Msg: Possible SOAP version mismatch: Envelope namespace
http://schemas.xmlsoap.org/wsdl/ was unexpected. Expecting
http://schemas.xmlsoap.org/soap/envelope/.
Does somebody have an example how to connect to java web service with certificate and AlowRedirect enabled for the web service?
Any ideas what i am doing wrong are more that welcome.