Hi,

This is a Java compiler issue.

When you compile your web service class, the resulting .class file have no information about parameter names. Since axis2 is parsing .class files, it can't know the original parameter name. Hence, it calls the parameters param0, param1 and so on.

Workaround for this problem is to compile classes with -g parameter, which will keep all kind of information in your .class files for debugging purposes, including parameter names. In this case, axis2 will use it and generate appropriate parameter names. In your case, "id".


(I really think this issue should be in FAQ.)

Regards,
Ognjen


jnedzel wrote:
I'll see if I can try that.

I found out that the url that I needed to use was:

http://localhost:8080/axis2/rest/variation/geneid?param0=foo
                                                  ^^^^^^
Rather than:

http://localhost:8080/axis2/rest/variation/geneid?id=foo
                                                  ^^
Does V1.2 fix this? Or can I specify the argument name in services.xml without creating a WSDL?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to