Hey,
we are experiencing a weird issue with consuming external soap webservice from BC 14 onprem and the cloud. The server response with bad request message and we don't know which part is causing the error. But, when running the code in BC 13, it works perfectly. here is the code for creating the header and sending:
Request.SetRequestUri(URL);
Request.Method('POST');
XmlDoc.WriteTo(reqText);
Content.WriteFrom(reqText);
Content.GetHeaders(header);
header.Remove('Content-Type');
header.Add('Content-Type', 'text/xml;charset=utf-8');
header.Add('SOAPAction', soapAction);
Request.Content := Content;
client.send(Request, response);
it seems like both BC versions processes the request differently.
i'm a missing something? what is the difference between those BC versions regarding Webservice calls?
hope somebody have a clue.