我打电话给webservice使用KSoap2 in android
,但我得到的响应如下。如何在android中解析这个ksoap响应。Android:如何解析KSOAP2响应
ResolveNamesResponse {ResponseMessages = anyType的{ResolveNamesResponseMessage = anyType的{=的MessageText多个被发现 结果.; ResponseCode = ErrorNameResolutionMultipleResults; DescriptiveLinkKey = 0; ResolutionSet = anyType {Resolution = anyType {Mailbox = anyType {Name = Amyj; [email protected]; RoutingType = SMTP; MailboxType =邮箱; };联系人= anyType {DisplayName =艾米约翰; GivenName = Amy; GivenName = Amy; EmailAddresses = anyType {Entry = SIP:[email protected]; Entry = SMTP:[email protected]; }; PhysicalAddresses = anyType {Entry = anyType {CountryOrRegion = China; }; }; ContactSource = ActiveDirectory;姓=约翰; }; }; Resolution = anyType {Mailbox = anyType {Name = Amyraj; [email protected]; RoutingType = SMTP; MailboxType =邮箱; }; Contact = anyType {DisplayName = Amy Raj; GivenName = Amy; GivenName = Amy; EmailAddresses = anyType {Entry = SIP:[email protected]; Entry = SMTP:[email protected]; }; PhysicalAddresses = anyType {Entry = anyType {CountryOrRegion = India; }; }; ContactSource = ActiveDirectory;姓=拉吉; }; }; Resolution = anyType {Mailbox = anyType {Name = shine; [email protected]; RoutingType = SMTP; MailboxType =邮箱; }; Contact = anyType {DisplayName = Shine Joseph; GivenName = Shine; GivenName = Shine; EmailAddresses = anyType {Entry = SIP:[email protected]; Entry = SMTP:[email protected]; }; PhysicalAddresses = anyType {Entry = anyType {CountryOrRegion = India; }; }; ContactSource = ActiveDirectory;姓=约瑟。 }; }; }; }; }; }
感谢您的帮助!
参考:http://stackoverflow.com/a/2049156/442580 – capdragon 2012-12-29 17:52:18