用于java soap服务的WCF代理类

时间:2012-06-26 22:26:22

标签: java wcf soap svcutil.exe

我想基于描述java soap服务的WSDL创建.net WCF代理类。当我尝试生成类时,我得到以下错误

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生成.CS文件但是当我调用服务并查看SOAP消息时,它与服务期望的不同。

1 个答案:

答案 0 :(得分:0)

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