1
我有一個本地字符串是如下:如何字符串對象轉換成SoapObject
String parseStr = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\""
+ " xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
+ "<soap:Body>"
+ "<authenticateUser xmlns=\"http://playinktennismasters.com/\">"
+ "<user>Android</user>" + "</authenticateUser>" + "</soap:Body>"
+ "</soap:Envelope>";
我想將它轉換成SoapObject,然後要分析它。
如果有人有想法該怎麼做,請回復。
在此先感謝。
你會發現你的答案[這裏] [1] [1]:http://stackoverflow.com/questions/13401715/ksoap2我怎麼可以投我的字符串到一個soapobject – anand