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

HTTP Adapter - xml format ?

Hi,

I want to send an xml message ti xi via the plain http adapter, is there something special to add to the first node to precise it's the root node ?

my message is :

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

<ZVG_GetOrderList_requ>

<Orders>

<Order MessageType="GETORDERLIST" DecimalSeparator="POINT" Currency="EUR">

<CustomerCode type="AG">0330029839</CustomerCode>

<Plant>1141</Plant>

<SalesOrganisation>1141</SalesOrganisation>

<DocType>1</DocType>

<DistributionChannel>01</DistributionChannel>

<Division>99</Division>

<BeginDate>20040926</BeginDate>

<EndDate>20041026</EndDate>

<TransactionGroup>0</TransactionGroup>

<CustomerOrderNumber />

<ERPOrderNumber />

</Order>

</Orders>

</ZVG_GetOrderList_requ>

it seems that xi does not recognize my ZVG_GetOrderList_requ as the root node.

any idea ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 09:35 PM

    You've got to have the namespace for your message. Here's an example of some XML that I use to test our plain adapter interface:

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

    http://freescale.com/xi/oracle/ItemMaster">

    <ItemNumber>13</ItemNumber>

    <Requestor>R12345</Requestor>

    </ns1:ImmediateItemMasterRequest>

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Chris,

      I've already test this case but I already sent the namespace in the http request.

      When I send it in the xml messsage, XI fail in recever and sender determination.

      And now I've a parsing error and XI message monitoring indicates sender scheme : XI Party I think it's not alright !!

      I send my message at the folling address :

      http://<server>:port/sap/xi/adapter_plain?service=<Sender_Service>&namespace=http%3A%2F%2FZVGEPOWER_TRANSACTIONS&interface=ZVG_ePower_GetOrderList

      before I send the namespace in the xml file, XI did the good sender and receiver determination, so I'am quite disappointed !!

      Message was edited by: Fabrice Petetin

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.