• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic