You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Ruwan Linton (JIRA)" <ji...@apache.org> on 2009/08/07 10:53:14 UTC
[jira] Commented: (SYNAPSE-566) Content of Soap 1.1 faultcode not
correctly transformed into Soap 1.2 faultcode
[ https://issues.apache.org/jira/browse/SYNAPSE-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740449#action_12740449 ]
Ruwan Linton commented on SYNAPSE-566:
--------------------------------------
Thanks for the feedback Adriaan, I will get this fixed and should be able include this for the 1.3 release as well.
Thanks,
Ruwan
> Content of Soap 1.1 faultcode not correctly transformed into Soap 1.2 faultcode
> -------------------------------------------------------------------------------
>
> Key: SYNAPSE-566
> URL: https://issues.apache.org/jira/browse/SYNAPSE-566
> Project: Synapse
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2
> Reporter: Adriaan Wisse
> Assignee: Ruwan Linton
>
> We are using something like the following synapse configuration to convert soap 1.2 messages to soap 1.1 messages
> <proxy name="SynapseProxy" transports="http, https">
> <target>
> <endpoint name="Soap11Webservice">
> <address uri="http://localhost/MySoap11Webservice" format="soap11" />
> </endpoint>
> </target>
> </proxy>
> This is all working well except when we are receiving a Soap Fault from the 'MySoap11Webservice' like this:
> <?xml version='1.0' encoding='utf-8'?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Server</faultcode>
> <faultstring>Something went wrong</faultstring>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Synapse transforms this message using the org.apache.synapse.core.axis2.SOAPUtils into the following soap 1.2 message:
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Body>
> <soapenv:Fault>
> <soapenv:Code><soapenv:Value>SOAP-ENV:Server</soapenv:Value></soapenv:Code>
> <soapenv:Reason><soapenv:Text xml:lang="en">Something went wrong</soapenv:Text></soapenv:Reason>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
> There are 2 problems here:
> 1. In Soap 1.2 Server should be translated to Receiver (also see http://java.sun.com/javaee/5/docs/tutorial/doc/bnbhr.html where in Table 19-1 SOAP 'Fault Code Values' the other correct fault codes are)
> 2. The namespace prefix SOAP-ENV where Server is prefixed with is not known and should be soapenv.
--
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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org