Cord Awtry
unread,Feb 29, 2012, 4:40:02 PM2/29/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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!