xml rpc - XMLRPC in android error extra parameter -
i have problem xmlrpc when pass parameter invoke server.
jsonobject s_profile = new jsonobject(); s_profile.put("token", tokenid); s_profile.put("lname", fname.gettext().tostring()); s_profile.put("lname", lname.gettext().tostring()); s_profile.put("address", address.gettext().tostring()); s_profile.put("city", city.gettext().tostring()); s_profile.put("state", state.gettext().tostring()); s_profile.put("homephone", homephone.gettext().tostring()); s_profile.put("cellphone", cellphone.gettext().tostring()); s_profile.put("zipcode", zipcode.gettext().tostring()); s_profile.put("contactname", contact.gettext().tostring()); s_profile.put("contactphone", phone.gettext().tostring()); xmlrpcclient client = new xmlrpcclient(config.urlapi); seek { obj = (hashmap<string, string>) client.call("requestupdatepatientprofile",s_profile.tostring()); } grab (xmlrpcexception e) { // todo auto-generated grab block e.printstacktrace(); }
i error "org.xmlrpc.android.xmlrpcfault: xmlrpc fault: object reference not set instance of object"
must do?
cross check xmlrpc connection not null
//.. xmlrpcclient client = new xmlrpcclient(config.urlapi); if(client != null){ //your code here }
android xml-rpc
No comments:
Post a Comment