2016-12-28 52 views
0

我已經使用Apache軸線2不能調用通過web服務資源管理器在WSDL蝕

我剛剛創建了一個簡單的類,然後創建該類的web服務創建的Web服務。

WSDL已成功創建,我可以通過URL訪問相同的內容。現在,當我嘗試使用Web服務瀏覽器調用Web服務方法時,錯誤即將到來。

任何人都可以幫忙嗎?

ERROR

IWAB0135E發生意外錯誤。 多跳週期中檢測

SERVER - 的Apache Tomcat 7個 Apache Axis的版本2 - axis2-1.6.0

WSDL

<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://com" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://com"> 
<wsdl:documentation> 
    Please Type your service description here 
</wsdl:documentation> 
<wsdl:types> 
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://com"> 
     <xs:element name="getSum"> 
      <xs:complexType> 
       <xs:sequence> 
        <xs:element minOccurs="0" name="a" type="xs:int"/> 
        <xs:element minOccurs="0" name="b" type="xs:int"/> 
       </xs:sequence> 
      </xs:complexType> 
     </xs:element> 
     <xs:element name="getSumResponse"> 
      <xs:complexType> 
       <xs:sequence> 
        <xs:element minOccurs="0" name="return" type="xs:int"/> 
       </xs:sequence> 
      </xs:complexType> 
     </xs:element> 
     <xs:element name="getMessage"> 
      <xs:complexType> 
       <xs:sequence/> 
      </xs:complexType> 
     </xs:element> 
     <xs:element name="getMessageResponse"> 
      <xs:complexType> 
       <xs:sequence> 
        <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/> 
       </xs:sequence> 
      </xs:complexType> 
     </xs:element> 
    </xs:schema> 
</wsdl:types> 
<wsdl:message name="getSumRequest"> 
    <wsdl:part name="parameters" element="ns:getSum"/> 
</wsdl:message> 
<wsdl:message name="getSumResponse"> 
    <wsdl:part name="parameters" element="ns:getSumResponse"/> 
</wsdl:message> 
<wsdl:message name="getMessageRequest"> 
    <wsdl:part name="parameters" element="ns:getMessage"/> 
</wsdl:message> 
<wsdl:message name="getMessageResponse"> 
    <wsdl:part name="parameters" element="ns:getMessageResponse"/> 
</wsdl:message> 
<wsdl:portType name="DemoPortType"> 
    <wsdl:operation name="getSum"> 
     <wsdl:input message="ns:getSumRequest" wsaw:Action="urn:getSum"/> 
     <wsdl:output message="ns:getSumResponse" wsaw:Action="urn:getSumResponse"/> 
    </wsdl:operation> 
    <wsdl:operation name="getMessage"> 
     <wsdl:input message="ns:getMessageRequest" wsaw:Action="urn:getMessage"/> 
     <wsdl:output message="ns:getMessageResponse" wsaw:Action="urn:getMessageResponse"/> 
    </wsdl:operation> 
</wsdl:portType> 
<wsdl:binding name="DemoSoap11Binding" type="ns:DemoPortType"> 
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> 
    <wsdl:operation name="getSum"> 
     <soap:operation soapAction="urn:getSum" style="document"/> 
     <wsdl:input> 
      <soap:body use="literal"/> 
     </wsdl:input> 
     <wsdl:output> 
      <soap:body use="literal"/> 
     </wsdl:output> 
    </wsdl:operation> 
    <wsdl:operation name="getMessage"> 
     <soap:operation soapAction="urn:getMessage" style="document"/> 
     <wsdl:input> 
      <soap:body use="literal"/> 
     </wsdl:input> 
     <wsdl:output> 
      <soap:body use="literal"/> 
     </wsdl:output> 
    </wsdl:operation> 
</wsdl:binding> 
<wsdl:binding name="DemoSoap12Binding" type="ns:DemoPortType"> 
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> 
    <wsdl:operation name="getSum"> 
     <soap12:operation soapAction="urn:getSum" style="document"/> 
     <wsdl:input> 
      <soap12:body use="literal"/> 
     </wsdl:input> 
     <wsdl:output> 
      <soap12:body use="literal"/> 
     </wsdl:output> 
    </wsdl:operation> 
    <wsdl:operation name="getMessage"> 
     <soap12:operation soapAction="urn:getMessage" style="document"/> 
     <wsdl:input> 
      <soap12:body use="literal"/> 
     </wsdl:input> 
     <wsdl:output> 
      <soap12:body use="literal"/> 
     </wsdl:output> 
    </wsdl:operation> 
</wsdl:binding> 
<wsdl:binding name="DemoHttpBinding" type="ns:DemoPortType"> 
    <http:binding verb="POST"/> 
    <wsdl:operation name="getSum"> 
     <http:operation location="getSum"/> 
     <wsdl:input> 
      <mime:content type="text/xml" part="parameters"/> 
     </wsdl:input> 
     <wsdl:output> 
      <mime:content type="text/xml" part="parameters"/> 
     </wsdl:output> 
    </wsdl:operation> 
    <wsdl:operation name="getMessage"> 
     <http:operation location="getMessage"/> 
     <wsdl:input> 
      <mime:content type="text/xml" part="parameters"/> 
     </wsdl:input> 
     <wsdl:output> 
      <mime:content type="text/xml" part="parameters"/> 
     </wsdl:output> 
    </wsdl:operation> 
</wsdl:binding> 
<wsdl:service name="Demo"> 
    <wsdl:port name="DemoHttpSoap11Endpoint" binding="ns:DemoSoap11Binding"> 
     <soap:address location="http://localhost:8080/DemoService/services/Demo.DemoHttpSoap11Endpoint/"/> 
    </wsdl:port> 
    <wsdl:port name="DemoHttpSoap12Endpoint" binding="ns:DemoSoap12Binding"> 
     <soap12:address location="http://localhost:8080/DemoService/services/Demo.DemoHttpSoap12Endpoint/"/> 
    </wsdl:port> 
    <wsdl:port name="DemoHttpEndpoint" binding="ns:DemoHttpBinding"> 
     <http:address location="http://localhost:8080/DemoService/services/Demo.DemoHttpEndpoint/"/> 
    </wsdl:port> 
</wsdl:service> 

UPDATE - - 我剛剛使用soap ui來使用這個Web服務WSDL,並且我得到了完美的響應

回答

0

爲了他人的利益,我想向您提供導致此問題的原因。

出現此問題的原因是存在內部代理,其中請求要發送到一臺服務器,然後重定向到另一臺服務器。

一旦我刪除代理我的代碼開始工作正常。

Cherio。

相關問題