sap-aribacxml-commercexml

Why my Ariba cannot parse my response API?


My Ariba network cannot parse my document cXML response. At Ariba screen I have this response:

<?xml version="1.0" encoding="UTF-8"?>
<cXML payloadID="1501467044460-2947794417638298020@216.109.111.19" timeStamp="2017-07-30T19:10:44-07:00">
   <Response>
      <Status code="200" text="OK" />
      <PunchOutSetupResponse>
         <StartPage>
            <URL>test.ariba.com</URL>
         </StartPage>
      </PunchOutSetupResponse>
   </Response>
</cXML>

However I still get this message from Ariba:

Couldn't parse document

Can anyone support me with this?


Solution

  • This is the document we're using and working correctly

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
    <cXML timestamp="<%= @timestamp %>" payloadID="<%= @payload_id %>">
      <Response>
        <Status code="200" text="success"></Status>
        <PunchOutSetupResponse>
          <StartPage>
            <URL><%= @start_url %></URL>
          </StartPage>
        </PunchOutSetupResponse>
      </Response>
    </cXML>
    

    The start_url must be a valid URL like http://test.mysite.com/xxxxx