Author
How to generate SOAP ENEVELOPE
sivaprasad pasupulathi
Ranch Hand
Joined: Apr 21, 2009
Posts: 36
posted Apr 09, 2010 13:11:51
0
Hi
Can Some one provide what are the best practices/methods to construct SOAP Message for a given WSDL.
Thanks
Vijay Kumar
Ranch Hand
Joined: Jul 24, 2003
Posts: 260
You can use any tool kit like AXIS/XFIRE or JAX-WS.
--Vijay
sivaprasad pasupulathi
Ranch Hand
Joined: Apr 21, 2009
Posts: 36
posted Apr 09, 2010 13:30:54
0
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
Joined: Apr 21, 2009
Posts: 36
posted Apr 09, 2010 13:37:11
0
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
Joined: Jan 08, 2010
Posts: 510
http://wso2.org/library/1719
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
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
Joined: Jul 09, 2001
Posts: 1123
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
Joined: Jan 08, 2010
Posts: 510
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.
subject: How to generate SOAP ENEVELOPE