Is it possible to run the debug log on a SOAP UI call? I assume not because it is an external service but, because it is calling apex classes, I feel like there should be a way to look at the logs.

The reason why I ask is because I am having difficulty finding the location of a null value within my apex with the little information I am getting back from my SOAP UI response.

I've tried running the debug on myself, as the APEX class, trigger, and automated process. Because the call out is failing it does not seem to fully process.

UPDATE: I found this post How can I get a debug log for the sites guest user/public profile? [updated for Spring 18] and this article https://releasenotes.docs.salesforce.com/en-us/winter17/release-notes/rn_forcecom_debugging_guest_user.htm that explains you need to set up a cookie on the browser and enable site guest access. I have yet to get it to work, I might be setting the cookie wrong....

enter image description here

  • How is the SOAP UI call being authenticated to Salesforce? Is it using a Session ID or is the Apex web service hosted on a public site? Jan 8, 2018 at 21:51
  • It is a POST and I pass it two parameters and a body
    – Olivia
    Jan 9, 2018 at 21:02
  • Unless the POST is being sent to a public site hosted Apex web service you will need to authenticate the request with a SessionID or Access Token in the body. That Session ID will be associated with a Salesforce user. That then defines who you should be logging for. Jan 9, 2018 at 21:13
  • I don't believe I am authenticating with either. I am just hitting an endpoint and resource (see picture).
    – Olivia
    Jan 9, 2018 at 22:59

2 Answers 2


Based on the comments that you aren't providing any Session ID or Access Token as part of the POST request from SOAP UI I'm assuming you are using an Apex web service that is hosted on a public site.

As such, until Spring '18 is released, you will need to include a cookie in the request to activate logging.

Use the cookie format defined in Set a Browser Cookie to Enable Debug Logging for Guest Users and the SOAP UI Request header functionality at the bottom of the request window.

Setting a request Cookie in SOAP UI

  • 1
    thank you! I was setting the cookie name wrong. This solved my debugging issue
    – Olivia
    Jan 9, 2018 at 23:56

You can try to set debug logs from Setup->Debug Logs. You should setup the logs for the user whose credentials you are using to consume your Salesforce Org's API from SOUP UI.

You must log in to answer this question.

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