Reputation: 63
I am trying to integrate a PunchOut system with a PHP website.
I am able to read CXML responses from PunchOut, but I am unable to post CXML data back to the system.
My code is below:
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");
}
});
Upvotes: 0
Views: 916
Reputation: 63
My issue is resolved now, the issue was:
CXML was not in the correct format, a node was missing
Punch Out vendor had not white-listed our IP in their network.
Upvotes: 0