我打電話給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