Previous Topic

Next Topic

Book Contents

Example: SOAP header

This example shows a header for a call to the GetUserNames operation.

Note: The wsa:Action value, shown in bold text in the example, is different for each API operation.

<SOAP-ENV:Envelope xmlns:SOAP-ENV=http://www.w3.org/2003/05/soap-envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<SOAP-ENV:Header>

<wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.phaseforward.com/InForm/2009/01/UserProvisioning/GetUserNames</wsa:Action>

<wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:c266299a-721d-473e-b548-7ca1706eeff0</wsa:MessageID>

<wsa:ReplyTo xmlns:wsa="http://www.w3.org/2005/08/addressing">

<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

</wsa:ReplyTo>

<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">https://myserver/PFST45/sdk/provisioning/UserProvisioningService.svc</wsa:To>

<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<wsu:Timestamp>

<wsu:Created>2009-08-19T19:47:06Z</wsu:Created>

<wsu:Expires>2009-08-19T19:52:06Z</wsu:Expires>

</wsu:Timestamp>

<wsse:UsernameToken>

<wsse:Username>testuser</wsse:Username>

<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">testpassword</wsse:Password>

</wsse:UsernameToken>

</wsse:Security>

</SOAP-ENV:Header>

Send Feedback