necesito generar las cabeceras que tiene este xml de ejemplo,, antes de realziar el llamado al metodo del WS.
Código HTML:
<soap:Envelope> <soap:Header> <messageHeader> <to> <gln>5435456</gln> </to> <from> <gln>6546546</gln> </from> <representingParty> <gln>4234</gln> </representingParty> </messageHeader> <wsrp:path soap:actor="http://schemas.xmlsoap.org/soap/actor/next" soap:mustUnderstand="1"> <wsrp:action wsu:Id="Id-0070d90b-ee6c-40d2-a855-f6ed0e9ea0ee">http://vesta.com.br/pse/MainServices/getBankList</wsrp:action> <wsrp:to wsu:Id="Id-749c58b4-8c52-4b1b-9b89-06ae08cc243b">https://desarrollo.pse.com.co/PSEWebServices/MainServices.asmx</wsrp:to> <wsrp:id wsu:Id="Id-5e67dee9-d75e-4be7-9429-54244568fab7">uuid:21a1d602-fd92-4b72-bd48-a99694944106</wsrp:id> </wsrp:path> <wsu:Timestamp> <wsu:Created wsu:Id="Id-5c8be106-2455-48e8-bdcc-aece77445404">2010-07-27T20:58:16Z</wsu:Created> </wsu:Timestamp> <wsse:Security soap:mustUnderstand="1"> <wsse:BinarySecurityToken ValueType="wsse:X509v3" EncodingType="wsse:Base64Binary" wsu:Id="SecurityToken-0d729a19-7354-464b-9eb7-0975fefe6f04">MIIEPDCCAySgAwIBAgIKJ27M3QAAAAADxzANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdBQ0hST09UMB4XDTA5MDkwNDIwMjIxN1oXDTEwMDkwNDIwMzIxN1owdTELMAkGA1UEBhMCQ08xFTATBgNVBAgTDENVTkRJTkFNQVJDQTEPMA0GA1UEBxMGQk9HT1RBMRQwEgYDVQQKEwtBQ0hDT0xPTUJJQTEMMAoGA1UECxMDQUNIMRowGAYDVQQDExFDb21lcmNpb0RlUHJ1ZWJhczCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEApt2MOs4RDOtrYbw2uT7OtWg/1aL4y6ug8OS3wpVr6YgaDQuqJqDSLEUWhaxT2QZsrlWAgduOTHt5e2xWLWZ3xaXFqUnud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> <CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <Reference URI="#Id-7d68e584-168d-4cf8-9672-fff28b9d6e7b"> <Transforms> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue>AQj0iYQcZIEjHNPhX+EU0ONH4M0=</DigestValue> </Reference> <Reference URI="#Id-0070d90b-ee6c-40d2-a855-f6ed0e9ea0ee"> <Transforms> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue>HA5hHuvwLhdu7/a/7VvQ1yX3g1Q=</DigestValue> </Reference> <Reference URI="#Id-749c58b4-8c52-4b1b-9b89-06ae08cc243b"> <Transforms> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue>YDQWYmmCL5tqc/ikx21+imYkwsw=</DigestValue> </Reference> <Reference URI="#Id-5e67dee9-d75e-4be7-9429-54244568fab7"> <Transforms> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue>mllY5Go1QIp9tQtqOIyLOaMV0RA=</DigestValue> </Reference> <Reference URI="#Id-5c8be106-2455-48e8-bdcc-aece77445404"> <Transforms> <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </Transforms> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <DigestValue>U0mDHRVgcJ+qIO56gUcSVNBjemQ=</DigestValue> </Reference> </SignedInfo> <SignatureValue>YOnLLiJfyHdNJRCbhB5r09hDVGdsxvRGuatNuXzXlcrw7oicDdDT0djs9Z68u2Qcfuik46U0ZiALEhwNOvf4ez75Zj/aCx/5yX9Hm01ypFCZPQh38qC2rNBxdGzmvpI9J4mY9NPDTaltct2/+CoflJhu+U3zRFn0XGRbmPIiAzs=</SignatureValue> <KeyInfo> <wsse:SecurityTokenReference> <wsse:Reference URI="#SecurityToken-0d729a19-7354-464b-9eb7-0975fefe6f04"/> </wsse:SecurityTokenReference> </KeyInfo> </Signature> </wsse:Security> </soap:Header> <soap:Body wsu:Id="Id-7d68e584-168d-4cf8-9672-fff28b9d6e7b"> <getBankList> <getBankListInformation> <entityCode>5435456</entityCode> </getBankListInformation> </getBankList> </soap:Body> </soap:Envelope>