简体   繁体   中英

WCF proxy classes for java soap service

I want to create .net WCF Proxy classes based on WSDL which is describing java soap service. when I try to generate classes I get following error

Error: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is depend
ent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='mywsdl.wsdl']/wsdl:binding[@name='SomethingSoap12
']
XPath to Error Source: //wsdl:definitions[@targetNamespace='mywsdl.wsdl']/wsdl:service[@name='test']/wsdl:port[@name='SomethingSoap12']

svcutil generates .CS file but when I call service and look at the SOAP message it is different from what service expects.

我们通过使用WSDL的在线版本而不是WSDL和xsds的转储版本运行svcutil.exe来解决了此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM