ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis Midon (JIRA)" <j...@apache.org>
Subject [jira] Created: (ODE-310) Fault in HTTP binding
Date Thu, 19 Jun 2008 19:05:45 GMT
Fault in HTTP binding
---------------------

                 Key: ODE-310
                 URL: https://issues.apache.org/jira/browse/ODE-310
             Project: ODE
          Issue Type: Sub-task
            Reporter: Alexis Midon


Wsdl HTTP binding completely skips faults. However it could be useful.
So ODE will support fault in HTTP binding.

For 500s if a fault is defined in the WSDL and the response body contains the corresponding
xml doc, then reply with a fault ; else reply with failure.
For other codes (300s & 400s), reply with failure but put the response body in the details
element and break down the status-line into 3 separate elements: HTTP-Version, Status-Code,
Reason-Phrase. This will save some painful string manipulations with XPath.

<definitions xmlns:odex="http://www.apache.org/ode/type/extension/http">
    <wsdl:message name="PUTRequest">
        <wsdl:part name="articleId" type="xsd:string"/>
        <wsdl:part name="article" element="ns1:article"/>
    </wsdl:message>
    <wsdl:message name="UpdateFault">
        <wsdl:part name="comment" element="fault"/>
    </wsdl:message>
    <wsdl:message name="NoPartMessage"/>

    <wsdl:portType name="ArticlePortType">
        <wsdl:operation name="doPUT">
            <wsdl:input message="ns1:PUTRequest"/>
            <wsdl:output message="ns1:NoPartMessage"/>
            <wsdl:fault name="UpdateFailed" message="UpdateFault"/>
        </wsdl:operation>
    </wsdl:portType>

<wsdl:binding name="binding" type="ns1:ArticlePortType">
    <wsdl:operation name="doPUT">
            <http:operation location=""/>
            <odex:binding verb="PUT"/>
            <wsdl:input>
                <http:urlReplacement/>
                <!-- fault binding -->
                <odex:fault name="UpdateFailed"/>
            </wsdl:input>
            <wsdl:output/>
        </wsdl:operation>
</bind>
</definitions>

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


Mime
View raw message