You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Alexis Midon (JIRA)" <ji...@apache.org> on 2009/04/17 19:34:15 UTC
[jira] Closed: (ODE-310) Fault in HTTP binding
[ https://issues.apache.org/jira/browse/ODE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexis Midon closed ODE-310.
----------------------------
> 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
> Assignee: Alexis Midon
> Fix For: 1.3.1
>
>
> 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.