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

Mapping question

Hi,

I have a strange issue or maybe it is not strange. I have a mapping for the acknowledge or a PO coming back via an HTTP adapter. If the first tag and end tag are as follows:

http://bcm.edu/xi/R3">

....

....

</ns4:PurchaseOrderAck>

the fields for the document are mapped.

If the first and end tag are as follows:

<PurchaseOrderAck>

.....

.....

</PurchaseOrderAck>

the mapping still runs, the constants are populated, however any moves of fields from the source document(like PO number) are ignored.

Why is the namespace declaration required? Is this standard for inbound interfaces from an HTTP adapter?

regards,

Chris

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2005 at 08:28 PM

    Hi,

    namespace is absolutely necessary. It is part of the W3 XSD/XML/XSLT specification. The namespace designates which parent element a child element refers to.

    During mapping the namespace is used to point to element to be transformed.

    One of the most frequent errors in message mapping is caused by mis-match of the namespaces. For example, the XML document sent contains a namespace that does not match the namespace in the msgtype of the message mapping.

    Regards,

    Bill

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I solved the problem. Here is a way to do it if you don't know Java or XSLT well. Goto the message type you created in XI.

      Go to the XSD view. Export it. Delete the message type and data type from XI. Open the XSD file and remove the namespace delaration(xmlns). Save it. Import it as an external definition. Now, the message type does not require what I described above.

      regards,

      chris

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.