Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to generate SOAP ENEVELOPE  RSS feed

 
sivaprasad pasupulathi
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can Some one provide what are the best practices/methods to construct SOAP Message for a given WSDL.

Thanks
 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use any tool kit like AXIS/XFIRE or JAX-WS.

--Vijay
 
sivaprasad pasupulathi
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks for your reply Vijay,

Can you please provide me an example where i can generate a SOAP Message from a WSDL through JAX-WS.

Thank YOu.
 
sivaprasad pasupulathi
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,I should have been more elaborate.I am looking for creation of SOAP message through Java code dynamically at run time.

or Can i create the soap Envelope once and them replace the soap body according to bussiness rules.Can this is done?

or Do i have a create the Envelope and the body for each and every request.

Thanks



 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://wso2.org/library/1719
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
To generate SOAP messages dynamically at runtime, you may want to consider SAAJ.
Examples on how to use SAAJ can be found in section 5.7 of the following document: http://www.slideshare.net/krizsan/scdjws-5-study-notes-3085287
SAAJ will help you to create an empty SOAP message, which you later can fill in.
Best wishes!
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sivaprasad pasupulathi wrote:I am looking for creation of SOAP message through Java code dynamically at run time.




Building Web Services with JAX-WS explains it.

Regards,
Dan
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did this example untill 10th step
http://wso2.org/library/1719

I am doing Creating Service part.
But when i type http://localhost:8080/axis2/ in browser it doesn't give me result which example mention.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!