how to strip off namspaces

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

how to strip off namspaces

by Abid Khan-EXT :: Rate this Message:

| View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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.

 

 

 


Re: how to strip off namspaces

by Sadeep Jayasumana-2 :: Rate this Message:

| View Threaded | Show Only this Message

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 <Abid.Khan@...> 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@...****

Phone: +94-77-2266507

Re: how to strip off namspaces

by Kasun Indrasiri :: Rate this Message:

| View Threaded | Show Only this Message

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 <gayansadeep@...>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 <Abid.Khan@...> 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@...****
>
> Phone: +94-77-2266507
>



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