You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Chan, Herman" <He...@inquent.com> on 2007/04/05 18:07:16 UTC

Web service exception error with axis 1.2 client

Hi all:  I have the following wsdl.

 

The element "findDirectoryListFault" is generated since I am throwing a
AxisFault exception in my webservice (using the POJO approach).  

 

On my client side, I am using Axis 1.2 to generated the stubs, however,
I am getting the following error:

 

java.io.IOException: ERROR: Missing <soap:fault> element inFault
"findDirectoryListFault" in operation "findDirectoryListFault", in
binding findDirect

oryList

        at
org.apache.axis.wsdl.symbolTable.SymbolTable.faultsFromSOAPFault(SymbolT
able.java:2849)

        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolTabl
e.java:2540)

        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:7
44)

        at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)

        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5
18)

        at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
95)

        at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)

        at java.lang.Thread.run(Unknown Source)

 

Any idea?

 

 

<wsdl:definitions xmlns:axis2="http://webservice.iqps.inquent.com"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:ns0="http://utils.iqps.inquent.com/xsd"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:ns1="http://webservice.iqps.inquent.com/xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://webservice.iqps.inquent.com">

  <wsdl:documentation>DirectoryListService</wsdl:documentation>

  <wsdl:types>

    <xs:schema xmlns:ax21="http://utils.iqps.inquent.com/xsd"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://utils.iqps.inquent.com/xsd">

      <xs:element name="DirectoryList" type="ax21:DirectoryList" />

      <xs:complexType name="DirectoryList">

        <xs:sequence>

          <xs:element maxOccurs="unbounded" name="dirList"
type="xs:anyType" />

          <xs:element name="error" nillable="true" type="xs:string" />

          <xs:element name="warning" nillable="true" type="xs:string" />

        </xs:sequence>

      </xs:complexType>

    </xs:schema>

    <xs:schema xmlns:ns="http://webservice.iqps.inquent.com/xsd"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://webservice.iqps.inquent.com/xsd">

      <xs:element name="findDirectoryListFault">

        <xs:complexType>

          <xs:sequence>

            <xs:element name="findDirectoryListFault" type="xs:anyType"
/>

          </xs:sequence>

        </xs:complexType>

 

      </xs:element>

      <xs:element name="findDirectoryList">

        <xs:complexType>

          <xs:sequence>

            <xs:element name="sPath" nillable="true" type="xs:string" />

            <xs:element name="iLevel" nillable="true" type="xs:int" />

            <xs:element name="iNumDir" nillable="true" type="xs:int" />

          </xs:sequence>

        </xs:complexType>

      </xs:element>

      <xs:element name="findDirectoryListResponse">

        <xs:complexType>

          <xs:sequence>

            <xs:element name="return" nillable="true"
type="ns0:DirectoryList" />

          </xs:sequence>

        </xs:complexType>

      </xs:element>

 

    </xs:schema>

  </wsdl:types>

  <wsdl:message name="findDirectoryListMessage">

    <wsdl:part name="part1" element="ns1:findDirectoryList" />

  </wsdl:message>

  <wsdl:message name="findDirectoryListResponse">

    <wsdl:part name="part1" element="ns1:findDirectoryListResponse" />

  </wsdl:message>

  <wsdl:message name="findDirectoryListFault">

    <wsdl:part name="part1" element="ns1:findDirectoryListFault" />

  </wsdl:message>

  <wsdl:portType name="DirectoryListServicePortType">

    <wsdl:operation name="findDirectoryList">

      <wsdl:input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
message="axis2:findDirectoryListMessage"
wsaw:Action="urn:findDirectoryList" />

      <wsdl:output message="axis2:findDirectoryListResponse" />

      <wsdl:fault message="axis2:findDirectoryListFault"
name="findDirectoryListFault" />

    </wsdl:operation>

  </wsdl:portType>

  <wsdl:binding name="DirectoryListServiceSOAP11Binding"
type="axis2:DirectoryListServicePortType">

    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />

    <wsdl:operation name="findDirectoryList">

      <soap:operation soapAction="urn:findDirectoryList"
style="document" />

      <wsdl:input>

        <soap:body use="literal" />

      </wsdl:input>

      <wsdl:output>

        <soap:body use="literal" />

      </wsdl:output>

      <wsdl:fault name="findDirectoryListFault">

        <soap:body use="literal" />

      </wsdl:fault>

    </wsdl:operation>

  </wsdl:binding>

  <wsdl:binding name="DirectoryListServiceSOAP12Binding"
type="axis2:DirectoryListServicePortType">

    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />

    <wsdl:operation name="findDirectoryList">

      <soap12:operation soapAction="urn:findDirectoryList"
style="document" />

      <wsdl:input>

        <soap12:body use="literal" />

      </wsdl:input>

      <wsdl:output>

        <soap12:body use="literal" />

      </wsdl:output>

      <wsdl:fault name="findDirectoryListFault">

        <soap12:fault use="literal" name="findDirectoryListFault" />

      </wsdl:fault>

    </wsdl:operation>

  </wsdl:binding>

  <wsdl:binding name="DirectoryListServiceHttpBinding"
type="axis2:DirectoryListServicePortType">

    <http:binding verb="POST" />

    <wsdl:operation name="findDirectoryList">

      <http:operation location="findDirectoryList" />

      <wsdl:input>

        <mime:content type="text/xml" />

      </wsdl:input>

      <wsdl:output>

        <mime:content type="text/xml" />

      </wsdl:output>

    </wsdl:operation>

  </wsdl:binding>

  <wsdl:service name="DirectoryListService">

    <wsdl:port name="DirectoryListServiceSOAP11port_http"
binding="axis2:DirectoryListServiceSOAP11Binding">

      <soap:address
location="http://xx.xx.xx.xxx:xxxx/axis2/services/DirectoryListService"
/>

    </wsdl:port>

    <wsdl:port name="DirectoryListServiceSOAP12port_http"
binding="axis2:DirectoryListServiceSOAP12Binding">

      <soap12:address location="http:// xx.xx.xx.xxx:xxxx
/axis2/services/DirectoryListService" />

    </wsdl:port>

    <wsdl:port name="DirectoryListServiceHttpport1"
binding="axis2:DirectoryListServiceHttpBinding">

      <http:address location="http:// xx.xx.xx.xxx:xxxx
/axis2/rest/DirectoryListService" />

    </wsdl:port>

  </wsdl:service>

</wsdl:definitions>

 

Herman Chan

Software Developer, Development

InQuent Technologies a NetworkSolutions company

O: 416.642.4296 | M:  416.302.6412 | www.inquent.com
<http://www.inquent.com/>