我正在尝试将 PunchOut 系统与 PHP 网站集成。
我能够从 PunchOut 读取 CXML 响应,但无法将 CXML 数据发布回系统。
我的代码如下:
jQuery.ajax({
url: '/psc/fssnd/EMPLOYEE/ERP/c/PV_MAIN_MENU.PV_DC_CATCHER.GBL?Page=PV_DC_CATCHER^&MSGNODENAME=MY_NODE',
data: { cxml: cxml_data },
crossDomain: true,
type: 'POST',
contentType: "application/xml; charset=utf-8",
dataType: "xml",
cache: false,
error: function() {
alert("No data found.");
},
success: function(xml) {
alert("it works");
}
});