Skip to content

Instantly share code, notes, and snippets.

@cj
Created June 23, 2020 20:54
Show Gist options
  • Save cj/a345df4571da9ccf6a7eed4fe00a0cb1 to your computer and use it in GitHub Desktop.
Save cj/a345df4571da9ccf6a7eed4fe00a0cb1 to your computer and use it in GitHub Desktop.
request.xml
<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://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</a:Action>
<a:MessageID>urn:uuid:5382e44f-1711-4291-8e6d-64086192e485</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">https://cj.ngrok.io/OrderPlacementService/v4/ServiceBasic.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>2020-06-23T19:30:01.560Z</u:Created>
<u:Expires>2020-06-23T19:35:01.560Z</u:Expires>
</u:Timestamp>
<o:UsernameToken u:Id="uuid-5119de50-b128-4463-8681-36488b513d55-4629">
<o:Username>x</o:Username>
<o:Password>x</o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body>
<t:RequestSecurityToken
xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust">
<t:TokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</t:TokenType>
<t:RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</t:RequestType>
<t:Entropy>
<t:BinarySecret u:Id="uuid-3e14265f-225f-4b1e-a02f-7bf88e758dd8-194295" Type="http://schemas.xmlsoap.org/ws/2005/02/trust/Nonce">e1tbCCHzogx2cAk2CwNPbd1YHb//Z1eAvjQ+UU5Q7iM=</t:BinarySecret>
</t:Entropy>
<t:KeySize>256</t:KeySize>
</t:RequestSecurityToken>
</s:Body>
</s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment