Hi,
My xfire service methos works fine when it returns some primitive java types
such as int, String.  However, one method returns a Java Bean such as:
public class AuthenticationResponse
{
   private boolean isAuthenticated;
   private String message;
   public getters(){......}
   public setters(){......}
}

When I invoke this method with debuggers on, I find that the method is
executed properly, but at the end when it is about to receive this object,
xfire client throws an exception:
callSoapServiceLocal(): got service model.
WsClient.callWebService(): EXCEPTION:
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested
exception is org.codehaus.xfire.fault.XFireFault: Couldn't instantiate
class. com.adestagroup.authentication.manager.AuthenticationResponse
Exception in thread "main" java.lang.NullPointerException
       at TestWebService.callWebService(TestWebService.java:69)
       at TestWebService.main(TestWebService.java:27)

Thanks.
note: I also have AuthenticationResponse class available for the client as
well.

Reply via email to