adding soap heander in combination with soap conversion

View: New views
4 Messages — Rating Filter:   Alert me  

adding soap heander in combination with soap conversion

by Niek Palm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



ÿþDit bericht is vertrouwelijk en kan geheime informatie bevatten enkel
bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd,
verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te
vernietigen.
Aangezien de integriteit van het bericht niet veilig gesteld is middels
verzending via internet, kan Atos Origin niet aansprakelijk worden gehouden
voor de inhoud daarvan.
Hoewel wij ons inspannen een virusvrij netwerk te hanteren, geven
wij geen enkele garantie dat dit bericht virusvrij is, noch aanvaarden wij
enige aansprakelijkheid voor de mogelijke aanwezigheid van een virus in dit
bericht.
 
Op al onze rechtsverhoudingen, aanbiedingen en overeenkomsten waaronder
Atos Origin goederen en/of diensten levert zijn met uitsluiting van alle
andere voorwaarden de Leveringsvoorwaarden van Atos Origin van toepassing.
Deze worden u op aanvraag direct kosteloos toegezonden.
 
This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail
in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the sender
does not warrant that this transmission is virus-free and will not be
liable for any damages resulting from any virus transmitted.
 
On all offers and agreements under which Atos Origin supplies goods and/or
services of whatever nature, the Terms of Delivery from Atos Origin
exclusively apply.
The Terms of Delivery shall be promptly submitted to you on your request.
 
Atos Origin Nederland B.V. / Utrecht
KvK Utrecht 30132762

Re: adding soap heander in combination with soap conversion

by Ruwan Linton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <niek.palm@...>

> 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@...; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Parent Message unknown RE: Re: adding soap heander in combination with soap conversion

by Adriaan Wisse-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Ruwan,

 

Niek is on vacation right now so I validated Nieks problem against the 1.3
branch and it solves our problem. The soap-header is now copied correctly.

 

Thanks,

 

Adriaan

 


Parent Message unknown Re: Re: adding soap heander in combination with soap conversion

by Ruwan Linton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Adrian,

Cool, nice to hear that and thanks for letting us know :-)..

Ruwan

On Wed, Aug 26, 2009 at 9:56 PM, Adriaan Wisse <a3.subscribe@...>wrote:

> Hi Ruwan,
>
>
>
> Niek is on vacation right now so I validated Nieks problem against the 1.3
> branch and it solves our problem. The soap-header is now copied correctly.
>
>
>
> Thanks,
>
>
>
> Adriaan
>
>
>
>


--
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: ruwan@...; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com