I have a java web service running on Unix machine with an exposed web method to get number of users logged into another application. I am trying to invoke the web method using 'wget' command from the Unix command prompt to get the users info. But I only see the the connection was established and the bytes were downloaded. I do not see any return value. I am not sure if the method is executed to gather information about users. Please advise what modifiers should I use invoke the web method using wget or if there is any other command that would accomplish this.
From your description it's not clear whether this call supplies all the parameters necessary to execute the WS call, but wget writes whatever response it gets to a file in the current directory - so check if there are any new files, and what's in them.
The web method does not take any parameters. Signature of the web method is public void GetCPUUsed(). When i look into the files created by wget I do not see the returned value anywhere making me suspect if the method was executed to return the value.
Joined: Mar 22, 2005
Well, what is in those files? wget doesn't know the first thing about WS, it only understands HTTP.
Joined: Sep 26, 2012
I exposed a method GetCPUUsage in my web service which returns a CPUUsed on system. When i use wget to call this method I have a file downloaded. Here is the content of the file.