search cancel

O365 SOAP request

book

Article ID: 187315

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On Federation (SiteMinder) SITEMINDER

Issue/Introduction

I am trying to get the soap request to sts token back from O365 ws-username endpoint.

The end point is called https://saml.iam.company.com/O365/ws-username?wsdl

Environment

Release : All

Component : SITEMINDER - ACCESS GATEWAY

Resolution

The following sample can be used as a template:

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Header><Action xmlns="http://www.w3.org/2005/08/addressing" env:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</Action><To xmlns="http://www.w3.org/2005/08/addressing" env:mustUnderstand="true"> https://saml.iam.company.com/O365/ws-username</To><MessageID xmlns="http://www.w3.org/2005/08/addressing">9db19b93-f1a2e035-9a6af679-f8a8975</MessageID><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-81" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Username>[email protected]</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Dost1234</wsse:Password></wsse:UsernameToken></wsse:Security></env:Header><env:Body><RequestSecurityToken xmlns="http://schemas.xmlsoap.org/ws/2005/02/trust" Id="RST0"><RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</RequestType><AppliesTo xmlns="http://schemas.xmlsoap.org/ws/2004/09/policy"><EndpointReference xmlns="http://www.w3.org/2005/08/addressing"><Address>urn:federation:MicrosoftOnline</Address></EndpointReference></AppliesTo><KeyType>http://schemas.xmlsoap.org/ws/2005/05/identity/NoProofKey</KeyType></RequestSecurityToken></env:Body></env:Envelope>