• Post Reply Bookmark Topic Watch Topic
  • New Topic

Diff. bet Webservice calls & Non-Webserice calls ( Java )

 
Zen San
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below are w.r.t Java:
How to perform a quick check to differentiate between a WebService calls and Non-Webservice calls. what are minimum components that constitute a webservice call.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If you have web service calls in Java that are done using generated artifacts, then it will be very difficult to see from the code making the call whether the method invoked is a local method or a web service method. I am under the impression that many, if not all, SOAP web service stacks are created as to make web service invocations as similar, if not identical, to invocation of regular methods, in order to shield developers from complexity.
A common pattern that can be seen is to use a service object to obtain a port object and then invoke the web service operation on the port object.
Example:

Best wishes!
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Zen,
How to perform a quick check to differentiate between a WebService calls and Non-Webservice calls.

As you mentioned "quick", here is a way...

Try searching for these packages in your application code. If you find one of these(not unused imports though ), then your application uses web services

First one for J2EE1.4 based web services and the second one for JEE5 based web services.
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops! There could be proprietary web services like IBM, Weblogic, etc. Though they implement the above said package interfaces, they would be in jar files, which you couldn't find with ordinary search mechanism (unless you use better search tools like Agentransack) , in that case follow Ivan's approach
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!