"content-type of the request should be text/xml " Error when connecting to Salesforce via SOAP

HI @pranavdavar I discovered the problem: In order to stop the Content-Type from automatically displaying the application/xml , we need to:

  1. change the method from Post to Get so that the Content-Type will be removed.

1B) Set the Body Tab to form-data.

  1. In the Headers tab, add the new Content-Type as the key and add text/xml as the value.

  2. Change the method back to Post and verify that the default Content-Type does not overwrite the one you just added in step 2.

3b) Change Body Tab to raw.

  1. Send your request and verify that you get a return code of 200 OK.

  2. Check the response body which should give you your SF user instance and you
    Solution page: Content-Type Header Automatically Added to GET Requests - #6 by mer2018

1 Like