Hi, Are you going to prepare this response by manually ?
Can you explain what is the actual requirement of doing this ? *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * <http://www.apache.org/>* *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>* *harshathirimannlinked-in: **http: <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>* *Lean . Enterprise . Middleware* On Wed, Dec 17, 2014 at 10:11 AM, Inosh Perera <ino...@wso2.com> wrote: > > Hi Asok, > You can use axis2 SOAPFactory to perform this. This might be helpful[1] > > [1] > http://amilachinthaka.blogspot.com/2009/09/sending-arbitrary-soap-message-with.html > > Regards, > Inosh > > On Wed, Dec 17, 2014 at 9:45 AM, Asok Perera <as...@wso2.com> wrote: >> >> 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>u...@contoso.com</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 >> > > > -- > Inosh Perera > Software Engineer, WSO2 Inc. > Tel: 0785293686 > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev