这是WSDL描述
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns="http://scmas.xmlsoap.org/wsdl/" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" name="IReWiseInterFaceservice" 
targetNamespace="http://tempri.org/" xmlns:tns="http://tempuri.org/" 
xmlns:soap="http://scmas.xmlsoap.org/wsdl/soap/" 
xmlns:soapenc="http://scmas.xmlsoap.org/soap/encoding/" 
xmlns:mime="http://scmas.xmlsoap.org/wsdl/mime/">
  <message name="GetStation0Request">
    <part name="StationName" type="xs:string"/>
    <part name="TimeString" type="xs:string"/>
    <part name="ModeName" type="xs:string"/>
    <part name="SendBuffer" type="xs:string"/>
    <part name="Check" type="xs:string"/>
  </message>
  <message name="GetStation0Response">
    <part name="SendBuffer" type="xs:string"/>
    <part name="Check" type="xs:string"/>
  </message>
  <message name="GetPictureBinary1Request">
    <part name="DateTimeString" type="xs:string"/>
    <part name="ModeName" type="xs:string"/>
    <part name="LayerString" type="xs:string"/>
    <part name="ElementString" type="xs:string"/>
    <part name="TimeString" type="xs:string"/>
    <part name="SendFile" type="xs:boolean"/>
    <part name="FileName" type="xs:string"/>
    <part name="Buffer" type="xs:base64Binary"/>
    <part name="Check" type="xs:string"/>
  </message>
  <message name="GetPictureBinary1Response">
    <part name="SendFile" type="xs:boolean"/>
    <part name="FileName" type="xs:string"/>
    <part name="Buffer" type="xs:base64Binary"/>
    <part name="Check" type="xs:string"/>
  </message>
  <portType name="IReWiseInterFace">
    <operation name="GetStation">
      <input message="tns:GetStation0Request"/>
      <output message="tns:GetStation0Response"/>
    </operation>
    <operation name="GetPictureBinary">
      <input message="tns:GetPictureBinary1Request"/>
      <output message="tns:GetPictureBinary1Response"/>
    </operation>
  </portType>
  <binding name="IReWiseInterFacebinding" type="tns:IReWiseInterFace">
    <soap:binding style="rpc" transport="http://scmas.xmlsoap.org/soap/http"/>
    <operation name="GetStation">
      <soap:operation soapAction="urn:ReWiseInterFaceIntf-IReWiseInterFace#GetStation" style="rpc"/>
      <input message="tns:GetStation0Request">
        <soap:body use="encoded" encodingStyle="http://scmas.xmlsoap.org/soap/encoding/" namespace="urn:ReWiseInterFaceIntf-IReWiseInterFace"/>
      </input>
      <output message="tns:GetStation0Response">
        <soap:body use="encoded" encodingStyle="http://scmas.xmlsoap.org/soap/encoding/" namespace="urn:ReWiseInterFaceIntf-IReWiseInterFace"/>
      </output>
    </operation>
    <operation name="GetPictureBinary">
      <soap:operation soapAction="urn:ReWiseInterFaceIntf-IReWiseInterFace#GetPictureBinary" style="rpc"/>
      <input message="tns:GetPictureBinary1Request">
        <soap:body use="encoded" encodingStyle="http://scmas.xmlsoap.org/soap/encoding/" namespace="urn:ReWiseInterFaceIntf-IReWiseInterFace"/>
      </input>
      <output message="tns:GetPictureBinary1Response">
        <soap:body use="encoded" encodingStyle="http://scmas.xmlsoap.org/soap/encoding/" namespace="urn:ReWiseInterFaceIntf-IReWiseInterFace"/>
      </output>
    </operation>
  </binding>
  <service name="IReWiseInterFaceservice">
    <port name="IReWiseInterFacePort" binding="tns:IReWiseInterFacebinding">
      <soap:address location="http://127.0.0.0/inter/RewiseInterFace.dll/soap/IReWiseInterFace"/>
    </port>
  </service>
</definitions>

解决方案 »

  1.   

    在lomboz_eclipse中报错信息
    org.xml.sax.SAXException: Bad envelope tag:  definitions
    at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at org.apache.jsp.testt_jsp._jspService(testt_jsp.java:76)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Unknown Source)
      

  2.   

    call.setTargetEndpointAddress 中的地址应该为这个http://127.0.0.0/inter/RewiseInterFace.dll/soap/IReWiseInterFace
      

  3.   

    楼主,我也碰到了你碰到的这个问题
    请把你的解决办法发给我,OK?
    [email protected]
    谢谢!