#include #include #include #include "proto_comm.h" #include "proto_dbg.h" /*enumming the devices informations*/ int proto_GetDeviceInformation(const char *DeviceXAddr, const char *username, const char *passwd) { int result = 0; struct soap *soap = NULL; struct _tds__GetDeviceInformation req; struct _tds__GetDeviceInformationResponse rep; SOAP_ASSERT(NULL != DeviceXAddr); SOAP_ASSERT(NULL != (soap = proto_soap_new(SOAP_SOCK_TIMEOUT))); proto_SetAuthInfo(soap, username, passwd); memset(&req, 0x00, sizeof(req)); memset(&rep, 0x00, sizeof(rep)); result = soap_call___tds__GetDeviceInformation(soap, DeviceXAddr, NULL, &req, &rep); SOAP_CHECK_ERROR(result, soap, "GetDeviceInformation"); dump_tds__GetDeviceInformationResponse(&rep); EXIT: if (NULL != soap) { proto_soap_delete(soap); } return result; }