soap sample and my code generated soap -
i need pair of eyes problem. soap sample vendor , code generated soap pls tell me work on make these 2 alike.one think sure signarture tag. mine has many uri's..looks encrypting whole message. securitytokenreference in signature
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mhs="http://org/emedny/mhs/" xmlns:urn="urn:hl7-org:v3"> <soapenv:header> <wsse:security soap:mustunderstand="1" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:binarysecuritytoken valuetype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#x509v3" encodingtype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#base64binary" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:id="securitytoken-e00c8062-83d2-4f04-88fc-996218e7bb3d">miicedcc....(emedny signed user mls cert).......</wsse:binarysecuritytoken> <wsse:binarysecuritytoken valuetype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#x509v3" encodingtype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#base64binary" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:id="securitytoken-c0cc2cd4-cb77-4fa5-abfa-bd485afd1685">miidfj.....( emedny mls web-service end-point public cert)........</wsse:binarysecuritytoken> <wsse:usernametoken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:id="securitytoken-970e9a80-00cc-4c86-8ec4-3ba16e029a5b"> <wsse:username>....your_username.....</wsse:username> <wsse:password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#passwordtext">.....your_plaintext_password....</wsse:password> <wsse:nonce>knyu6msxcktg4ddyvwveiw==</wsse:nonce> <wsu:created>2010-09-15t18:00:30z</wsu:created> </wsse:usernametoken> <xenc:encryptedkey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"> <xenc:encryptionmethod algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/> <keyinfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <wsse:securitytokenreference> <wsse:reference uri="#securitytoken-c0cc2cd4-cb77-4fa5-abfa-bd485afd1685" valuetype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#x509v3"/> </wsse:securitytokenreference> </keyinfo> <xenc:cipherdata> <xenc:ciphervalue>gpbawt91pdwhkva............</xenc:ciphervalue> </xenc:cipherdata> <xenc:referencelist> <xenc:datareference uri="#enc-0641b860-b16d-4941-91c0-d60bece67794"/> </xenc:referencelist> </xenc:encryptedkey> <signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <signedinfo> samp l e r eque st w t h ws s e curi t y emedny meds history service user guide page 13 of 48 february 16, 2012 version 1.1 <ds:canonicalizationmethod algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/> <signaturemethod algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <reference uri="#id-f10674fd-b999-47c9-9568-c11fa5e5405b"> <transforms> <transform algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </transforms> <digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <digestvalue>wruq.........</digestvalue> </reference> </signedinfo> <signaturevalue>tbssazi........</signaturevalue> <keyinfo> <wsse:securitytokenreference> <wsse:reference uri="#securitytoken-e00c8062-83d2-4f04-88fc-996218e7bb3d" valuetype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#x509v3"/> </wsse:securitytokenreference> </keyinfo> </signature> </wsse:security> </soapenv:header> <soapenv:body wsu:id="id-f10674fd-b999-47c9-9568-c11fa5e5405b" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <xenc:encrypteddata id="enc-0641b860-b16d-4941-91c0-d60bece67794" type="http://www.w3.org/2001/04/xmlenc#content" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"> <xenc:encryptionmethod algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/> <xenc:cipherdata> <xenc:ciphervalue>sqstcak6zavhojb8+y.........</xenc:ciphervalue> </xenc:cipherdata> </xenc:encrypteddata> </soapenv:body> </soapenv:envelope> this 1 generated using custom binding
<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" u:id="_3"/><a:messageid u:id="_4">urn:uuid:848a7231-015c-4312-8f33-5d780929e826</a:messageid><a:replyto u:id="_5"><a:address>http://www.w3.org/2005/08/addressing/anonymous</a:address></a:replyto><vsdebuggercausalitydata xmlns="http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink">uidpo5exkv18h0ngpfzqdqupyfoaaaaaz8xugtpdn0+xjho5/iin5w7sg3felmthj/xndkfuyriacqaa</vsdebuggercausalitydata><a:to s:mustunderstand="1" u:id="_6">https://service100.emedny.org:9047/mhservice</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"> <o:binarysecuritytoken u:id="uuid-b6dbb7d6-5204-425c-bbad-a48fdcc6bc02-3" valuetype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#x509v3"><removed=</o:binarysecuritytoken> <o:binarysecuritytoken u:id="uuid-b6dbb7d6-5204-425c-bbad-a48fdcc6bc02-2" valuetype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#x509v3">m<removed></o:binarysecuritytoken> <e:encryptedkey id="_0" xmlns:e="http://www.w3.org/2001/04/xmlenc#"> <e:encryptionmethod algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/> <keyinfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <o:securitytokenreference> <o:reference uri="#uuid-b6dbb7d6-5204-425c-bbad-a48fdcc6bc02-2"/> </o:securitytokenreference> </keyinfo> <e:cipherdata><e:ciphervalue>cpnzu2vwqvjpuunqyy8d7dhuoohwf96tybpgewxniddknbh38f6e/pdykbmi4+8lbmm7y0o0qcdlek65kxddypo7kfsdk6nzrx8k7+wf/gok2imx4qufp/bbkuecim5p225kdbanqcw7jculjuzn6+muvixwypcepl/xlnrtfss=</e:ciphervalue></e:cipherdata> <e:referencelist> <e:datareference uri="#_2"/></e:referencelist> </e:encryptedkey> <wsse:usernametoken wsu:id="uuid-b6dbb7d6-5204-425c-bbad-a48fdcc6bc02-1" 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:username>xxx</wsse:username><wsse:password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#passwordtext">xxx</wsse:password><wsse:nonce encodingtype="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#base64binary">zjkod1rqshv7zypa4weu+uhx7aw=</wsse:nonce><wsse:created>2013-05-19t08:36:14.948z</wsse:created></wsse:usernametoken><signature xmlns="http://www.w3.org/2000/09/xmldsig#"><signedinfo><canonicalizationmethod algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><signaturemethod algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <reference uri="#_1"><transforms><transform algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></transforms><digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><digestvalue>f7usmxhi4qtxk3wdc6z+2uruufi=</digestvalue></reference><reference uri="#_3"><transforms><transform algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></transforms><digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><digestvalue>donc3xmpywptojov235wsjmamcq=</digestvalue></reference> <reference uri="#_4"> <transforms> <transform algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </transforms><digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><digestvalue>2dfhw0fhpvuq3kmc49uxxp8i8bi=</digestvalue></reference> <reference uri="#_5"><transforms><transform algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></transforms><digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><digestvalue>k69pykplofpkxhw5ogdhcjcjui0=</digestvalue></reference> <reference uri="#_6"><transforms><transform algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></transforms><digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><digestvalue>uga8rjex4lcxuj2jnn/6oipzpdw=</digestvalue></reference><reference uri="#uuid-b6dbb7d6-5204-425c-bbad-a48fdcc6bc02-1"><transforms><transform algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></transforms><digestmethod algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><digestvalue>9kfmwwujegki/cfwqwtpjh05bha=</digestvalue></reference></signedinfo><signaturevalue>om7oydnv4y8ilqcbqbojhm+pjimmmn0xlhkeqiq+6xcaj0z/uklr/few30twprt6hbxjiaoy2e5n0uxmgbtabl5fd1jp3d8iy2mg1avzdxkjly9zoi2capj4qpqcdp7jjuwue6t5besajlhvhp2gocspx1gzktb4khgmh3loysy=</signaturevalue><keyinfo><o:securitytokenreference><o:reference uri="#uuid-b6dbb7d6-5204-425c-bbad-a48fdcc6bc02-3"/></o:securitytokenreference></keyinfo></signature></o:security></s:header><s:body u:id="_1" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"><e:encrypteddata id="_2" type="http://www.w3.org/2001/04/xmlenc#content" xmlns:e="http://www.w3.org/2001/04/xmlenc#"><e:encryptionmethod algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/><e:cipherdata><e:ciphervalue>gvhf+xgumqxaqfpvfjxe+</e:ciphervalue></e:cipherdata></e:encrypteddata></s:body></s:envelope> thank time sun
Comments
Post a Comment