cancel
Showing results for 
Search instead for 
Did you mean: 

XMLAnonymizer Bean - File Adapter

Former Member
0 Kudos

Hi,

I am working on removing the name space from the XML payload using the XMLAnonymizer Bean. I am using the file adapter to write the output file to a directory.

The above blog works for the JMS adapter. Do I need to do anything different for the file adapter.

Any help is apprectiated.

Joe

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

In Message Type, you can exclue the namespace by blanking out the XML Namespace in the Message Type screen

reffer this also :

Regard's

Chetan Ahuja

Former Member
0 Kudos

Hi,

This may help you

Regards

Seshagiri

Former Member
0 Kudos

This still leaves the message type in the pay load. Can I remove that too.

Former Member
0 Kudos

YES

Former Member
0 Kudos

Sheshagiri,

Can you please tell me how?

Is it in the mapping?

Joe

Former Member
0 Kudos

Hi ,

I am trying to remove Namespace from the XML Payload being sent to a file.

1. I tried Stefan's Blog with the XMLAnonymiser and that did not work as I probably did not configure it correctly for the file adapter. Do you have any experience with this.

2. I tried to develop a adapter module with XSL and failed

3. I removed the XML Namespace in the Message type and the payload still has the message type

Is there a way to remove the Message type from the XML payload?

4. I know if I use an external definition I can loose the namespace and message type

Any help on 1, 2 or 3 is greatly appreciated.

Joe

Former Member
0 Kudos

Hey

Can you please give a sample of what kind of source file you are getting and how you want the receiver structure?

Thanx

Aamir

Former Member
0 Kudos

<?xml version="1.0" encoding="UTF-8" ?>

- <ns0:MT_Attributes_MM xmlns:ns0="urn:NameSpace">

- <Attributes>

- <Row>

<Attr_Area>SITE</Attr_Area>

<Affected_Record_ID>0060</Affected_Record_ID>

<Attribute_Name>Industry Code</Attribute_Name>

</Row>

I want the payload to look like

<?xml version="1.0" encoding="UTF-8" ?>

<Attributes>

- <Row>

<Attr_Area>SITE</Attr_Area>

<Affected_Record_ID>0060</Affected_Record_ID>

<Attribute_Name>Industry Code</Attribute_Name>

</Row>

Thank you,

Joe

Former Member
0 Kudos

>><ns0:MT_Attributes_MM xmlns:ns0="urn:NameSpace">

So basically you just want to remove the above segment,right?

If yes,then just follow the blog as given by other experts before

Thanx

Aamir