I have to call a webservice , I need to pass the static request from Unix which should have message signing details in the soap header . I am using cURL command for this. I do not have java , I need to do it through Unix only .
Below is the kind of Soap envelop I want to wrap around my request . Can you please tell me how do I create the parameters required for message signing from the pfx , .cer files that I have ? so that I can pass the same in my request
<env:Envelope
xmlns:wsa="301 Moved Permanently"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
>
<env:Header>
<wsse:Security env:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
>
<wsse:BinarySecurityToken ValueType="404 Not Found" EncodingType="404 Not Found" wsu:Id="BST-xEkpRht620EQD9YhIlTFAg22"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
>MIICXTCCAcagAwIBAgIETg5IUzANBgkqhkiG9w0BAQUFADBzMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQVoxEDAOBgNVBAcTB1Bob2VuaXgxGTAXBgNVBAoTEEFtZXJpY2FuIEV4cHJlc3MxDTALBgNVBAsTBFVTSVQxGzAZBgNVBAMMElByb2Nlc3Nlc0V2ZW50c19FMTAeFw0xMTA3MDEyMjIxMDdaFw0xNDA2MzAyMjIxMDdaMHMxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJBWjEQMA4GA1UEBxMHUGhvZW5peDEZMBcGA1UEChMQQW1lcmljYW4gRXhwcmVzczENMAsGA1UECxMEVVNJVDEbMBkGA1UEAwwSUHJvY2Vzc2VzRXZlbnRzX0UxMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCfKxu3kPEHnHmi6PS9c/zZxGKyUEH0ucWEllL9Yq+tckZ3SEAqiavu19w9Byk9Us+oVk2O0BW1x+1PRBGrYXvSdP8JlPn2Dr8tb1cH4G5Ndx3JZmigZHWBXBc+R6VDefoomZ5PpiBIFFqCc5NLoY8Ja2VOBoUKFJft/o6E2iwpyQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBABKKdzFMfQIJK5LtZjjr6YFS5pkZeho1AjEVnCxoOcDAN2eQztvPCYG91MjVfW7WwfUGQVvRMjMQ3XJy0Ak6J2STc2O7KGDdpMBZFTshLe8t58I7lqaFZLYwfZWeGhAS8qWczcEIrhYqdW0QlvNUEkbpSxW1MYOqRiw0mTqGpdIo</wsse:BinarySecurityToken>
<dsig:Signature
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
>
<dsig:SignedInfo>
<dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<dsig:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<dsig:Reference URI="#Body-_1">
<dsig:Transforms>
<dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>QMbxbIfmd2l6UD565LzcpNOUT8w=</dsig:DigestValue>
</dsig:Reference>
</dsig:SignedInfo>
<dsig:SignatureValue>X+5HYL1+U/zIkeM49N5gX0O4S/REqy7vyAFoEz/81TQfDITn0+7ELXMOziT2VSogUXWoFouLw03DjsdUHB1P4BsHbN6Zue+FPdgGSOLALBE1SX/VU1t6J5S74l0UQ4Uj9iBzLJRYymo18wBcU/aCbHQSj9QFS3jqbiJTcpblGd8=</dsig:SignatureValue>
<dsig:KeyInfo Id="KeyInfo-1w6eNWAMBixpw3kaVag0VA22">
<wsse:SecurityTokenReference>
<wsse:Reference URI="#BST-xEkpRht620EQD9YhIlTFAg22" ValueType="404 Not Found" />
</wsse:SecurityTokenReference>
</dsig:KeyInfo>
</dsig:Signature>
</wsse:Security>
</env:Header>