This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes change to soap request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "change to soap request" Watch "change to soap request" New topic
Author

change to soap request

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
this is my form


this is a servlet

this is database class



currently it goes to server as HTTPS.
i need to change this as a send to Soap request to the server.
how should i change my code?
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
I am assuming that you at least attempt to use some kind of MVC-like pattern:
The UI part does not need any changes.
The controller (servlet) needs to be injected with a web service client, to which it delegate the work. You should also remove all references to the database handler from the controller.
The database part does not need any changes, but instead of being injected into the controller, it should be injected into the web service class.
Additionally, you need to implement the web service.
Best wishes!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: change to soap request
 
Similar Threads
exception while running code
what sould be generator element & where to put save method
java.lang.NoClassDefFoundError
error of missing values
is there a any validation API in java