I developed an API callout to a SOAP webservice, the external system return me an error, how can i see XML file generated by a SOAP API callout?

  • 2
    Generate same request and use SoapUI to view the error message? Commented Apr 16, 2018 at 13:32
  • 1
    the xml is generate by many function and i would see what SF sends when generate a collout. there is no way to see xml? Commented Apr 17, 2018 at 7:42
  • If you want to see what request salesforce sends, then you can change endpoint to RequestBin or any other mocking service. It will let u view the request sent from sf Commented Apr 17, 2018 at 7:44

1 Answer 1


You can hook your request to a mocking service like https://putsreq.com/ or requestbin.

They allow you to view the raw requests.

Make sure you insert that endpoint Remote site settings as well.

Once you do that and do a callout, you can inspect it at putreq website.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .