This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

change to soap request

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic