Serialization problem

101 views
Skip to first unread message

Javier Barranco

unread,
Sep 22, 2011, 11:34:55 AM9/22/11
to ksoap2-android
Hi.

I am working on a company which have a .net website and webservices.
The webservice are wsdl soad.

I need to comunicate my android device with those webservices, so,
after a lot of research, I found ksoap2.

First, I tried a simple comunication with strings, and it works fine!
But now, I need to work with complex objects, so I followed this
tutorial: http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html

It uses "KvmSerializable" for the work. But when I tried with my
webservices I get the error below:

"SoapFault - faultcode: 'a:DeserializationFailed' faultstring: 'The
formatter threw an exception while trying to deserialize the message:
There was an error while trying to deserialize parameter http://tempuri.org/:user.
The InnerException message was 'Element user from namespace http://tempuri.org/
cannot have child contents to be deserialized as an object. Please use
XmlNode[] to deserialize this pattern of XML.'. Please see
InnerException for more details.' faultactor: 'null' detail: null"

Any ideas? Also, is there any option to extract the .xml it creates?

Thanks
Reply all
Reply to author
Forward
0 new messages