Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank SoapAction #8

Open
adamklaff opened this issue May 21, 2015 · 2 comments
Open

Blank SoapAction #8

adamklaff opened this issue May 21, 2015 · 2 comments

Comments

@adamklaff
Copy link

I'm writing a server to receive messages from Salesforce, and no SoapAction is passed through. I am not able to modify the headers on Salesforce's end, so is it possible to have Sinatra-Soap work for a nil or default action?

@IvanShamatov
Copy link
Owner

Hello @adamklaff
What you mean by "no SoapAction", there are no header like this or it exists but empty?
I also would like to ask, why are you using SOAP, when Salesforce have REST API?
And answering your question, its not possible to have sinatra-soap work with no SOAPAction, because it must exist according to standart http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528, as I understand it correctly. Hope it helps you.

@adamklaff
Copy link
Author

Thanks. The headers Salesforce is sending are pasted below, SOAPAction is nil:

Host: requestb.in
Accept-Encoding: gzip
Content-Type: text/xml; charset=utf-8
Cache-Control: max-age=259200
Connect-Time: 0
X-Request-Id: 6b07fea9-e261-431b-8499-568f99900de4
User-Agent: Jakarta Commons-HttpClient/3.1
Total-Route-Time: 0
Connection: close
Content-Length: 1174
Via: 1.1 proxy-was.net.salesforce.com (squid), 1.1 vegur
Soapaction: ""

I'm looking into the REST API but I'd like to avoid writing custom Apex code to send webhooks outside of Salesforce if possible. Will take a closer look.

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants