File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Webservice method calls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Webservice method calls" Watch "Webservice method calls" New topic

Webservice method calls

Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279
From my Java client I am instantiating a Webservice using

mySvc = serviceFactory.getRemoteService(IAcmeCustomService.class, context, "samples", "");

then I am calling two methods of this webservice using
AcmeServiceInfo acmeServiceInfo = mySvc.getAcmeServiceInfo();
DocTypeStatus status = mySvc.getDocTypeStatus();

The problem is that the instance variables set in getAcmeServiceInfo() are not available in getDocTypeStatus(). Is this the expected behavior? Or should the webservice instance variables be available across methods.
Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

I've never created one, but you should go through these articles

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Webservice method calls
It's not a secret anymore!