Previous Topic

Next Topic

Book Contents

SOAP header example

Username authentication

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

<s:Header>

<a:Action s:mustUnderstand="1">http://www.phaseforward.com/InForm/2010/01/Discrepancy/GetDiscrepanciesByCriteria</a:Action>

<a:MessageID>urn:uuid:4c8b041f-fdea-4420-8e7f-f635d8749597</a:MessageID>

<a:ReplyTo>

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

</a:ReplyTo>

<a:To s:mustUnderstand="1">https://hostaddress/pfst62/informadapter/Discrepancy/DiscrepancyService.svc</a:To>

<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

<u:Timestamp u:Id="_0">

<u:Created>2017-09-15T14:49:53.345Z</u:Created>

<u:Expires>2017-09-15T14:54:53.345Z</u:Expires>

</u:Timestamp>

<o:UsernameToken u:Id="uuid-5c7fe557-db6d-4eba-8a34-4da851d07690-1">

<o:Username>integrationuser</o:Username>

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

</o:UsernameToken>

</o:Security>

</s:Header>

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<GetByCriteria xmlns="http://www.phaseforward.com/InForm/2010/01/Discrepancy">

<DetailByCriteriaRequest authenticationTrialName="pfst62">

<DetailCriteriaFilterList>

<DetailCriteriaFilter>

<TrialName>pfst62</TrialName>

</DetailCriteriaFilter>

</DetailCriteriaFilterList>

</DetailByCriteriaRequest>

</GetByCriteria>

</s:Body>

</s:Envelope>

F5CERT authentication

Sample SOAP request

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">

<s:Header>

<Action a:mustUnderstand="1" xmlns="http://www.w3.org/2005/08/addressing" xmlns:a="http://www.w3.org/2003/05/soap-envelope">http://www.phaseforward.com/InForm/2010/01/Discrepancy/Issue</Action>

<MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:c43bdf5e-da49-4a81-a6c5-0475898e7867</MessageID>

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

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

</ReplyTo>

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

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

<Created>2017-06-12T18:05:07.5696550Z </Created>

<Expires>2017-06-12T18:10:07.5696550Z </Expires>

</Timestamp>

<wsse:BinarySecurityToken wsu:Id="SignatureCert" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">MIIC9zCCAd+gAwIBAgIQSQF0GoBgBbdH+iEQSM+ShDANBgkqhkiG9w0BAQsFADAeMRwwGgYDVQQDDBN3d3cuZmFicmlrYW0yNTYuY29tMB4XDTE3MDUxNTA4MzY0NloXDTE4MDUxNTA4MzY0NlowHjEcMBoGA1UEAwwTd3d3LmZhYnJpa2FtMjU2LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOEjxHpJ7H6++tcsKtBn+d8W2fjgZSVH/HPAVtExL5t+7z6bhRIBqcvHXslQcHN/XGmPHZROogLq7jKqs9f02AHlHDMjIcz6zyx+ri71tMwaIrqkOT19w0iwKLue20j3W/fJU2zgH7Wkhq0IPZD32ULS3EJf5D6uaRRglU8bPSdgGPqnd9ENL4YOyOMUAyrO90p+Yx3Wp9J33x6lAcYBijpB437Pz+C6ZKNGaIK+cxNovfBAK3FJwCkyitatXbab/O1AnlGBRcihqdHbAsWePJhrZegDY4m0f6LnKBZdHsZtnK8NENrKK3p8j9C2g82rcTRlEYszRtdWkODjskfQ9XMCAwEAAaMxMC8wDgYDVR0PAQH/BAQDAgWgMB0GA1UdDgQWBBSGgzkWSPST7DA+P5U5e74MumrIDTANBgkqhkiG9w0BAQsFAAOCAQEAIZIgwsLZHtFWq4+Q190k8a605dscZn9wMa/BE6/LVbUTMeHNdHKJM28lYx1+imhVvXg/s+NG+0p9RtAuTDiuU5n/YX7jGY1DsJwts1EKfBZJWHKsZRqK2tmJ0r+tfYO/zxvzIp3sPw58m7+EWbwBzFEGhIhvbmMMvTPye0tIfmFOF9nEIzfSdlNl6k4bNb4w3CuJ97QCG3fX55ZP3Cex7mPmWZCaCIyFGjvuBpPqabHqr7/s1duHkb36kkY4N29qr6aCgxLwB34RyeUvvqRxfPsrvoc4j1rEEBh8cEDi7cDIpR5JjUknHv0R7iUIra2aSc6Pk06DmxLpmhDuJsD9Sg==</wsse:BinarySecurityToken>

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">

<SignedInfo>

<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>

<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>

<Reference URI="#Body">

<Transforms>

<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></Transform>

</Transforms>

<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>

<DigestValue>ioIf/7owlT7zrM51l7yx/IE+gDNSTZTdX4US0PUwGZE=</DigestValue>

</Reference>

</SignedInfo>

<SignatureValue>VkaErFdY4Xwh9nkwtqAN2XIl9Z5hFC9uhL38JCQ3uKUpo9VPRAnxHW87dQxjKZtb/EwqXIf4JThrd/LbObtjGWU3Il/OoakcNAYYdaL2yC3BjHgay+hJ0mT4EYLI1XerNpCZhcpW/WjIq0qldwIWh9nMlncuhmejYBMN3JUHddwCeS85XRAEcVhjbyU7R2G58S/RX/nNsD65Mard/1YhGcUg1j5rGc3yQtlSJEycKI6QKgWN9FXryk8b/ruzbXyiVoi/eBxKKCHbAXChYUVtD9gqaag6mt0bD0NZ0bsRMDRtR1x1dvmAyuJi2mBWik2X3ZZNhICjtZd+URKSZA/bQA==</SignatureValue>

<KeyInfo>

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

<Reference URI="#SignatureCert"></Reference>

</SecurityTokenReference>

</KeyInfo>

</Signature>

</wsse:Security>

<To s:mustUnderstand="1" xmlns="http://www.w3.org/2005/08/addressing">https://hsgbu-bur-qa-infws.us.oracle.com/pfst62/informadapter/Discrepancy/DiscrepancyService.svc</To>

</s:Header>

<s:Body id="Body">

<Issue xmlns="http://www.phaseforward.com/InForm/2010/01/Discrepancy">

<IssueRequest transactionUserName="" transactionId="{2CEF4ECE-0B95-4665-BAB2-E9819C8A3A85}" authenticationTrialName="PFST62">

<RequestList>

<DiscrepancyIssueRequest xsi:type="DiscrepancyIssueRequestCentralCoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<InFormItemIdentifier>

<InFormItemGuid>{066DBCB9-E7F9-4E00-BB28-A840D03AB66B}</InFormItemGuid>

</InFormItemIdentifier>

<InitialState>Opened</InitialState>

<Reason>Make verbatim more specific</Reason>

<CentralCodingReserved1>{CFA8437E-9F4C-4401-8A90-6975D1D78FDB}</CentralCodingReserved1>

<CentralCodingReserved2>bleeding</CentralCodingReserved2>

</DiscrepancyIssueRequest>

</RequestList>

</IssueRequest>

</Issue>

</s:Body>

</s:Envelope>

Sample SOAP response

<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope">

<s:Header>

<a:Action s:mustUnderstand="1">http://www.phaseforward.com/InForm/2010/01/Discrepancy/IssueResponse</a:Action>

<Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

<SignatureConfirmation b:Id="Body" Value="VkaErFdY4Xwh9nkwtqAN2XIl9Z5hFC9uhL38JCQ3uKUpo9VPRAnxHW87dQxjKZtb/EwqXIf4JThrd/LbObtjGWU3Il/OoakcNAYYdaL2yC3BjHgay+hJ0mT4EYLI1XerNpCZhcpW/WjIq0qldwIWh9nMlncuhmejYBMN3JUHddwCeS85XRAEcVhjbyU7R2G58S/RX/nNsD65Mard/1YhGcUg1j5rGc3yQtlSJEycKI6QKgWN9FXryk8b/ruzbXyiVoi/eBxKKCHbAXChYUVtD9gqaag6mt0bD0NZ0bsRMDRtR1x1dvmAyuJi2mBWik2X3ZZNhICjtZd+URKSZA/bQA==" xmlns="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" xmlns:b="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" />

</Security>

</s:Header>

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<IssueResponse xmlns="http://www.phaseforward.com/InForm/2010/01/Discrepancy">

<IssueResult>

<ResultList>

<DiscrepancyResult mappedItem="false">

<Discrepancy>

<Guid>{AB345CB3-CF2C-4900-B684-1DB046E7E7B9}</Guid>

<Revision>518540376280899</Revision>

</Discrepancy>

<InFormItemIdentifier>

<InFormItemGuid>{066DBCB9-E7F9-4E00-BB28-A840D03AB66B}</InFormItemGuid>

</InFormItemIdentifier>

</DiscrepancyResult>

</ResultList>

</IssueResult>

</IssueResponse>

</s:Body>

</s:Envelope>

Send Feedback