Hi All, I am trying to test the Secured SOAP request using Jmeter. Firstly, I was not able to generate the secured token, but then I used one plugin from github as ashoen in screenshot named SOAP_3.
I then tried to use custom code to add the timestamp using JSR223 preprocessor. As shown in screenshot SOAP_2 and SOAP_1 But I see, 2 different wsse:security headers are being added in the actual request. Please see attached request file SOAP_Request.txt. And in the response it gives nme error string as "Missing Timestamp". Can someone help me how can i resolve this issue?
POST data: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://aonhewitt.com/hro/benefits/cm/xsd/v1_0" xmlns:xsd="http://aonhewitt.com/hro/benefits/cm/xsd"> <soapenv:Header><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" soapenv:mustUnderstand="1"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-3ebe579a-e167-4aa2-873d-c85a02a362f7">MIICRTCCAa6gAwIBAgIEVW4SqjANBgkqhkiG9w0BAQUFADBnMQswCQYDVQQGEwJVUzELMAkGA1UECBMCSUwxFTATBgNVBAcTDExpbmNvbG5zaGlyZTEMMAoGA1UEChMDQW9uMRQwEgYDVQQLEwtMaWZlcmF5IE9wczEQMA4GA1UEAxMHcHJ0bG9wczAeFw0xNTA2MDIyMDMxMzhaFw0yMDA1MzEyMDMxMzhaMGcxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJJTDEVMBMGA1UEBxMMTGluY29sbnNoaXJlMQwwCgYDVQQKEwNBb24xFDASBgNVBAsTC0xpZmVyYXkgT3BzMRAwDgYDVQQDEwdwcnRsb3BzMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjwWlLEZQ2ue1xoFz0tU/GEGYLHiikhHLHw2ghnC6EwsfN1HOa9fq3bCnQuM/saqazNeUtjdvxWyHDVTDZmv0xUAwJQaFQSdOlY/YpgFjRt6xoz8qACBuSzCCEDUd/GcNNoMgIorv/P7j3zfg/s4PEOvMm/+txv0f8roLpXAZqbwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAKnsUao70uQgJd/nqRKa9AT2ZtBoEaxPhLBCT4D9PWnnuwZAhr9yCvj5UcO5YKR8qUasWXFjSNOiBaXVHQq2ozb4IIx+fmEytuIftdK2dcujaQgXXx3oCG4N18qkyBlzgu/CO1sEF+B3KAYCmnfpbnpzTJj8ovX2ZMKk2Usz5vn2</wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-743ae433-f35a-408d-8a07-3e1a374f6a55"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><ds:Reference URI="#id-65e7a6d0-85c2-4222-a0d1-58a7c657ac8f"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="v1 xsd"/></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>825OjSndij4Ve4lMRolzqZYgYsVGFYR3iZrRGBYHy10=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>sbnOOfZybr5+Kn+eHLMdGMIyIeurteiyI0IrCIl7h4Ew+i9gBpCWUDoC/Rtp7iwBMmBHCz9stfyw n6L5x3ryr/N2EqL2xnB6I3z/GIE9RdtiGKdBiOx0L75YIcTMtQESPwjt1cDitDiGFJxGAYhW8wBS jvSDMDKqGvceIr+ui+0=</ds:SignatureValue><ds:KeyInfo Id="KI-bb87c55b-219b-45bf-a8fa-5a406e6cef14"><wsse:SecurityTokenReference wsu:Id="STR-3c19d8db-7b4e-490e-a560-d33fc01c723a" 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"><wsse:Reference URI="#X509-3ebe579a-e167-4aa2-873d-c85a02a362f7" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature></wsse:Security> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext- 1.0.xsd" soapenv:mustUnderstand="1"> <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility- 1.0.xsd" wsu:Id="Timestamp-215"> <wsu:Created>2017-06-01T06:07:50.375Z</wsu:Created> <wsu:Expires>2017-06-01T06:12:50.375Z</wsu:Expires> </wsu:Timestamp> </wsse:Security> </soapenv:Header> <soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-65e7a6d0-85c2-4222-a0d1-58a7c657ac8f">
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
