function GetLiveStockQuantity_soap11(host,xmldata,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Content-Type": "text/xml; charset=utf-8", "Accept": "application/xml;", "SOAPAction": host + "/GetLiveStockQuantity", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
function GetLiveStockQuantity_soap12(host,xmldata,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Content-Type": "application/soap+xml; charset=utf-8", "Accept": "application/xml;", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
function GetLiveStockQuantity_post(host,postdata,result){ fetch(host + "/GetLiveStockQuantity", { method: "POST", credentials: "include", headers: { "Content-Type": "application/x-www-form-urlencoded", "Accept": "application/xml;", }, body: postdata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"