You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "donald yang (JIRA)" <ji...@apache.org> on 2007/03/07 13:49:24 UTC

[jira] Created: (AXIS2-2294) AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL

AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL
---------------------------------------------------------------------

                 Key: AXIS2-2294
                 URL: https://issues.apache.org/jira/browse/AXIS2-2294
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.1.1
            Reporter: donald yang


WSDL generator of AXIS2 has a bug. When I retrieve the WSDL for Version web service using the following method:
 
http://localhost:8080/axis2/services/Version?wsdl
 
the generated WSDL is invalid if a operation has fault message. The SOAP 12 binding element is correct, just SOAP1.1 binding element[1] is invalid. It should be [2].
 
[1] original SOAP1.1 binding element

<wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http " style="document"/>
 <wsdl:operation name="getVersion">
<soap:operation soapAction="urn:getVersion" style="document"/>
 <wsdl:input> 
<soap:body use="literal"/>
</wsdl:input>
 <wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
 <wsdl:fault name="getVersionFault"> 
<soap:body use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
 
 
[2] correct one 
<wsdl:fault name="getVersionFault">
<soap12:fault use="literal" name="getVersionFault"/>
</wsdl:fault> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2294) AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-2294.
-------------------------------------------------

    Resolution: Fixed

fixed the issue with the revision 547985.

> AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2294
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2294
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: donald yang
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>
> WSDL generator of AXIS2 has a bug. When I retrieve the WSDL for Version web service using the following method:
>  
> http://localhost:8080/axis2/services/Version?wsdl
>  
> the generated WSDL is invalid if a operation has fault message. The SOAP 12 binding element is correct, just SOAP1.1 binding element[1] is invalid. It should be [2].
>  
> [1] original SOAP1.1 binding element
> <wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http " style="document"/>
>  <wsdl:operation name="getVersion">
> <soap:operation soapAction="urn:getVersion" style="document"/>
>  <wsdl:input> 
> <soap:body use="literal"/>
> </wsdl:input>
>  <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
>  <wsdl:fault name="getVersionFault"> 
> <soap:body use="literal"/>
> </wsdl:fault>
> </wsdl:operation>
> </wsdl:binding>
>  
>  
> [2] correct one 
> <wsdl:fault name="getVersionFault">
> <soap12:fault use="literal" name="getVersionFault"/>
> </wsdl:fault> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2294) AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489603 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2294:
-----------------------------------------------------

Do you have a problem with the saved wsdl file with wsdl2java tool? please try with the RC2 we have fixed this to save the original wsdl file.

> AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2294
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2294
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: donald yang
>         Assigned To: Amila Chinthaka Suriarachchi
>
> WSDL generator of AXIS2 has a bug. When I retrieve the WSDL for Version web service using the following method:
>  
> http://localhost:8080/axis2/services/Version?wsdl
>  
> the generated WSDL is invalid if a operation has fault message. The SOAP 12 binding element is correct, just SOAP1.1 binding element[1] is invalid. It should be [2].
>  
> [1] original SOAP1.1 binding element
> <wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http " style="document"/>
>  <wsdl:operation name="getVersion">
> <soap:operation soapAction="urn:getVersion" style="document"/>
>  <wsdl:input> 
> <soap:body use="literal"/>
> </wsdl:input>
>  <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
>  <wsdl:fault name="getVersionFault"> 
> <soap:body use="literal"/>
> </wsdl:fault>
> </wsdl:operation>
> </wsdl:binding>
>  
>  
> [2] correct one 
> <wsdl:fault name="getVersionFault">
> <soap12:fault use="literal" name="getVersionFault"/>
> </wsdl:fault> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2294) AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-2294:
-------------------------------------

    Priority: Blocker  (was: Major)

> AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2294
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2294
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: donald yang
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>
> WSDL generator of AXIS2 has a bug. When I retrieve the WSDL for Version web service using the following method:
>  
> http://localhost:8080/axis2/services/Version?wsdl
>  
> the generated WSDL is invalid if a operation has fault message. The SOAP 12 binding element is correct, just SOAP1.1 binding element[1] is invalid. It should be [2].
>  
> [1] original SOAP1.1 binding element
> <wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http " style="document"/>
>  <wsdl:operation name="getVersion">
> <soap:operation soapAction="urn:getVersion" style="document"/>
>  <wsdl:input> 
> <soap:body use="literal"/>
> </wsdl:input>
>  <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
>  <wsdl:fault name="getVersionFault"> 
> <soap:body use="literal"/>
> </wsdl:fault>
> </wsdl:operation>
> </wsdl:binding>
>  
>  
> [2] correct one 
> <wsdl:fault name="getVersionFault">
> <soap12:fault use="literal" name="getVersionFault"/>
> </wsdl:fault> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2294) AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-2294:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2294
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2294
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: donald yang
>         Assigned To: Amila Chinthaka Suriarachchi
>
> WSDL generator of AXIS2 has a bug. When I retrieve the WSDL for Version web service using the following method:
>  
> http://localhost:8080/axis2/services/Version?wsdl
>  
> the generated WSDL is invalid if a operation has fault message. The SOAP 12 binding element is correct, just SOAP1.1 binding element[1] is invalid. It should be [2].
>  
> [1] original SOAP1.1 binding element
> <wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http " style="document"/>
>  <wsdl:operation name="getVersion">
> <soap:operation soapAction="urn:getVersion" style="document"/>
>  <wsdl:input> 
> <soap:body use="literal"/>
> </wsdl:input>
>  <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
>  <wsdl:fault name="getVersionFault"> 
> <soap:body use="literal"/>
> </wsdl:fault>
> </wsdl:operation>
> </wsdl:binding>
>  
>  
> [2] correct one 
> <wsdl:fault name="getVersionFault">
> <soap12:fault use="literal" name="getVersionFault"/>
> </wsdl:fault> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2294) AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL

Posted by "Stuart Owen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492023 ] 

Stuart Owen commented on AXIS2-2294:
------------------------------------

Trying the 1.2-RC2 build I get a different but related problem with the fault block. Now instead of declaring soap:body, it declared soap12:fault for both the SOAP11 and SOAP12 bindings. This leads to the same error when running the Axis1 wsdl2java, being "ERROR: Missing <soap:fault> element inFault "getVersionFault"

For the SOAP11 binding should this not be <soap:fault/>, and <soap12:fault/> for the SOAP12 binding?

The SOAP11 binding for the getVersion wsdl included with axis2 by default looks like the following. As you see the namespace prefix for the rest of that block uses soap:, only the fault uses soap12: ..

<wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
   <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
      <wsdl:operation name="getVersion">
      <soap:operation soapAction="urn:getVersion" style="document"/>
      <wsdl:input>
      <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
      <soap:body use="literal"/>
      </wsdl:output>
         <wsdl:fault name="getVersionFault">
            <soap12:fault use="literal" name="getVersionFault"/>
        </wsdl:fault>
   </wsdl:operation>
</wsdl:binding>

> AXIS2 generates invalid fault element for SOAP1.1 binding in the WSDL
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2294
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2294
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.1.1
>            Reporter: donald yang
>         Assigned To: Amila Chinthaka Suriarachchi
>
> WSDL generator of AXIS2 has a bug. When I retrieve the WSDL for Version web service using the following method:
>  
> http://localhost:8080/axis2/services/Version?wsdl
>  
> the generated WSDL is invalid if a operation has fault message. The SOAP 12 binding element is correct, just SOAP1.1 binding element[1] is invalid. It should be [2].
>  
> [1] original SOAP1.1 binding element
> <wsdl:binding name="VersionSOAP11Binding" type="axis2:VersionPortType">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http " style="document"/>
>  <wsdl:operation name="getVersion">
> <soap:operation soapAction="urn:getVersion" style="document"/>
>  <wsdl:input> 
> <soap:body use="literal"/>
> </wsdl:input>
>  <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
>  <wsdl:fault name="getVersionFault"> 
> <soap:body use="literal"/>
> </wsdl:fault>
> </wsdl:operation>
> </wsdl:binding>
>  
>  
> [2] correct one 
> <wsdl:fault name="getVersionFault">
> <soap12:fault use="literal" name="getVersionFault"/>
> </wsdl:fault> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org