Salim Mujawar
Salim Mujawar

Reputation: 63

Posting CXML back to PunchOut PHP

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

Answers (1)

Salim Mujawar
Salim Mujawar

Reputation: 63

My issue is resolved now, the issue was:

  1. CXML was not in the correct format, a node was missing

  2. Punch Out vendor had not white-listed our IP in their network.

Upvotes: 0

Related Questions