Skip to Content
0

Inserting wsse:Security header in SOAP header message

Jun 05, 2017 at 02:50 PM

27

avatar image
Former Member

Hi,

We have a Proxy to SOAP scenario and the SOAP header is expected to have wsse:Security tags as per below sample. Please let me know how this can be achieved. Thanks.

<?xml version="1.0"?><soapenv:Envelope xmlns:obs="<namespace>" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsse:Security xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:BinarySecurityToken wsu:Id="X509-925981AA89D6C41EB3144465584498121" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509PKIPathv1" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">2POdL/H22TPtMAF1Pq3cuDiYm+MSUfXFavGOeHxfajUvfEDNXS7ggX8mVbxH+76uI4YJzSbdlfflfnOMayqRhLOghLbJUBGKC5xzUcCAwEAAaNdMFswHQYDVR0OBBYEFPPAx1e7dMjLUU4MXrlxBHYG0XKDMB8GA1UdIwQYMBaAFPPAx1e7dMjLUU4MXrlxBHYG0XKDMAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBCwUAA4IBAQB8YuxNAjzjCofaIpWtIIFZ8Wod0lJvLNXs6xvq1RtmJCST9fHw3tEoZRlHRaCXKsIgvhdv6FTahEfnNsgT24V/HQ62u6Arm0QRxFS0GXPTkYz9Aj/eBnCb3tCfd4QcGQzuWxiMXQCTp7KnfC/aaIi2zJKN08RZw7oGsVMJTOMUFhMvMgzjsCK9+M4yDGErkintYdUbRkmyiw2jP80siyOPr5w+Dm4HNLHgrV7N+6oAUN3CQQ9vao8HhJpuwxHRIW+dihPt46B/wFTGHeG/quI4O11mJl9Wr6TYYZ53JK6xA+4eESnzFFkf6YVZsnPApeZuuVuBSkw2B1M//IJk9AkMMIICzjCCAbYCCQCoP6U9NK/w+TANBgkqhkiG9w0BAQsFADBFMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMB4XDTE1MTAwMTE0MTMxM1oXDTE2MDkzMDE0MTMxM1owDTELMAkGA1UEAxMCaHUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCClhigJzWN7PlefobBcHV0hdNrcCTExKZSc3KUM934qAIcKmBkuqDqAsjIudNGz015qg36ehmjkGPr+jk0sXGKTVeI2xTB+IHGCFEH+6Kxd9egYNE1CUT0UnuaVTarynjN4vG/ibMw/yMBWifCJjSyNZnAlDHt0llO3WJWBA3QsLMAh15MXNMnScYDCNV+6eRDX5EcQ3GwGTgrTnpSNhyfM2+7M8eX0IuJtGrBlIbggAC+Ilnpqw2Xm87840gS26VmsKGoYqsbKXK3bqkBe2B69A3BJhl6VCTYAMx7t0tO16jluUyJBduaiB9brh3Z1l8Lwh9UbZAC52jkJVT84SFNAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAGtvPYOKR8kY56tKuyWkJXw3njMEioqFkLCVAeAlyCL09kfMASvpee8qd4iSt4/lE1mEz2UXl2VzGact8rEQl+I3MbKX8osRkicVFnTFyvEL8+hsM9uuPzO/tFYh+jWYWE8s3Sy/w5JYlEa4PJel4ymXowr7XhBEZ30P6L1weasuvOVVsEqVsWcziXrCwmY6h1M4aLWxHnBvJxFpdB3zK5yWiLsCYJ4yTDiYTXccPegQdpRmK3JIvA/TMSfVYVRIJH0tbn6SZR29EZHEhY2P6bEpZIReSyoboIif9sjgbrJUGQv8RJLsmf/ZLbs+flD45orB7unk9a/s5TmFvbnGTIA=</wsse:BinarySecurityToken><ds:Signature Id="SIG-925981AA89D6C41EB314" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="obs soapenv"/> http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <ds:Reference URI="#id-925981AA89D6C41EB3144465584498124"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="obs"/> Q3bJVccW6e/es8= bas/9fWoLzPdIkZD+BEp/iRew==http://www.w3.org/2000/09/xmldsig#sha1"/> Q3bJVccW6e/es8= bas/9fWoLzPdIkZD+BEp/iRew==> <ds:KeyInfo Id="KI-925981AA89D6C41EB314446558"><wsse:SecurityTokenReference wsu:Id="STR-925981AA89D6C41EB31" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" wsse11:TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509PKIPathv1"> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509PKIPathv1" URI="#X509-925981AA8498121"/>

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers