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 Vairamuthu Thayapavan <vt...@opensource.lk> on 2004/01/02 05:43:22 UTC

Re: Missing element inFault error:

hi sriram

wht version of the axis u used? use lastest version of the axis.

regards
vtpavan

> I get the following error when i run WSDL2Java
>
> java.io.IOException: ERROR: Missing <soap:fault> element inFault
> "getQueues_faul
> t1" in operation "getQueues_fault1", in binding getQueues
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.faultsFromSOAPFault(Symb
> olTable.java:2023)
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolT
> able.java:1801)
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:577)
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:421 )
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:408)
>         at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:393)
>         at
> org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
>         at java.lang.Thread.run(Thread.java:536)
>
>
> My wsdl file has things like this:
> <wsdl:definitions name="myService"
> targetNamespace="http://filenet.com/fnpe/ws/1.0"
> xmlns:map="http://systinet.com/mapping/"
> xmlns:ns0="http://systinet.com/xsd/SchemaTypes/"
> xmlns:ns1="http://schemas.xmlsoap.org/ws/2002/12/secext"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
> xmlns:tns="http://filenet.com/fnpe/ws/1.0"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <wsdl:binding name="myService_SOAP12" type="tns:myService">
>     <soap12:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
>        <wsdl:operation name="getQueues">
>       <map:java-operation name="getQueues"
> signature="KClbTGZpbGVuZXQvdncvd3Mvc2VydmVyL1F1ZXVlSW5mbzs=" />
>       <soap12:operation
> soapAction="http://myCompany.com/fnpe/ws/1.0ProcessEngineService#getQueu
> es#KClbTGZpbGVuZXQvdncvd3Mvc2VydmVyL1F1ZXVlSW5mbzs
> <http://myCompany.com/fnpe/ws/1.0ProcessEngineService#getQueues#KClbTGZp
> bGVuZXQvdncvd3Mvc2VydmVyL1F1ZXVlSW5mbzs> =" style="document" />
>      <wsdl:input>
>           <soap12:body use="literal" />
>          <soap:header message="tns:myService_header" part="header_0"
> use="literal" />
>     </wsdl:input>
>      <wsdl:output>
>         <soap12:body use="literal" />
>     </wsdl:output>
>      <wsdl:fault name="getQueues_fault1">
>         <soap12:fault
> encodingStyle="http://www.w3.org/2002/06/soap-encoding"
> name="getQueues_fault1" use="literal" />
>     </wsdl:fault>
>   </wsdl:operation>
>
> I guess the soap12 namespace specfied for the fault element is not being
> recognized by axis and that is why it is complaining. If anyone knows
> what the problem is here please let me know.
> thanks
> sriram