aspose file tools*
The moose likes Web Services and the fly likes Unable to receive result from Web Service Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to receive result from Web Service Method" Watch "Unable to receive result from Web Service Method" New topic

Unable to receive result from Web Service Method

Aniket Patil
Ranch Hand

Joined: May 02, 2006
Posts: 218
I have a simple Axis client through which I am trying to access an Axis web service. The Axis client is

The Axis Web service is

I get the following output:

java samples.userguide.example4.Monitor -lhttp://localhost:8080/axis/services/LogTestService
Random number is 5
Value in object is 5
Random number is 4
Value in object is 4
I am not able to receive the result after invoking the web service method setDelay (output is null). Why is this so?
[ November 27, 2007: Message edited by: Aniket Patil ]

SCJP 5.0 | SCWCD 1.4 <br /> <br />If you don't know where you are going, any road will take you there!
Peer Reynders

Joined: Aug 19, 2005
Posts: 2906
Use TCPMon (Tutorial) to have a look at the request and response - that may help to shed some light on what is going on. It�s included with Axis.

However you will run into an entirely different problem. Axis creates a new service instance for each incoming call. So even if you manage to set the delay, it won't "remember" it the next time you call a web method because you are dealing with a new, separate service instance. Web services are supposed to be stateless.

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
I agree. Here's the link:
subject: Unable to receive result from Web Service Method
Similar Threads
Package doesnot exist
Client Side Exception
axis and attachments
Invoking a webservice from a servlet
set return type as array of integer