从响应android获取所需的SoapObject

时间:2011-07-12 13:38:43

标签: android soap

如何从状态更新中获取SoapPrimitive数据 PKStatusID 1626

 <GetAllStatusUpdatesResult>
        <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
           <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
              <xs:complexType>
                 <xs:choice minOccurs="0" maxOccurs="unbounded">
                    <xs:element name="StatusUpates">
                       <xs:complexType>
                          <xs:sequence>
                             <xs:element name="row" type="xs:long" minOccurs="0"/>
                             <xs:element name="PKStatusID" type="xs:int" minOccurs="0"/>
                             <xs:element name="FKPersonID" type="xs:int" minOccurs="0"/>
                             <xs:element name="FKConferenceID" type="xs:int" minOccurs="0"/>
                             <xs:element name="Message" type="xs:string" minOccurs="0"/>
                             <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
                             <xs:element name="ToPersonId" type="xs:int" minOccurs="0"/>
                             <xs:element name="IsStatusUpdate" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="IsBlogUpdate" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="IsProfilePicture" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="IsDocumentUpdate" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="IsVideoUpdate" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="fkDocumentId" type="xs:int" minOccurs="0"/>
                             <xs:element name="fkVideoId" type="xs:int" minOccurs="0"/>
                             <xs:element name="FkBlogId" type="xs:int" minOccurs="0"/>
                             <xs:element name="CommentedDate" type="xs:dateTime" minOccurs="0"/>
                             <xs:element name="LikesCount" type="xs:int" minOccurs="0"/>
                             <xs:element name="PKPersonId" type="xs:int" minOccurs="0"/>
                             <xs:element name="FKCompanyId" type="xs:int" minOccurs="0"/>
                             <xs:element name="UserName" type="xs:string" minOccurs="0"/>
                             <xs:element name="Password" type="xs:string" minOccurs="0"/>
                             <xs:element name="Role" type="xs:string" minOccurs="0"/>
                             <xs:element name="LastLoginDate" type="xs:dateTime" minOccurs="0"/>
                             <xs:element name="LoginCount" type="xs:int" minOccurs="0"/>
                             <xs:element name="IsActive" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="IsKeyContact" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="Salutation" type="xs:string" minOccurs="0"/>
                             <xs:element name="FirstName" type="xs:string" minOccurs="0"/>
                             <xs:element name="LastName" type="xs:string" minOccurs="0"/>
                             <xs:element name="BirthDate" type="xs:dateTime" minOccurs="0"/>
                             <xs:element name="Gender" type="xs:string" minOccurs="0"/>
                             <xs:element name="JobTitle" type="xs:string" minOccurs="0"/>
                             <xs:element name="AddressLine1" type="xs:string" minOccurs="0"/>
                             <xs:element name="AddressLine2" type="xs:string" minOccurs="0"/>
                             <xs:element name="AddressLine3" type="xs:string" minOccurs="0"/>
                             <xs:element name="City" type="xs:string" minOccurs="0"/>
                             <xs:element name="Country" type="xs:string" minOccurs="0"/>
                             <xs:element name="State" type="xs:string" minOccurs="0"/>
                             <xs:element name="ZipCode" type="xs:string" minOccurs="0"/>
                             <xs:element name="TimeZone" type="xs:string" minOccurs="0"/>
                             <xs:element name="Language" type="xs:string" minOccurs="0"/>
                             <xs:element name="Phone" type="xs:string" minOccurs="0"/>
                             <xs:element name="PhoneExtention" type="xs:string" minOccurs="0"/>
                             <xs:element name="Fax" type="xs:string" minOccurs="0"/>
                             <xs:element name="Email" type="xs:string" minOccurs="0"/>
                             <xs:element name="Website" type="xs:string" minOccurs="0"/>
                             <xs:element name="PersonalProfile" type="xs:string" minOccurs="0"/>
                             <xs:element name="PhotoGuid" type="xs:string" minOccurs="0"/>
                             <xs:element name="Photo" type="xs:base64Binary" minOccurs="0"/>
                             <xs:element name="Interest" type="xs:string" minOccurs="0"/>
                             <xs:element name="Blog" type="xs:string" minOccurs="0"/>
                             <xs:element name="Facebook" type="xs:string" minOccurs="0"/>
                             <xs:element name="LinkedIn" type="xs:string" minOccurs="0"/>
                             <xs:element name="Twitter" type="xs:string" minOccurs="0"/>
                             <xs:element name="Myspace" type="xs:string" minOccurs="0"/>
                             <xs:element name="CreatedBy" type="xs:long" minOccurs="0"/>
                             <xs:element name="CreatedDate" type="xs:dateTime" minOccurs="0"/>
                             <xs:element name="ModifiedBy" type="xs:long" minOccurs="0"/>
                             <xs:element name="ModifiedDate" type="xs:dateTime" minOccurs="0"/>
                             <xs:element name="CompanyName" type="xs:string" minOccurs="0"/>
                             <xs:element name="PKParticipationId" type="xs:int" minOccurs="0"/>
                             <xs:element name="AcceptMeetingRequestFromMyProspects" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMeetingRequestFromEveryone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMeetingRequestFromNone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMessagesFromMyProspects" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMessagesFromEveryone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMessagesFromNone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="ReceivedWelcomeMail" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="ReceivedIntroductoryMail" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="CanReceiveMeetingRequest" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="ClassificationName" type="xs:string" minOccurs="0"/>
                             <xs:element name="CompanyActive" type="xs:boolean" minOccurs="0"/>
                          </xs:sequence>
                       </xs:complexType>
                    </xs:element>
                    <xs:element name="Comments">
                       <xs:complexType>
                          <xs:sequence>
                             <xs:element name="PKCommentID" type="xs:int" minOccurs="0"/>
                             <xs:element name="FKMessageID" type="xs:int" minOccurs="0"/>
                             <xs:element name="PKPersonId" type="xs:int" minOccurs="0"/>
                             <xs:element name="FKConferenceId" type="xs:int" minOccurs="0"/>
                             <xs:element name="PhotoGuid" type="xs:string" minOccurs="0"/>
                             <xs:element name="Comment" type="xs:string" minOccurs="0"/>
                             <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
                             <xs:element name="FirstName" type="xs:string" minOccurs="0"/>
                             <xs:element name="LastName" type="xs:string" minOccurs="0"/>
                             <xs:element name="Salutation" type="xs:string" minOccurs="0"/>
                             <xs:element name="CompanyName" type="xs:string" minOccurs="0"/>
                             <xs:element name="AddressLine1" type="xs:string" minOccurs="0"/>
                             <xs:element name="AddressLine2" type="xs:string" minOccurs="0"/>
                             <xs:element name="City" type="xs:string" minOccurs="0"/>
                             <xs:element name="Country" type="xs:string" minOccurs="0"/>
                             <xs:element name="State" type="xs:string" minOccurs="0"/>
                             <xs:element name="ZipCode" type="xs:string" minOccurs="0"/>
                             <xs:element name="CanReceiveMeetingRequest" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="PKParticipationId" type="xs:int" minOccurs="0"/>
                             <xs:element name="AcceptMeetingRequestFromNone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMeetingRequestFromEveryone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMessagesFromNone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMessagesFromEveryone" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="AcceptMessagesFromMyProspects" type="xs:boolean" minOccurs="0"/>
                             <xs:element name="PKCompanyId" type="xs:int" minOccurs="0"/>
                             <xs:element name="Role" type="xs:string" minOccurs="0"/>
                             <xs:element name="IsActive" type="xs:boolean" minOccurs="0"/>
                          </xs:sequence>
                       </xs:complexType>
                    </xs:element>
                 </xs:choice>
              </xs:complexType>
           </xs:element>
        </xs:schema>
        <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
           <NewDataSet xmlns="">
              <StatusUpates diffgr:id="StatusUpates1" msdata:rowOrder="0">
                 <row>1</row>
                 <PKStatusID>1626</PKStatusID>
                 <FKPersonID>6117</FKPersonID>
                 <FKConferenceID>54</FKConferenceID>
                 <Message>aSDads</Message>
                 <Date>2011-07-08T09:18:52.59-04:00</Date>
                 <IsStatusUpdate>true</IsStatusUpdate>
                 <IsBlogUpdate>false</IsBlogUpdate>
                 <IsProfilePicture>false</IsProfilePicture>
                 <IsDocumentUpdate>false</IsDocumentUpdate>
                 <IsVideoUpdate>false</IsVideoUpdate>
                 <CommentedDate>2011-07-11T05:34:08-04:00</CommentedDate>
                 <LikesCount>0</LikesCount>
                 <PKPersonId>6117</PKPersonId>
                 <FKCompanyId>2393</FKCompanyId>
                 <UserName>jdoe</UserName>
                 <Password>jujama_demo</Password>
                 <Role>attendees</Role>
                 <LastLoginDate>2011-07-12T05:27:27.55-04:00</LastLoginDate>
                 <LoginCount>1328</LoginCount>
                 <IsActive>true</IsActive>
                 <Salutation>Mr.</Salutation>
                 <FirstName>Johnathan</FirstName>
                 <LastName>Doe</LastName>
                 <JobTitle/>
                 <AddressLine1>Pfizer Inc</AddressLine1>
                 <AddressLine2>235 East</AddressLine2>
                 <AddressLine3>42nd Street</AddressLine3>
                 <City>New York</City>
                 <Country>India</Country>
                 <State>AP</State>
                 <ZipCode>500017</ZipCode>
                 <Phone>9959320123</Phone>
                 <PhoneExtention/>
                 <Fax/>
                 <Email>keerthi@jujama.com</Email>
                 <Website>www.pfizer.com</Website>
                 <PersonalProfile>Software testing is an investigation conducted to provide stakeholders with information about the quality of the product or service under test.[1] Software testing also provides an objective, independent view of the software to allow the business to appreciate and understand the risks of software implementation. Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs.</PersonalProfile>
                 <PhotoGuid>PersonImage/317d693e-c867-4941-ba86-5616ba90ecbc_Thumbnail_0a7f341f-2c90-4a23-9804-d41d911466b8.jpg</PhotoGuid>
                 <Interest/>
                 <Blog/>
                 <Facebook/>
                 <LinkedIn/>
                 <Twitter/>
                 <CreatedBy>1</CreatedBy>
                 <CreatedDate>2011-03-26T02:46:56.623-04:00</CreatedDate>
                 <ModifiedBy>6117</ModifiedBy>
                 <ModifiedDate>2011-05-19T07:22:11.257-04:00</ModifiedDate>
                 <CompanyName>Pfizer</CompanyName>
                 <PKParticipationId>151</PKParticipationId>
                 <AcceptMeetingRequestFromMyProspects>false</AcceptMeetingRequestFromMyProspects>
                 <AcceptMeetingRequestFromEveryone>true</AcceptMeetingRequestFromEveryone>
                 <AcceptMeetingRequestFromNone>false</AcceptMeetingRequestFromNone>
                 <AcceptMessagesFromMyProspects>false</AcceptMessagesFromMyProspects>
                 <AcceptMessagesFromEveryone>true</AcceptMessagesFromEveryone>
                 <AcceptMessagesFromNone>false</AcceptMessagesFromNone>
                 <ReceivedWelcomeMail>true</ReceivedWelcomeMail>
                 <ReceivedIntroductoryMail>true</ReceivedIntroductoryMail>
                 <CanReceiveMeetingRequest>true</CanReceiveMeetingRequest>
                 <ClassificationName>^Test Clasification,</ClassificationName>
                 <CompanyActive>true</CompanyActive>
              </StatusUpates>

我使用以下代码但未获得:

    SoapObject returnObj = (SoapObject)response.getProperty("GetAllStatusUpdatesResult");
                 // Integer id = Integer.valueOf(returnObj.getProperty("id");
                  System.out.println("length.."+"prop 0"+returnObj.getProperty(0));

                  for(int i=0;i<returnObj.getPropertyCount();i++) {
                      SoapObject persondetails = (SoapObject)returnObj.getProperty(i);



                      SoapPrimitive salution = (SoapPrimitive)persondetails.getProperty("PKStatusID");
}

如何从状态更新中获取SoapPrimitive数据 PKStatusID 1626

由于

0 个答案:

没有答案