Need to send a Secure XML message
kaviamar Dec 13, 2011 4:23 AMHi,
I am new to the development of
web services.. I am given a task of creating a Request xml as given below..
<SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://www.w3.org/2003/05/soap-envelope
xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<a:Action s:mustUnderstand="1">
http://www.microsoftonline.com/MOSI/1/0/action/AddDomain
</a:Action>
<BecContext xmlns="http://becwebservice.microsoftonline.com/">
</BecContext>
<a:MessageID>
urn:uuid:7feaf58d-93bd-4597-aecd-be7f768f5bbb
</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1" u:Id="_1">
https://qa1mosi.redmond.corp.microsoft.com:11443/Syndication/DomainManagement.svc
</a:To>
<wsse:Security
SOAP-ENV:mustUnderstand="true"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-
wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2011-02-15T22:58:34.861Z</u:Created>
<u:Expires>2011-02-15T23:03:34.861Z</u:Expires>
</u:Timestamp>
<ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-3307594">
<ds:Transforms>
<ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>
ACM0FDySGCZLmajV1etsrHqU4GY=
</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
yuc7jAgrak53B+oP6AFJDzNg16fPAtbQjmgYyUlY1OfOLNvwmNtOohP5g
0XVu521sWTqaWYKrg3sOaa4DQgbkw==
</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-22700073">
<wsse:SecurityTokenReference
wsu:Id="STRId-12245160"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-
200401-wss-wssecurity-utility-1.0.xsd">
<ds:X509IssuerSerial>
<ds:X509IssuerName>
CN=dims
</ds:X509IssuerName>
<ds:X509SerialNumber>
44369778256217224370984914847992022613
</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body
wsu:Id="id-3307594"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-
200401-wss-wssecurity-utility-1.0.xsd">
<sayHello
xmlns="http://jeffhanson.com/services/helloworld">
<value xmlns="">
Hello world!
</value>
</sayHello>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Could anybody please help me in telling what all the things i need to do for development of the above XML.
Thanks in advance..
-
SampleHelloWorldSec.xml 3.0 KB