开发者

C# client calling Java SOAP web service gets SAXException

开发者 https://www.devze.com 2023-02-17 18:32 出处:网络
I have a C# service reference to a Java web service.The soap that the client objects uses l开发者_StackOverflow社区ooks like:

I have a C# service reference to a Java web service. The soap that the client objects uses l开发者_StackOverflow社区ooks like:

<s:Envelope ...><s:Body ...><requestArgument>...</requestArgument></s:Body></s:Envelope>

It needs to look like:

<s:Envelope ...><s:Body ...><methodName><requestArgument>...</requestArgument></methodName></s:Body></s:Envelope>

How do I get the service reference to include the method name in the soap?


Have your Java SOAP web service generate a WSDL. With that, you should be able to create the correct C# client stubs and marshaling objects using the wsdl.exe tool

0

精彩评论

暂无评论...
验证码 换一张
取 消