I am New to blackberry Develipment.I am developing using Momentics IDE. Now I am working on Soap webservice integration. Now my webservice function call is working. I am getting response also. My webservice response is like,
<SignupResponse xmlns="http://shidhints.com/">
<SignupResult>
<Success>boolean</Success>
<ErrorOnFailure>string</ErrorOnFailure>
<Token>string</Token>
<NumberofReferral>int</NumberofReferral>
<ListEmails>
<string>string</string>
<string>string</string>
</ListEmails>
</SignupResult>
</SignupResponse>
While parese the responce, Now I can parse and get the Token, NumberofReferral But I cannot parse the ListEmails object. How I can parse this ListEmails. I am doing like this.
m_Token = responseValue["Token"].value().toString();
m_NumberofReferral = responseValue["NumberofReferral"].value().toString();
QVariantList listObj = responseValue["ListEmails"].value().toList();
Now I want to parse listObj How i can do that,
I have resolved it using
QtSoapArray &m_Emails1 = (QtSoapArray &) responseValue["ListEmails"];
for (int var = 0; var < m_Emails1.count(); ++var) {
qDebug() << "Email: "+ m_Emails1[var].toString();
}