function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kumgaurav1.3959431011250151E12kumgaurav1.3959431011250151E12 

How to set SAML assertion token in external web service call

I have a external http service in which when I pass user info it returns me SAML token in the request header. I need to pass this token in sub sequent web service method calls.

Any help is appreciated, How I can insert into header retrieved SAML token.
ex - first http service response
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><saml2:Assertion>some relevant content</saml2:Assertion></wsse:Security></soap:Envelope>

need to use above response in subsequent web service call.
ShashForceShashForce
Please see if this helps:
https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_web_sso_flow.htm&language=en_US
https://help.salesforce.com/apex/HTViewHelpDoc?id=remoteaccess_using_access_token.htm&language=en_US


kumgaurav1.3959431011250151E12kumgaurav1.3959431011250151E12
It will not help as these links are for connecting external system to salesforce using SAML but my requirement is to call external web service from salesforce using SAML.
Naresh Chanda 17Naresh Chanda 17
Hi, DId you get a resolution for this problem? Where is the SAML assertion stored in Salesforce and how should we get it to make  a OAuth 2.0 call out to external service?