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 "Dennis Sosnoski (JIRA)" <ji...@apache.org> on 2006/12/19 05:08:21 UTC

[jira] Commented: (AXIS2-1882) problem in picking the axis fault element from the binding element (in WSDL 1.1)

    [ http://issues.apache.org/jira/browse/AXIS2-1882?page=comments#action_12459535 ] 
            
Dennis Sosnoski commented on AXIS2-1882:
----------------------------------------

Actually, I think the original code may have been correct. The BP simply says:

R2721  A wsdl:binding in a DESCRIPTION MUST have the name  attribute specified on all contained soapbind:fault elements.

R2754 In a DESCRIPTION, the value of the name attribute on a soapbind:fault element MUST match the value of the name attribute on its parent wsdl:fault element.

So going back to the original WSDL from the mailing list:

      <wsdl:fault name="SDD2Error">
        <soap:fault use="literal" name="SDD2ErrorFault" namespace="" />
      </wsdl:fault>

As I read the BP this is wrong, in that the two name attributes should match. But that's only the BP, not WSDL, and in any case the name on the soap:fault is redundant - it should always match the parent wsdl:fault name attribute, so that can just be used instead. I suspect the real problem in the original WSDL was that the name used on the <wsdl:fault> element within the <wsdl:binding>/<wsdl:operation> didn't match that used on the corresponding <wsdl:portType>/<wsdl:operation>/<wsdl:fault>:

    <wsdl:operation name="SDD2TransportReplyOp">
      <wsdl:input message="tns:SDD2TransportReplySoapIn" />
      <wsdl:output message="tns:SDD2TransportReplySoapOut" />
      <wsdl:fault name="SDD2ErrorFault" message="tns:SDD2Error" />
    </wsdl:operation>

(note SDD2ErrorFault name vs. SDD2Error name).

> problem in picking the axis fault element from the binding element (in WSDL 1.1)
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-1882
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1882
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: any
>            Reporter: Amila Chinthaka Suriarachchi
>         Assigned To: Davanum Srinivas
>            Priority: Critical
>         Attachments: kernal.patch, xmlbeans.patch
>
>
> please see the mailing list thread
> http://marc.theaimsgroup.com/?l=axis-dev&m=116623106228381&w=2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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