I have inherited an existng web app A(no source). i was given the responsibility to add some value-added functionalities and immediately thought of using Axis. The reason for go through the web service way is that this allow me to implement a b2b solution (i have to implement a portal (web app B) on another web server which would need to communicate with web app A).
The question - since i can do the same thingy - web app B calls web app A by using a more traditional technique (a http post), what are the pros and cons of using web service over implementing a traditional servlet in this case?
The pros that I could think of are :- 1) more elegant coding (looks like a java call if we were to ignore the stubs) 2) more logical as this is really a b2b situation. 3) easy to extend
The cons.. 1) more setup (web.xml) and deployment changes 2) the additional steps required to generate the wsdl and stub files
pros? Less dependence on the old existing code. If you at some point swap it out for something else the calling application need never notice. For that reason alone I'd seriously consider going the way. More flexibility to offer services to 3rd parties in a consistent way.
cons? More up-front work to create the webservice layer on both ends. Possibly more network traffic (SOAP messages vs. plain HTML). Higher resourece use on your machines (requests take longer to process, increasing CPU load and possibly RAM and disk load as well).
Joined: Jun 15, 2004
Pros? >> If you at some point swap it out for something else the calling application need never notice. Agree.
>>>More flexibility to offer services to 3rd parties in a consistent way. Actually, it is the reverse but I take your point. I need to call 3rd parties (other web apps on the same server and/or different servers) in a consistent way.
cons? >>>More up-front work to create the webservice layer on both ends. Agree but if it is worth it then I will bite the bullet.
>>>Possibly more network traffic (SOAP messages vs. plain HTML). Probably ok in this case as this is an infrequent b2b operation
>>>Higher resourece use on your machines Any figures?
Joined: Oct 12, 2000
I have no hard figures for higher resource use, but as you will be executing more code you should have higher load.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com