Skip to Content
author's profile photo Former Member
Former Member

How to remove prefix "ns1" from XML tag ?

Hi all,

the payload I am sending to an HTTP site looks like this :

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

- <ns1:Order xmlns:ns1="rrn:org.xcbl:schemas/xcbl/v3_5/xcbl35.xsd">

- <ns1:OrderHeader>

- <ns1:OrderNumber>

<ns1:BuyerOrderNumber>2000032962</ns1:BuyerOrderNumber>

</ns1:OrderNumber>

<ns1:OrderIssueDate>2005-10-18</ns1:OrderIssueDate>

</ns1:OrderHeader>

</ns1:Order>

I have no idea where this "ns1" prefix comes from, seems like it is added automatically by XI.

The problem is that the supplier is waiting for standard XCBL structure and does not recognize this added "ns1".

The response I get from the HTTP server contains the following error :

<?xml version="1.0" encoding="UTF-8"?> <Values version="2.0"> <value name="$errorDump">Server error occurred</value> <record name="$errorInfo" javaclass="com.wm.util.Values"> <value name="$errorDump">Server error occurred</value> <value name="$error">[ISC.0042.9328] Error: namespace prefix ns1 not defined for element Order</value>

Thank you in advance.

Regards,

Julien

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 19, 2005 at 04:36 PM

    Hi Julien,

    In the Message Type, you have a entry for the XML namespace. Make sure that is empty.

    However, if you are using an XSD provided by the supplier for the message, then you will have to write an xslt or java mapping program to remove the namespaces before you send it out of XI.

    Cheers

    Manish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.