Hi Asok. If you need to build a mock SOAP service you can use the SOAP UI[1].
[1] = http://www.soapui.org/Getting-Started/mock-services.html <http://www.soapui.org/Getting-Started/mock-services.html> On Wed, Dec 17, 2014 at 10:24 AM, Harsha Thirimanna <[email protected]> wrote: > > 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: **[email protected]* <[email protected]>* 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 <[email protected]> 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 <[email protected]> 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>[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 >>> >> >> >> -- >> Inosh Perera >> Software Engineer, WSO2 Inc. >> Tel: 0785293686 >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Prabath Ariyarathna* *Associate Technical Lead* *WSO2, Inc. * *lean . enterprise . middleware * *Email: [email protected] <[email protected]>* *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com>* *Flicker : https://www.flickr.com/photos/47759189@N08 <https://www.flickr.com/photos/47759189@N08>* *Mobile: +94 77 699 4730 *
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
