Hi folks,
I been asked to post data from a form to a msg broker system being tested by an external team. I have been told that all I should do is post the data using http request in the following format to a server.
var http =new HttpClient();
var url="";
http.contentType = "'text/xml'";
http.requestHeader = ['SOAPAction: "
FOI"'];
http.postData ='';
http.postData +='';
http.postData +='';
http.postData +='';
http.postData +='';
http.postData +='';
http.postData +=''+firstname+'';
http.postData +=''+surname+'';
http.postData +='
'+address+'
';
http.postData +=''+county+'';
http.postData +=''+postcode+'';
http.postData +=''+emailaddress+'';
http.postData +=''+telno+'';
http.postData +=''+requestdetails+'';
http.postData +=''+requestRef+'';
http.postData +=''+entryDate+'';
http.postData +='';
http.postData +='';
http.postData +='';
http.postData +='';
//http.postData = escape(http.postData);
var sendMyRequest = http.sendRequest(url); it posts but breaks off after the first line of the post data
The form is on:
The msg broker system expects a package of XML. I'm being told it just needs to send a normal http post and doesn't need to use web services.
I've tried posting as he says (see attached - the variables are from request strings from the form) but it doesn't accept it.
Can anyone tell me why this does not work please. I am fairly new to XML and would appreciate any help.
Thanks