[Dev] SOAP response generation

2014-12-16 Thread Asok Perera
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:MessageIDurn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478/a:MessageID
   a:ReplyTo


a:Addresshttp://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;
   EmailAddressu...@contoso.com/EmailAddress
   RequestVersion1.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=1http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse

/a:Action

  ActivityId  

 d9eb2fdd-e38a-46ee-bd93-aea9dc86a3b8   

  /ActivityId 

a:RelatesTourn: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   

AuthPolicyOnPremise/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%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
lean.enterprise.middleware

Mobile: +94722241032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SOAP response generation

2014-12-16 Thread Inosh Perera
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:MessageIDurn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478/a:
MessageID a:ReplyTo

 
 a:Addresshttp://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;
EmailAddressu...@contoso.com/EmailAddress
RequestVersion1.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=1http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse

 /a:Action

   ActivityId

  d9eb2fdd-e38a-46ee-bd93-aea9dc86a3b8 

   /ActivityId   

 a:RelatesTourn: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 

 AuthPolicyOnPremise/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%2Fsa=Dsntz=1usg=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


Re: [Dev] SOAP response generation

2014-12-16 Thread Harsha Thirimanna
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:MessageIDurn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478/a:
MessageID a:ReplyTo

 
 a:Addresshttp://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;
EmailAddressu...@contoso.com/EmailAddress
RequestVersion1.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=1http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse

 /a:Action

   ActivityId   

  d9eb2fdd-e38a-46ee-bd93-aea9dc86a3b8

   /ActivityId  

 a:RelatesTourn: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

 AuthPolicyOnPremise/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%2Fsa=Dsntz=1usg=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


Re: [Dev] SOAP response generation

2014-12-16 Thread Prabath Ariyarathna
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 hars...@wso2.com
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: **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:MessageIDurn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478/a:
MessageID a:ReplyTo

 
 a:Addresshttp://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;
EmailAddressu...@contoso.com/EmailAddress
RequestVersion1.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=1http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse

 /a:Action

   ActivityId  

  d9eb2fdd-e38a-46ee-bd93-aea9dc86a3b8   

   /ActivityId 

 a:RelatesTourn: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   

 AuthPolicyOnPremise/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%2Fsa=Dsntz=1usg=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



-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com prabat...@wso2.com*

*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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SOAP response generation

2014-12-16 Thread Asok Perera
Hi,

Thanks all.
What I needed was implementing a service for a windows mobile client who
sends that SOAP request.
I had a chat with the team regarding this and for the above requirement I
will go with a JAX-WS service for processing the SOAP request by the client.

BR

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

Mobile: +94722241032

On Wed, Dec 17, 2014 at 10:59 AM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 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 hars...@wso2.com
 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: **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:MessageIDurn:uuid: 748132ec-a575-4329-b01b-6171a9cf8478/a:
MessageID a:ReplyTo

 
 a:Addresshttp://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;
EmailAddressu...@contoso.com/EmailAddress
RequestVersion1.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=1http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse

 /a:Action

   ActivityId 

  d9eb2fdd-e38a-46ee-bd93-aea9dc86a3b8  

   /ActivityId

 a:RelatesTourn: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  

 AuthPolicyOnPremise/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%2Fsa=Dsntz=1usg=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