You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Abid Khan <Ab...@jeppesen.com> on 2012/02/07 18:54:15 UTC

how to strip off namspaces

Hello all,

I have an application that I am sending the messages to from synapse, and that application does not handle the name space. Is there any way I can quickly tell Synapse not to transmit namespaces in the message.

For example, this is what Synapse is sending

<RootNode xmlns=http://test.com/testapi....

I want it to send that same message like

<RootNode>.....

any thoughts will be much appreciated.


[cid:image001.gif@01CCE586.5BD90770]


Re: how to strip off namspaces

Posted by Kasun Indrasiri <ka...@gmail.com>.
Have a look at sample 158[1]. There, we have used xslt mediator to remove
name spaces.

[1] http://synapse.apache.org/userguide/samples/sample158.html

On Wed, Feb 8, 2012 at 7:42 AM, Sadeep Jayasumana <ga...@gmail.com>wrote:

> Hi Abid,
>
> You can use XSLT mediator [1] or Payload-factory mediator [2] (available
> only in Synapse 2.1)  for this purpose.
>
> Alternatively, you can also try Enrich mediator [3].
>
> [1] http://synapse.apache.org/userguide/samples/sample8.html
> [2]
>
> http://wso2.org/project/esb/java/4.0.3/docs/samples/message_mediation_samples.html#Sample17
> [3]
>
> http://wso2.org/project/esb/java/4.0.3/docs/samples/message_mediation_samples.html#Sample15
>
> Thanks,
> Sadeep
>
> On Tue, Feb 7, 2012 at 11:24 PM, Abid Khan <Ab...@jeppesen.com> wrote:
>
> > Hello all,****
> >
> > ** **
> >
> > I have an application that I am sending the messages to from synapse, and
> > that application does not handle the name space. Is there any way I can
> > quickly tell Synapse not to transmit namespaces in the message.****
> >
> > ** **
> >
> > For example, this is what Synapse is sending****
> >
> > ** **
> >
> > <RootNode xmlns=http://test.com/testapi….****
> >
> > ** **
> >
> > I want it to send that same message like****
> >
> > ** **
> >
> > <RootNode>…..****
> >
> > ** **
> >
> > any thoughts will be much appreciated.****
> >
> > ** **
> >
> > ** **
> >
> > [image: outlookreplyall]****
> >
> > ** **
> >
>
>
>
> --
>
> Sadeep Jayasumana****
>
> Email: gayansadeep@gmail.com****
>
> Phone: +94-77-2266507
>



-- 
Kasun Indrasiri
Associate Technical Lead,
WSO2 Inc. - "Lean . Enterprise . Middleware" - http://www.wso2.com/
Blog : http://kasunpanorama.blogspot.com/

Re: how to strip off namspaces

Posted by Sadeep Jayasumana <ga...@gmail.com>.
Hi Abid,

You can use XSLT mediator [1] or Payload-factory mediator [2] (available
only in Synapse 2.1)  for this purpose.

Alternatively, you can also try Enrich mediator [3].

[1] http://synapse.apache.org/userguide/samples/sample8.html
[2]
http://wso2.org/project/esb/java/4.0.3/docs/samples/message_mediation_samples.html#Sample17
[3]
http://wso2.org/project/esb/java/4.0.3/docs/samples/message_mediation_samples.html#Sample15

Thanks,
Sadeep

On Tue, Feb 7, 2012 at 11:24 PM, Abid Khan <Ab...@jeppesen.com> wrote:

> Hello all,****
>
> ** **
>
> I have an application that I am sending the messages to from synapse, and
> that application does not handle the name space. Is there any way I can
> quickly tell Synapse not to transmit namespaces in the message.****
>
> ** **
>
> For example, this is what Synapse is sending****
>
> ** **
>
> <RootNode xmlns=http://test.com/testapi….****
>
> ** **
>
> I want it to send that same message like****
>
> ** **
>
> <RootNode>…..****
>
> ** **
>
> any thoughts will be much appreciated.****
>
> ** **
>
> ** **
>
> [image: outlookreplyall]****
>
> ** **
>



-- 

Sadeep Jayasumana****

Email: gayansadeep@gmail.com****

Phone: +94-77-2266507