[英]How to consume a C# webservice from Java having only the wsdl
I'm new to webservices. 我是Web服务的新手。 I have to develop a webservice client for a what seems a WCF webservice.
我必须为似乎WCF Web服务开发一个Web服务客户端。 I have only the wsdl but the problem is that the wsdl does not define any wsdl:service.
我只有wsdl,但问题是wsdl没有定义任何wsdl:service。
I 've already tried with wsdl2java but it gives me a warning 我已经尝试过wsdl2java,但是它给了我一个警告
WARNING: WSDL document http://184.13.69.115:7085/XOneGenericLoader/v2/mex?wsdl=wsdl0 does not define any services
警告:WSDL文档http://184.13.69.115:7085/XOneGenericLoader/v2/mex?wsdl=wsdl0没有定义任何服务
The webservice also defines a binding like this : <wsdl:binding name="ExternalInterfaces-SOAP-Binding-Streaming_IXOneGenericLoaderService" type="tns:IXOneGenericLoaderService"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
Any ideas ? 该Web服务还定义了这样的绑定:
<wsdl:binding name="ExternalInterfaces-SOAP-Binding-Streaming_IXOneGenericLoaderService" type="tns:IXOneGenericLoaderService"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
什么想法吗?
Just a hunch : have you tried using the ?singleWsdl
parameter ? 只是预感:您是否尝试过使用
?singleWsdl
参数?
On my web service I have 2 interfaces : 在我的Web服务上,我有2个接口:
This for svcutil.exe : 这对于svcutil.exe:
svcutil.exe http://localhost:8890/CalfitecECC/WsvcCalfitec.svc?wsdl
and this for full wsdl file : 这是完整的wsdl文件:
http://localhost:8890/CalfitecECC/WsvcCalfitec.svc?singleWsdl
try ?wsdl
or ?singlewsdl
rather than ?wsdl=wsdl0
尝试使用
?wsdl
或?singlewsdl
而不是?wsdl=wsdl0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.