Unmarshalling error

270 views
Skip to first unread message

Peter Oberrauner

unread,
Mar 13, 2013, 6:06:29 PM3/13/13
to ksoap2-...@googlegroups.com
Hey,

I've been struggeling with this for days now. 

I want to access the functions of an BIMServer. The Server gives me the following WSDL. As you can see it is really huge.

For the beginning i just want to call the ping function (String ping(String in)). 

So here is my code:

                  String namespace = "http://shared.bimserver.org/";
                  String method = "ping";
                  String url = "http://10.0.0.1:8082/soap?WSDL";
                  
                  SoapObject request = new SoapObject(namespace, method);
              
                  request.addProperty("in", "test");

                  SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                  envelope.dotNet = true;
                  envelope.setOutputSoapObject(request);

                  HttpTransportSE httpTransport = new HttpTransportSE(url);
                  httpTransport.debug = true;
                  httpTransport.call(namespace + method, envelope);

This generates the following request:

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"><v:Header /><v:Body><ping xmlns="http://shared.bimserver.org/"><in>test</in></ping></v:Body></v:Envelope>

But it always gives me an SoapFault:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling Error: unexpected element (uri:"http://shared.bimserver.org/", local:"in"). Expected elements are &lt;{}in> </faultstring></soap:Fault></soap:Body></soap:Envelope>

I already asked this question at stackoverflow and there are some additional informations too: http://stackoverflow.com/questions/15384028/accessing-webservice-from-android-using-ksoap2

Can somebody PLEASE point me in the right direction? 

dxz

unread,
Nov 27, 2013, 5:38:51 AM11/27/13
to ksoap2-...@googlegroups.com, oberraun...@gmail.com
The same problem plagued me.
Did you solve it? help!

在 2013年3月14日星期四UTC+8上午6时06分29秒,Peter Oberrauner写道:

Pradeep Bishnoi

unread,
Apr 17, 2017, 5:06:46 AM4/17/17
to ksoap2-android, oberraun...@gmail.com


i am also fetching same above exception 
please help me its very urgent .
Reply all
Reply to author
Forward
0 new messages