Title: Message
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=" />
     <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

Reply via email to