soapui访问Axis2发布的webservice返回异常SAXParseException

原因是encodingtyle元素not bound,wsdl如下:

 <?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://192.168.5.191:8088/dataSync/services/MonitorDataLoadService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:impl="http://192.168.5.191:8088/dataSync/services/MonitorDataLoadService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:intf="http://192.168.5.191:8088/dataSync/services/MonitorDataLoadService">
  <wsdl:message name="weatherDataLoadRequest">
    <wsdl:part name="xml" type="soapenc:string">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="weatherDataLoadResponse">
    <wsdl:part name="weatherDataLoadReturn" type="soapenc:string">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="MonitorDataLoadService">
    <wsdl:operation name="weatherDataLoad" parameterOrder="xml">
      <wsdl:input name="weatherDataLoadRequest" message="impl:weatherDataLoadRequest">
    </wsdl:input>
      <wsdl:output name="weatherDataLoadResponse" message="impl:weatherDataLoadResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="MonitorDataLoadServiceSoapBinding" type="impl:MonitorDataLoadService">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="weatherDataLoad">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="weatherDataLoadRequest">
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.security.ezone.thtf.com"/>
      </wsdl:input>
      <wsdl:output name="weatherDataLoadResponse">
        <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://192.168.5.191:8088/dataSync/services/MonitorDataLoadService"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="MonitorDataLoadServiceService">
    <wsdl:port name="MonitorDataLoadService" binding="impl:MonitorDataLoadServiceSoapBinding">
      <wsdlsoap:address location="http://192.168.5.191:8088/dataSync/services/MonitorDataLoadService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问