When I pass the bean object reference to the webservice in android I am getting
the following issue.
throws an exception: Cannot serialize: com.fsck.common.UserRequest@412d9e30
I am using the following bean class.
package com.fsck.common;
public class UserRequest {
private String username;
private String password;
public void setUsername(String username) {
this.username = username;
}
public String getUsername() {
return username;
}
public void setPassword(String password) {
this.password= password;
}
public String getPassword() {
return password;
}
}
I am getting error while calling the service in the following line.
UserRequest userRequest = new UserRequest();
userRequest.setPassword("test");
userRequest.setUsername("test");
request.addProperty("userRequest", userRequest);
httpTransport.call(SOAP_ACTION, envelope);
Please help me how to pass the bean object to the webservice?
Thanks,
Karthik
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en