Ariba响应设置请求

时间:2017-07-28 08:24:54

标签: cxml

我对ariba punchoutSetupRequest有疑问。 我的API响应如下:

<?xml version="1.0" encoding="UTF-8"?>
<cXML payloadID="1454654070603.1234567890@ctoms1234" timeStamp="2016-02-05T15:34:30-15:00">
    <Response>
        <Status code="400" text="Failed"/>
        <PunchOutSetupResponse>
            <StartPage>
                <URL>http://ARIBA-TEST.ty.chugai-pharm.co.jp/Buyer/punchout?client=HTML.8gnyW0CvGJ1R!-34269844!1454653851331&amp;responseid=5&amp;locale=ja_JP</URL>
            </StartPage>
        </PunchOutSetupResponse>
    </Response>
</cXML>

然而,Ariba给我打电话给我的api和回应。

 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.034/cXML.dtd">
<cXML payloadID="1501225074983-2497119422372518906@216.109.111.6" timestamp="2017-07-27T23:57:54-07:00">
        <Response>
                <Status code="500" text="Internal Server Error">Error:Punchout error from supplier:Response: <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd"><cXML payloadID="958074700772@www.workchairs.com" timestamp="2005-06-14T12:59:09-07:00"><Response><Status code="400" text="Bad request"/><PunchOutSetupResponse><StartPage><URL>https://punchout.workchairs.com/Servlet/sessionid=7006</URL></StartPage></PunchOutSetupResponse></Response></cXML>  Please contact support with the Error Reference Number: ANERR-10000000000000000381125876 for more details</Status>
        </Response>
</cXML>

任何人都可以帮我修复它。我不确定我对setupRequest API的回复

2 个答案:

答案 0 :(得分:0)

所以,为了清楚起见,您是否正在设置交易的供应方?

为什么用400代码回复,400表示存在错误并且PunchOutSetupRequest事务不正确,如果请求,您不太可能要发送StartPage(用于打卡目录的条目)无效,您的API应该投放

<?xml version="1.0" encoding="UTF-8"?>
<cXML payloadID="1454654070603.1234567890@ctoms1234" timeStamp="2016-02-05T15:34:30-15:00">
    <Response>
        <Status code="200" text="success"/>
        <PunchOutSetupResponse>
            <StartPage>
                <URL>http://ARIBA-TEST.ty.chugai-pharm.co.jp/Buyer/punchout?client=HTML.8gnyW0CvGJ1R!-34269844!1454653851331&amp;responseid=5&amp;locale=ja_JP</URL>
            </StartPage>
        </PunchOutSetupResponse>
    </Response>
</cXML>

答案 1 :(得分:0)

在Ariba cXML中,400代码具有特定含义,例如,如果有人已将已复制的副本发送到已处理的请求。例如,提交一份带有操作=&#34; new&#34;然后尝试为相同的发票号码发出creditmemo,无需操作=&#34;更新&#34;标题中的值。其他典型的400个代码原因是缺少有效负载ID,缺少时间戳,缺少特定事务所需的代码&#34;失踪等。

相关问题