synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-555) When doing REST invocation on Proxy Services 'namespace mismatch' error thrown
Date Wed, 03 Jun 2009 07:24:07 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715845#action_12715845
] 

Andreas Veithen commented on SYNAPSE-555:
-----------------------------------------

Keith, can you check if your patch will also solve SYNAPSE-431? Thanks.

> When doing REST invocation on Proxy Services 'namespace mismatch' error thrown
> ------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-555
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-555
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>            Reporter: Keith Godwin Chapman
>            Priority: Critical
>             Fix For: 1.3
>
>
> If a proxy service is created in the following manner (Always convert incoming request
to SOAP 1.1)
> <?xml version="1.0" encoding="UTF-8"?>
> <syn:definitions xmlns:syn="http://ws.apache.org/ns/synapse">
>     <syn:proxy name="test2" transports="https http" startOnLoad="true" trace="disable">
>         <syn:target>
>             <syn:endpoint>
>                 <syn:address uri="http://localhost:9000/services/SimpleStockQuoteService"
format="soap11"/>
>             </syn:endpoint>
>             <syn:inSequence>
>                 <syn:log/>
>             </syn:inSequence>
>             <syn:outSequence>
>                 <syn:log/>
>             </syn:outSequence>
>         </syn:target>
>         <syn:publishWSDL uri="http://localhost:9000/services/SimpleStockQuoteService?wsdl"/>
>     </syn:proxy>
>     <syn:sequence name="main">
>         <syn:in>
>             <syn:log level="full"/>
>             <syn:filter source="get-property('To')" regex="http://localhost:9000.*">
>                 <syn:send/>
>             </syn:filter>
>         </syn:in>
>         <syn:out>
>             <syn:send/>
>         </syn:out>
>     </syn:sequence>
>     <syn:sequence name="fault">
>         <syn:log/>
>     </syn:sequence>
> </syn:definitions>
> The SOAP message sent out by Synapse does not conform to the WSDL. Hence the error described
in https://wso2.org/jira/browse/CARBON-3931 occurs. The bug was in the way synapse tries to
build the SOAP message from the REST request. This works properly in plain Axis2, but synapse
was using its own logic to build the message.
> This patch fixes Synapse such that it uses the logic in Axis2 to handle REST request.
This bug has been in Synapse for a long time but surfaced due to the change in namespace in
the sample WSDL.
> This patch also addresses an issue in Handling of the DELETE method. the same axis2 logic
can be called for this method.
> This 

-- 
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


Mime
View raw message