Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservice method calls

 
Anjali S Sharma
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my Java client I am instantiating a Webservice using

mySvc = serviceFactory.getRemoteService(IAcmeCustomService.class, context, "samples", "http://172.16.1.114:8888/services");

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
Sheriff
Posts: 9520
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never created one, but you should go through these articles

https://jax-ws.dev.java.net/nonav/2.1/docs/statefulWebservice.html

http://gdp.globus.org/gt4-tutorial/multiplehtml/ch03.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic