背景:我朋友的公司(以下简称公司)与电信合作,电信那边用java调用公司.net的 webservice,但是那边无法正常调用,那边说无法提供技术支持,也给不了出错信息反馈,也不知道他们是用的axis、xfire还是cxf,反正只知道是java。但是自己用.net能调,自己用java的cxf也能正常调用,就他们电信那边java不能调。头大了。电信给了他们的wsdl模板, 大家帮我分析下,可能有什么原因,
以下是.net生成的wsdl:
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<wsdl:definitions xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:tns=\"http://localhost:5119/DxCallBackService/Service.asmx\" xmlns:s=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\" xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" targetNamespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">
<wsdl:types />
<wsdl:message name=\"HelloWorldSoapIn\">
<wsdl:part name=\"ss\" type=\"s:string\" />
</wsdl:message>
<wsdl:message name=\"HelloWorldSoapOut\">
<wsdl:part name=\"HelloWorldResult\" type=\"s:string\" />
</wsdl:message>
<wsdl:message name=\"RecvSMSSoapIn\">
<wsdl:part name=\"caller\" type=\"s:string\" />
<wsdl:part name=\"time\" type=\"s:string\" />
<wsdl:part name=\"cont\" type=\"s:string\" />
<wsdl:part name=\"ucNum\" type=\"s:string\" />
</wsdl:message>
<wsdl:message name=\"RecvSMSSoapOut\">
<wsdl:part name=\"RecvSMSResult\" type=\"s:string\" />
</wsdl:message>
<wsdl:message name=\"EchoOfSendSMSSoapIn\">
<wsdl:part name=\"ucNum\" type=\"s:string\" />
<wsdl:part name=\"cee\" type=\"s:string\" />
<wsdl:part name=\"msgid\" type=\"s:int\" />
<wsdl:part name=\"res\" type=\"s:int\" />
<wsdl:part name=\"recvt\" type=\"s:string\" />
</wsdl:message>
<wsdl:message name=\"EchoOfSendSMSSoapOut\" />
<wsdl:message name=\"NotifyStatusSoapIn\">
<wsdl:part name=\"eventID\" type=\"s:int\" />
<wsdl:part name=\"sessionID\" type=\"s:string\" />
<wsdl:part name=\"res\" type=\"s:int\" />
<wsdl:part name=\"para1\" type=\"s:string\" />
</wsdl:message>
<wsdl:message name=\"NotifyStatusSoapOut\" />
<wsdl:portType name=\"CallBackServiceSoap\">
<wsdl:operation name=\"HelloWorld\">
<wsdl:input message=\"tns:HelloWorldSoapIn\" />
<wsdl:output message=\"tns:HelloWorldSoapOut\" />
</wsdl:operation>
<wsdl:operation name=\"RecvSMS\">
<wsdl:input message=\"tns:RecvSMSSoapIn\" />
<wsdl:output message=\"tns:RecvSMSSoapOut\" />
</wsdl:operation>
<wsdl:operation name=\"EchoOfSendSMS\">
<wsdl:input message=\"tns:EchoOfSendSMSSoapIn\" />
<wsdl:output message=\"tns:EchoOfSendSMSSoapOut\" />
</wsdl:operation>
<wsdl:operation name=\"NotifyStatus\">
<wsdl:input message=\"tns:NotifyStatusSoapIn\" />
<wsdl:output message=\"tns:NotifyStatusSoapOut\" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name=\"CallBackServiceSoap\" type=\"tns:CallBackServiceSoap\">
<soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\" style=\"rpc\" />
<wsdl:operation name=\"HelloWorld\">
<soap:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/HelloWorld\" style=\"rpc\" />
<wsdl:input>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:input>
<wsdl:output>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name=\"RecvSMS\">
<soap:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/RecvSMS\" style=\"rpc\" />
<wsdl:input>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:input>
<wsdl:output>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name=\"EchoOfSendSMS\">
<soap:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/EchoOfSendSMS\" style=\"rpc\" />
<wsdl:input>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:input>
<wsdl:output>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name=\"NotifyStatus\">
<soap:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/NotifyStatus\" style=\"rpc\" />
<wsdl:input>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:input>
<wsdl:output>
<soap:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name=\"CallBackServiceSoap12\" type=\"tns:CallBackServiceSoap\">
<soap12:binding transport=\"http://schemas.xmlsoap.org/soap/http\" style=\"rpc\" />
<wsdl:operation name=\"HelloWorld\">
<soap12:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/HelloWorld\" style=\"rpc\" />
<wsdl:input>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:input>
<wsdl:output>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name=\"RecvSMS\">
<soap12:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/RecvSMS\" style=\"rpc\" />
<wsdl:input>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:input>
<wsdl:output>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name=\"EchoOfSendSMS\">
<soap12:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/EchoOfSendSMS\" style=\"rpc\" />
<wsdl:input>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:input>
<wsdl:output>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name=\"NotifyStatus\">
<soap12:operation soapAction=\"http://localhost:5119/DxCallBackService/Service.asmx/NotifyStatus\" style=\"rpc\" />
<wsdl:input>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:input>
<wsdl:output>
<soap12:body use=\"encoded\" namespace=\"http://localhost:5119/DxCallBackService/Service.asmx\" encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name=\"CallBackService\">
<wsdl:port name=\"CallBackServiceSoap\" binding=\"tns:CallBackServiceSoap\">
<soap:address location=\"http://202.105.13.142/DXCallBackService/Service.asmx\" />
</wsdl:port>
<wsdl:port name=\"CallBackServiceSoap12\" binding=\"tns:CallBackServiceSoap12\">
<soap12:address location=\"http://202.105.13.142/DXCallBackService/Service.asmx\" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>以下是电信那边给的wsdl模板;
http://202.105.212.146:8080/jboss-net/services/TestCallBack?wsdl
我还是顺便贴出来吧:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
-<wsdl:definitions targetNamespace=\"http://202.105.212.146:8080/jboss-net/services/TestCallBack\" xmlns:impl=\"http://202.105.212.146:8080/jboss-net/services/TestCallBack\" xmlns:intf=\"http://202.105.212.146:8080/jboss-net/services/TestCallBack\" xmlns:apachesoap=\"http://xml.apache.org/xml-soap\" xmlns:wsdlsoap=\"http://schemas.xmlsoap.org/wsdl/soap/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">
-<wsdl:types>
-<schema xmlns=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"http://202.105.212.146:8080/jboss-net/services/TestCallBack\">
<importnamespace=\"http://schemas.xmlsoap.org/soap/encoding/\" />
-<complexType name=\"ArrayOf_xsd_string\">
-<complexContent>
-<restriction base=\"soapenc:Array\">
<attributeref=\"soapenc:arrayType\" wsdl:arrayType=\"xsd:string[]\" />
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>
-<wsdl:message name=\"testRequest\">
<wsdl:partname=\"url\" type=\"xsd:string\" />
</wsdl:message>
-<wsdl:message name=\"testResponse\">
<wsdl:partname=\"testReturn\" type=\"impl:ArrayOf_xsd_string\" />
</wsdl:message>
-<wsdl:portType name=\"TestCallBack\">
-<wsdl:operation name=\"test\" parameterOrder=\"url\">
<wsdl:inputname=\"testRequest\" message=\"impl:testRequest\" />
<wsdl:outputname=\"testResponse\" message=\"impl:testResponse\" />
</wsdl:operation>
</wsdl:portType>
-<wsdl:binding name=\"TestCallBackSoapBinding\" type=\"impl:TestCallBack\">
<wsdlsoap:bindingstyle=\"rpc\" transport=\"http://schemas.xmlsoap.org/soap/http\" />
-<wsdl:operation name=\"test\">
<wsdlsoap:operationsoapAction=\"\" />
-<wsdl:input name=\"testRequest\">
<wsdlsoap:bodyuse=\"encoded\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" namespace=\"http://proxy.webservice.uc.fin.huawei.com\" />
</wsdl:input>
-<wsdl:output name=\"testResponse\">
<wsdlsoap:bodyuse=\"encoded\" encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" namespace=\"http://202.105.212.146:8080/jboss-net/services/TestCallBack\" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
-<wsdl:service name=\"TestCallBackService\">
-<wsdl:port name=\"TestCallBack\" binding=\"impl:TestCallBackSoapBinding\">
<wsdlsoap:addresslocation=\"http://202.105.212.146:8080/jboss-net/services/TestCallBack\" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>