android xml SOAP 响应
android xml SOAP response
我从 .NET SOAP 服务器返回了以下 SOAP 响应。
(<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetCategoriesIMFollowing_WithTokenResponse xmlns="http://tempuri.org/">
<GetCategoriesIMFollowing_WithTokenResult>8,9,10,11,12,2</GetCategoriesIMFollowing_WithTokenResult>
</GetCategoriesIMFollowing_WithTokenResponse>
</soap:Body>
</soap:Envelope>).
我需要解析它以获得整数 (8,9,10,11,12,2)
获得这些数字的最简单方法是什么?
提前致谢。
我在这个 link
中找到了我需要的东西
http://www.whatsoniphone.com/blog/android-app-development-parsing-web-service-response-part-1/#
谢谢。
我从 .NET SOAP 服务器返回了以下 SOAP 响应。
(<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetCategoriesIMFollowing_WithTokenResponse xmlns="http://tempuri.org/">
<GetCategoriesIMFollowing_WithTokenResult>8,9,10,11,12,2</GetCategoriesIMFollowing_WithTokenResult>
</GetCategoriesIMFollowing_WithTokenResponse>
</soap:Body>
</soap:Envelope>).
我需要解析它以获得整数 (8,9,10,11,12,2)
获得这些数字的最简单方法是什么?
提前致谢。
我在这个 link
中找到了我需要的东西http://www.whatsoniphone.com/blog/android-app-development-parsing-web-service-response-part-1/#
谢谢。