Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Start session
- // Obtain a session ID
- Xdm::MyBsiStartSessionRequest bsiRequest;
- Xdm::MyBsiStartSessionResponse bsiResponse;
- soapError = soap_call___bsi_USCOREwsdl__StartSession( connection.soaphandle()
- , this->GetConnectionURI()
- , "StartSession"
- , &bsiRequest
- , &bsiResponse);
- // Header
- // Set session ID
- mygsoap_set_header(connection.soaphandle(), bsiResponse.StartSessionResult->SessionID->__item);
- // GetData request
- Xdm::MyGetDataRequest getDataRequest;
- Xdm::MyGetDataResponse getDataResponse;
- // Xpath: /xdm:Device/xdm:Information/dd:ModificationNumber
- // Types: /ixa:Device_t/xdm:ComponentGroup/
- static uint32_t deviceInformationModificationNumber = 0;
- getDataRequest.Path = "/xdm:Device/xdm:Information/dd:ModificationNumber";
- // GetData call
- soapError = soap_call___ixa_USCOREwsdl__GetData( connection.soaphandle()
- , this->GetConnectionURI()
- , "GetData"
- , &getDataRequest
- , &getDataResponse);
- if (SOAP_OK == soapError)
- {
- // Deserialize IXA device
- CScopedSoapStringReader sss(getDataResponse.GetDataResult);
- ixa__Device_USCOREt ixaDevice;
- mygsoap_set_namespaces_xdm(&sss.GetSoap());
- soapError = soap_read_ixa__Device_USCOREt(&sss.GetSoap(), &ixaDevice);
- {
- // Deserialize XDM component
- CScopedSoapStringReader sss(ixaDevice);
- struct xdm__ComponentGroup xdmComponentGroup;
- mygsoap_set_namespaces_xdm(&sss.GetSoap());
- soapError = soap_read_xdm__ComponentGroup(&sss.GetSoap(), &xdmComponentGroup);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement