You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Niek Palm <ni...@atosorigin.com> on 2009/08/20 11:02:47 UTC
adding soap heander in combination with soap conversion
Hi,
I am trying to add extra information in the soap headers. I have a soap
service speaking SOAP 1.1 and potentials clients speaking SOAP 1.1 or
SOAP 1.2. I using synpase 1.2
So first I have an endpoint defining my service.
<endpoint name="MyEndpoint">
<address uri="http://localhost:8300/soap/service" format="soap11" />
</endpoint>
And next a proxy for my clients, The proxy can be invoked over http and
https with SOAP 1.1 or SOAP 1.2 messages.
<proxy name="MyProxy" transport="http, https">
<target>
<inSequence>
<header name="mi:info" value="some text" action="set"
xmlns:mi="http://www.company.com/metainfo" />
<send><endpoint key="MyEndpoint"></endpoint></send>
</inSequence>
</target>
</proxy>
When I simulate a client speaking SOAP 1.1 everything works well. The
headers is added to the messages. In case I send a source message by the
client using SOAP 1.2 the extra header is not added by synapse.
Can anybody help me. Is my configuration wrong? Or is this potential a
bug in synapse or axis? Is it possible that the headers are lost during
transformation from soap12 to soap11?
Regards, Niek Palm
Re: adding soap heander in combination with soap conversion
Posted by Ruwan Linton <ru...@gmail.com>.
Hi Niek,
I had a quick look at the code which is doing the conversion of the message
format from SOAP12 to SOAP11 in the trunk/1.3 active branch and it seems to
be copying all the headers including the custom headers. I will test your
exact scenario when I get some free time, but at the same time can you
please have a look at this with a build from the 1.3 branch??
If there is any issue on the 1.3 branch we can get that fixed for the 1.3
release of Synapse which will be released soon.
Thanks,
Ruwan
2009/8/20 Niek Palm <ni...@atosorigin.com>
> Hi,
>
> I am trying to add extra information in the soap headers. I have a soap
> service speaking SOAP 1.1 and potentials clients speaking SOAP 1.1 or
> SOAP 1.2. I using synpase 1.2
>
> So first I have an endpoint defining my service.
>
> <endpoint name="MyEndpoint">
> <address uri="http://localhost:8300/soap/service" format="soap11" />
> </endpoint>
>
> And next a proxy for my clients, The proxy can be invoked over http and
> https with SOAP 1.1 or SOAP 1.2 messages.
>
> <proxy name="MyProxy" transport="http, https">
> <target>
> <inSequence>
> <header name="mi:info" value="some text" action="set"
> xmlns:mi="http://www.company.com/metainfo" />
> <send><endpoint key="MyEndpoint"></endpoint></send>
> </inSequence>
> </target>
> </proxy>
>
> When I simulate a client speaking SOAP 1.1 everything works well. The
> headers is added to the messages. In case I send a source message by the
> client using SOAP 1.2 the extra header is not added by synapse.
>
> Can anybody help me. Is my configuration wrong? Or is this potential a
> bug in synapse or axis? Is it possible that the headers are lost during
> transformation from soap12 to soap11?
>
> Regards, Niek Palm
>
>
>
--
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@wso2.com; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com