Skip to Content
0
Former Member
Dec 30, 2015 at 10:34 AM

Issue in adding namespace at adapter level

29 Views

Hello All,

We working on a File to IDOC scenario where PI needs to pick XML file from file folder. Source structure was created using XSD given by Legacy team.

While testing the interface, it is failing at adapter level due to a namespace that is being part of header in the file.

XML tags present in customer given input file is as follows:

<?xml version="1.0" encoding="UTF8" standalone="yes"?>

<WorkAuthorization xmlns="http://workserv.com/SalesI001/WorkAuthorization/AUG2005">

Message type xml tags are as below:

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

<ns1:WorkAuthorization xmlns:ns1="urn:col.ce:Sales:PP">

Hence we tried using in module of the channel:

Parameter name : anonymizer.acceptNamespaces

Parameter value : urn:col.ce:Sales:PP" ns1

But the converted xml is

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

<ns1:PaymentAuthorization>

which is not taking the namespace ( urn:col.ce:Sales:PP) that is required by message type

Can some one help on this

Regards,

Moorthy