cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove "ns0" prefix in the xml message sent by webservice to xi

Former Member
0 Kudos

Hi All,

we have developed some scenarios idoc as sender and SOAP as receiver.

By using BPM i am able to send response back to sap system.

The problem is while sending response back to xi server the webservice is sending

response as follows.

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

<!-- Call Adapter

-->

<ns0:DICreationGILResponse xmlns:ns0="COFSAP_INTGR" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" Status="Success">

<ns0:SHIPMENT>

<ns0:STATUS Value="Success" />

<ns0:IDOCNUMBER Value="0000000000000428" />

<ns0:SAP_DI_NO Value="7132044658" />

<ns0:MESSAGE Value="Success" />

</ns0:SHIPMENT>

</ns0:DICreationGILResponse>

for each element ns0 is prefixed so in the mapping xi doesn't understand this , it knows the elements without ns0 .

How can i remove the ns0 prefix send by webservice to xi.

Thanks in advance

Prasad Nemalikanti

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

If you have a WSDL from the Webservice which you can upload to the IR, you can do mapping based upon the WSDL and there is no need for removing the namespace prefix.

Regards

Stefan

prateek
Active Contributor
0 Kudos

Use XMLAnonymizerBean

/people/stefan.grube/blog/2007/02/02/remove-namespace-prefix-or-change-xml-encoding-with-the-xmlanonymizerbean

Regards,

Prateek