Passing XML(DataSet) as Parameter

277 views
Skip to first unread message

JoeKingman

unread,
Apr 19, 2012, 9:24:24 AM4/19/12
to ksoap2-android
Hi,
I'm trying to pass a dataset as a XML String to a web service via
kSOAP. It works over SOAPui but not over kSOAP. I captured the traffic
with Wireshark and ksoap replaces "<" and ">" with "&lt;" and "&gt;".
How can I solve this problem?

Any help is welcome.
Regards,
Joe

JoeKingman

unread,
Apr 21, 2012, 8:58:02 AM4/21/12
to ksoap2-android
Can somebody help me? Please, it is very important.
Do I need to change the envelope encodingStyle?
Currently I'm passing the XML as String
(dataset.setType(PropertyInfo.STRING_CLASS);)

KenLian

unread,
Apr 23, 2012, 4:23:17 AM4/23/12
to ksoap2-...@googlegroups.com
Do it work by  passing the XML as String  ?

在 2012年4月19日星期四UTC+8下午9时24分24秒,JoeKingman写道:

JoeKingman

unread,
Apr 23, 2012, 8:48:32 AM4/23/12
to ksoap2-android
I'm passing the DataSet as String XML like this:

PropertyInfo projDataset = new PropertyInfo();
projDataset.setType(PropertyInfo.STRING_CLASS);
projDataset.setName("dataset");
projDataset.setValue(dataset);
request.addProperty(projDataset);

When I print the dataset String to the console it lokks properly. But
when I
capture the request with wireshark I notice that ksoap replaced
the "<" and ">" with "&lt;" and "&gt;". And of course the server
doesn't understand this request and returns an error.
Is there a way to disable the encoding of this characters in ksoap?

Thanks in advance,
Joe

Manfred Moser

unread,
Apr 24, 2012, 12:16:36 AM4/24/12
to ksoap2-...@googlegroups.com
I am not sure there is such a setting ... I have never tried. Anybody
else got this working?
Reply all
Reply to author
Forward
0 new messages