Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all i am new to Soap request and i am trying to work out how i can do a POST request to one of our partners to send them information in XML format
also another this doing it server side would it even pass the CORS?
var uri = new Uri("https://icstest.3bm.nl/salesforce/salesforce.asmx?op=HelloWorld");
var req = (HttpWebRequest)WebRequest.CreateDefault(uri);
req.ContentType = "text/xml; charset=utf-8";
req.Method = "POST";
req.Accept = "text/xml";
var strSoapMessage = @"<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/ 'xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'><soap:Body><add xmlns='http://tempuri.org/'><a>23</a><b>5</b></soap:Body></soap:Envelope>";
var stream = new StreamWriter(req.GetRequestStream(), Encoding.UTF8);
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted