2017-10-18 441 views
0

當使用下列URL(在我自己的網絡服務器上)開始SOAPUI SOAP項目(從我的本地計算機): http://myinternaldomainname/test2?wsdlSOAPUI錯誤:不關閉標籤

出現以下錯誤:

Error loading [ http://myinternaldomainname/test2?wsdl] : org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: does not close tag

服務器添加到我的hosts文件:

192.168.2.1 myexampledomain 

當我保存WSDL頁面WSDL文件的結果,我可以打開WSDL文件作爲新的SOAP公關oject。

我使用的Zend \肥皂\自動發現生成這個WSDL:

<?xml version="1.0" encoding="UTF-8"?> 
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://myexampledomain/test2" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="MySoapService" targetNamespace="http://myexampledomain/test2"> 
    <types> 
     <xsd:schema targetNamespace="http://myexampledomain/test2"/> 
    </types> 
    <portType name="MySoapServicePort"> 
     <operation name="method1"> 
      <documentation>This method takes ...</documentation> 
      <input message="tns:method1In"/> 
      <output message="tns:method1Out"/> 
     </operation> 
     <operation name="method2"> 
      <documentation>This method takes ...</documentation> 
      <input message="tns:method2In"/> 
      <output message="tns:method2Out"/> 
     </operation> 
    </portType> 
    <binding name="MySoapServiceBinding" type="tns:MySoapServicePort"> 
     <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> 
     <operation name="method1"> 
      <soap:operation soapAction="http://myexampledomain/test2#method1"/> 
      <input> 
       <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://myexampledomain/test2"/> 
      </input> 
      <output> 
       <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://myexampledomain/test2"/> 
      </output> 
     </operation> 
     <operation name="method2"> 
      <soap:operation soapAction="http://myexampledomain/test2#method2"/> 
      <input> 
       <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://myexampledomain/test2"/> 
      </input> 
      <output> 
       <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://myexampledomain/test2"/> 
      </output> 
     </operation> 
    </binding> 
    <service name="MySoapServiceService"> 
     <port name="MySoapServicePort" binding="tns:MySoapServiceBinding"> 
      <soap:address location="http://myexampledomain/test2"/> 
     </port> 
    </service> 
    <message name="method1In"> 
     <part name="inputParam" type="xsd:int"/> 
    </message> 
    <message name="method1Out"> 
     <part name="return" type="xsd:string"/> 
    </message> 
    <message name="method2In"> 
     <part name="inputParam1" type="xsd:int"/> 
     <part name="inputParam2" type="xsd:string"/> 
    </message> 
    <message name="method2Out"> 
     <part name="return" type="xsd:float"/> 
    </message> 
</definitions> 

在SOAPUI我想代理禁用/啓用/自動

+0

我曾經在SOPHOS安全性方面遇到過很多問題,這些問題在我的WSDL之前搞亂了一些細節。我承擔的是在項目的文件夾中使用WSDL文件。這些安全設備有時很難排除故障。 – Namphibian

+0

在瀏覽器中打開wsdl文件時會發生什麼情況? – Rao

+0

它將XML顯示爲XML。在頁面的頂部顯示:該XML文件似乎沒有任何與其關聯的樣式信息。文檔樹如下所示。 – Arthur

回答

0

的問題造成的,因爲一個登錄頁面,防止我使用SOAP UI中的WSDL。