I am having a problem with Java2WSDL in Axis 1.0.

The problem is when I declare an exception in my EJB interface and when Java2WSDL generates corresponding WSDL, in the binding information it does not generate "name" attribute for the SOAP fault. Because of this sproxy tool from .NET is not able to compile the WSDL to generate client side stubs. Has anyone faced similar problem? It seems like a bug in Axis 1.0 ...

Thanks in advance for your help.

Ajay

EJB interface
--------------------

 public String getQueryCapability (String queryCapabilityID)
                   throws QueryCapabilityNotFoundException

WSDL - binding part only
-------------------------------------
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
....
other stuff
....

<wsdl:binding name="QueryCapabilitySoapBinding" type="impl:QueryCapability">
    <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getQueryCapability">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getQueryCapabilityRequest">
          <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="aqs" use="encoded"/>
     </wsdl:input>
     <wsdl:output name="getQueryCapabilityResponse">
          <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="aqs" use="encoded"/>
     </wsdl:output>
     <wsdl:fault name="QueryCapabilityNotFoundException">
          <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="aqs" use="encoded"/>   <-------------------------------- "name" attribute MISSING HERE as per wsdlsoap namespace
     </wsdl:fault>
   </wsdl:operation>
</wsdl:binding>

Reply via email to