Hi,

I need to create a SOAP response for a particular request as given below.

Request :

   1.

   <?xml version="1.0"?>
   <s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing";

      xmlns:s="http://www.w3.org/2003/05/soap-envelope";>
      <s:Header>

         <a:Action s:mustUnderstand="1">
http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/Discover

   </a:Action>
   <a:MessageID>urn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478</a:MessageID>
   <a:ReplyTo>

            
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
         </a:ReplyTo>
         <a:To s:mustUnderstand="1">

            https://ENROLLTEST.CONTOSO.COM/EnrollmentServer/Discovery.svc

         </a:To>
      </s:Header>

      <s:Body>
         <Discover
xmlns="http://schemas.microsoft.com/windows/management/2012/01/enrollment/";>

            <request xmlns:i="http://www.w3.org/2001/XMLSchema-instance";>
               <EmailAddress>[email protected]</EmailAddress>
               <RequestVersion>1.0</RequestVersion>

            </request>
         </Discover>

      </s:Body>
   </s:Envelope>

   2.



Needed Response:

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope";
xmlns:a="http://www.w3.org/2005/08/addressing";>
   <s:Header>                                   

      <a:Action
s:mustUnderstand="1">http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse

</a:Action>

      <ActivityId>                              

         d9eb2fdd-e38a-46ee-bd93-aea9dc86a3b8                           

      </ActivityId>                             

<a:RelatesTo>urn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478</a:RelatesTo> </
s:Header>

   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
      <DiscoverResponse                                 

         
xmlns="http://schemas.microsoft.com/windows/management/2012/01/enrollment";>
         <DiscoverResult>                                       

            <AuthPolicy>OnPremise</AuthPolicy>
            <EnrollmentPolicyServiceUrl>                                

               
https://enrolltest.contoso.com/ENROLLMENTSERVER/DEVICEENROLLMENTWEBSERVICE.SVC

            </EnrollmentPolicyServiceUrl>
            <EnrollmentServiceUrl>

https://enrolltest.contoso.com/ENROLLMENTSERVER/DEVICEENROLLMENTWEBSERVICE.SVC

            </EnrollmentServiceUrl>
         </DiscoverResult>                                      

      </DiscoverResponse>
   </s:Body>                                    

</s:Envelope>
Can anybody say, what might be the best way to implement this ?

BR


*Asok Aravinda Perera*
Software Engineer
WSO2, Inc.;http://wso2.com/
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
lean.enterprise.middleware

Mobile: +94722241032
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to