Skip to content Skip to sidebar Skip to footer

Can Not Pass Serialized Object From Android To C# Web Service

I want to send an object from android app to c# web service by ksoap2. The webService method get a ReceptionCommitItem object. this object defined in C# webService as blew : [Seri

Solution 1:

Ksoap doesn't support automatic serialization of custom objects. You should serialize your object property by property using SoapObject and PropertyInfo classes. Or you can make your class serializable by implementing KvmSerializable interface. See this tutorial for example.

Solution 2:

I checked SoapSerializationEnvelope class in ksoap2's src (org/ksoap2/serialization/) and i found that I should Serialize Enum attribute of ReceptionCommitItem too

Post a Comment for "Can Not Pass Serialized Object From Android To C# Web Service"