Go ahead and see how to get the result value, which is the string HelloWorld in the
View Plaincopy to Clipboardprint?
Tptrc8chelloworldresult::result ()
{
Csenelement*pelement=aselement (). Element (Khelloresult);
if (pelement)
{
_lit (STR, "result----");
LOG (STR);
Returnpelement->content ();
}
else{
LOG (_l ("Noresult"));
ReturnKNullDesC8 ();
}
}
TPtrC8 CHelloWorldResult::Result()
{
CSenElement * pElement = AsElement().Element(KHelloResult);
if(pElement)
{
_LIT(STR,"result----");
LOG(STR);
return pElement->Content();
}
else {
LOG(_L("no result"));
return KNullDesC8();
}
}
In fact, here is better to understand, look at the Csenelement SDK documentation will know a sorta.
To sum up:
1. Using Symbian's Web services APIs to implement a Web service client is annoying, and the main trouble is that the XML content of the SOAP request and response has to be constructed and parsed itself.
2. The commonly used webservice only endpoint does not have an ID service, so it should be the underlying WS framework.