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 Axis service always reads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis service always reads "(MEMO)" from arguments" Watch "Axis service always reads "(MEMO)" from arguments" New topic

Axis service always reads "(MEMO)" from arguments

Sam Gardner
Ranch Hand

Joined: Oct 02, 2007
Posts: 31
Hey everyone-

I am having an issue that is confusing the hell out of me.

I have a fairly simple web service (deployed the easy way via .jws file) that functions perfectly fine when run as a normal java app.

When I have it deployed, I can access it and it seems to run fine, but for some reason my simple test client won't properly pass strings to it.

No matter what string I pass the service as an argument, that argument is always read as "(MEMO)" by the service.

Does anyone have any idea what could be causing this?

I've posted my client code, if anyone wants to see the service code they're welcome to though it seems to be functioning fine with the exception of always reading "(MEMO)" for one of it's arguments.

I really appreciate any help anyone can give me.
Sam Gardner
Ranch Hand

Joined: Oct 02, 2007
Posts: 31
Here is my .jws file; it occurs to me that something might have to be done to get it to work correctly.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965

doesn't seem to vibe with this:
String location = id + ";" + busLong + ";" + busLat + ";" + numPoints;

to begin with (different number of semicolons). Are you certain that the code you posted produces the example output?
Sam Gardner
Ranch Hand

Joined: Jul 22, 2008
Posts: 48
Sorry about that, I copied and pasted old output after I changed my code to verify that the numPoints argument was being passed correctly.

Now, output is:

no matter what I pass through as arguments.

This makes me think the request isn't being forwarded correctly and that the service is just returning the last valid request that it got, but I have no idea where to start looking for issues.
I agree. Here's the link:
subject: Axis service always reads "(MEMO)" from arguments
jQuery in Action, 3rd edition