To continue just now, look at the specific code, first CONNECTL implementation:
View Plaincopy to Clipboardprint?
Voidcwebengine::connectl ()
{
CSENXMLSERVICEDESCRIPTION*PATTERN=CSENXMLSERVICEDESCRIPTION::NEWLC ();
Pattern->setframeworkidl (Kdefaultbasicwebservicesframeworkid);
Pattern->setendpointl (Kwsendpoint);
Deleteiconnection;
Iconnection=null;
ICONNECTION=CSENSERVICECONNECTION::NEWL (*this,*pattern);
Cleanupstack::P Opanddestroy (pattern);
}
void CWebEngine::ConnectL()
{
CSenXmlServiceDescription* pattern = CSenXmlServiceDescription::NewLC();
pattern->SetFrameworkIdL(KDefaultBasicWebServicesFrameworkID);
pattern->SetEndPointL(KWSEndPoint);
delete iConnection;
iConnection = NULL;
iConnection = CSenServiceConnection::NewL(*this, *pattern);
CleanupStack::PopAndDestroy(pattern);
}
Notice here that unlike that AddressBook example, we have declared that different frame types are kdefaultbasicwebservicesframeworkid, and that they only need to provide endpoint without contract. The value of the Kwsendpoint is stated before the CPP: _lit8 (Kwsendpoint, "http://192.168.0.201/uim/PService.asmx");
CSENSERVICECONNECTION::NEWL two parameters, one is that they are responsible for processing callbacks, and the second is a csenxmlservicedescription responsible for parameter configuration.
I simply print out the status value in the callback SetStatus.