cancel
Showing results for 
Search instead for 
Did you mean: 

Anonymizer Bean is not working XML file --> ABAP Proxy scenario.

Former Member
0 Kudos

Hi Experts,

Can anybody please help, How can add this line <ns0:ROOT xmlns:ns0="urn:XXX:snc:productactivedata"> to my input xml file?

</ns0:ROOT> to the end of the input xml file. One more thing please, how to remove "standalone="yes" " from this line <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

I have tried with Anonymizer bean settings, I can't able to achieve this, with XSLT mapping could, but I don't know XSLT mapping, can any one help me in this?

Many Thanks

Regards

San

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
Can anybody please help, How can add this line <ns0:ROOT xmlns:ns0="urn:XXX:snc:productactivedata"> to my input xml file?
</ns0:ROOT> to the end of the input xml file.

You can create the structure (Data Type) accordingly.....why do you want to add it to the input file.....should it not be added to the output file?

Former Member
0 Kudos

Hi Abishek,

My scenario XML --> Proxy, the input xml is coming with

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

<ROOT> tag comes as message header,

but once we generate XSD schema on PI we get header like

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

- <ns0:ROOT xmlns:ns0="urn:XXX:snc:productactivedata">

the incoming xml is not validating due to this reason, ROOT is message header. So we need to add end tag like </ns0:ROOT> to this message, then the message is processing it. It not it is throwing error message. I have tried with Anonymizer bean, it is not working. I get same error message.

any inputs please?

Regards

San

Former Member
0 Kudos

Hi Sandhya,

As shabarish has given in the blog he pointed to sameers blog. You can use that blog and remove your namespace from your message type. Then you will have <ns0:ROOT> only and your namespace will not be there.

Regards,

---Satish

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

Why is that line not present in your XML file already? What does your XML file is sending at present?

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

If do, like remove namespace in the message type then i get this error.

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="MAPPING">GENERIC</SAP:Code>

<SAP:P1>com/sap/xi/tf/_MM_EDI_ProAct_One_N_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>

<SAP:P3>The element type "D01_PO4" must be terminated by t</SAP:P3>

<SAP:P4>he matching end-tag "</D01_PO4>".</SAP:P4>

<SAP:AdditionalText />

<SAP:Stack>com/sap/xi/tf/_MM_EDI_ProAct_One_N_com.sap.aii.utilxi.misc.api.BaseRuntimeException:The element type "D01_PO4" must be terminated by the matching end-tag "</D01_PO4>".</SAP:Stack>

I have checked the message, xml message format fine. Any help in this please?

Thanks & Regards

San

Former Member
0 Kudos

Hi Sandhya,

Make sure that the element <D01_PO4> is closed with </D01_PO4>. It seems some issue with the xml file. Can you put the xml file here so that somebody can help you here.

Regards,

---Satish

Former Member
0 Kudos

Hi Prateek,

I have validate with xml spy and online validation with W3C, says that xml has got issues. I don't how to keep xml in forum, if i keep that xml it show with tags. Please help me. I want to put xml in forum.

Regards

San

Former Member
0 Kudos

Sorry hasn't got issues with xml.

Former Member
0 Kudos

Sandhya,

When you put your xml put as code. So you put your xml in between these two codes and you should be good. If you still have issues upload somewhere on the net and give the link.

Regards,

---Satish

Shabarish_Nair
Active Contributor
0 Kudos

/people/shabarish.vijayakumar/blog/2010/05/07/quick-tips-dealing-with-namespaces-in-xipi