String types in request

13 views
Skip to first unread message

Cord Awtry

unread,
Feb 29, 2012, 4:40:02 PM2/29/12
to ksoap2-android
All,

Wondering if someone has an idea of how to solve this little bundle
of joy of a problem I have.

I have an android app, using kSoap2, talking to a .NET webservice
which I have no control over. I have the following code snippet:

SoapObject request = new SoapObject(nameSpace, methodName);
PropertyInfo propertyInfo = new PropertyInfo();
propertyInfo.setName(name);
propertyInfo.setNamespace(nameSpace);
propertyInfo.setValue(val.toString());
propertyInfo.setType(PropertyInfo.STRING_CLASS);
request.addProperty(propertyInfo);

In my request, kSoap is setting the property to a type of
"i:type="d:string"", whereas the wsdl has it defined as
"type="xs:string"". The .NET webservice is ignoring the parameter,
because it doesn't have the right type.

I can't come up with a way to force it to have the right type.

Any thoughts?

Thanks!
Reply all
Reply to author
Forward
0 new messages