Re: Exception when calling call.invoke()
Sunday, January 16, 2005 07:38 PM
One particular example in the axis implementation helped me with similar issues.
Where the axis fodler is where you installed you axis distribution src, this may be different to the folder within your webapps.
Look at the source code, it pracitically provides a working example.
Pay particular attention to how the bean they are passing (Employee.java) to the client is constructed, then specified in the deploy.wsdd file (very important if you don't understand this file then you could be in for a hard time).
The last step in the client before the line of code where you go call.invoke notice that they use a Deserializer, this specifies how the XML is put back together to form your bean on the client end. This is important without this their is no way to reconstruct the bean on the client side.
Of course all this assumes that you were trying to pass a Bean in the first place. In this case pick apart the example it will help a lot. Even if you are only trying to return a basic value (int, String), this example should still give you some direction.