Forum Discussion

KLWallace's avatar
New Contributor
2 months ago

SOAP Request works in SoapUI, but not in C# code

This envelope successfully contacts an API endpoint and returns data as expected. <soapenv:Envelope xmlns:xsi="" xmlns:xsd="
  • KLWallace's avatar
    2 months ago

    Turns out the SoapUI interface had a configured "SOAP Action", that I was not adding as a header in my HTTPWebRequest.  Problem solved by adding:

    request.Headers.Add("SOAPAction", "");