HttpClient.Post An error occurred while sending the request.

fschneiderfschneider Member Posts: 3
Hello,

I've created an Application Post information’s to a webservice

HttpClient.Clear();
HttPContentRequest.WriteFrom(piContent);
HttPContentRequest.GetHeaders(lHttpHeadersRequest);
HttpHeadersRequest.Remove('Content-Type');
HttpHeadersRequest.Add('Content-Type', 'text/xml; charset=utf-8');
HttpHeadersRequest.Add('SOAPAction', GetSOAPActionNamespace(piOption));
HttpClient.Post(Setup."Web Service URL", lHttPContentRequest, poHttpResponse);

the problem is, that I got always the error
An error occurred while sending the request.

I’ve allowed http in the extension and ServicesUseNTLMAuthentication is true.

Best Answer

Answers

  • SanderDkSanderDk Member Posts: 502
    What kind of environment are you using? (Onprem, Saas, sandbox)
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • fschneiderfschneider Member Posts: 3
    I use a docker and have nav in a Sandbox. But it should work in all enviroments
  • fschneiderfschneider Member Posts: 3
    Do you mean in the extension config "Allow HttpClient Requests"? I've enabled this.
Sign In or Register to comment.