2 xjwy xjwy 于 2015.06.10 09:47 提问

ubuntu 下开发onvif视频 10C

环境
ubuntu
gsoap
onvif
代码
int ONVIF_GetEvent(struct soap **soap, char *endpoint, char *username, char *password)
{
int return_num;
int rett = soap_wsse_add_UsernameTokenDigest(*soap, NULL, username, password);
if (rett == 0)
{
printf("GetEvent TokenDigest ok\r\n");
}
else
{
printf("GetEvent TokenDigest error\r\n");
return 1;
}
struct tev_CreatePullPointSubscription tev__Create;
struct tev_CreatePullPointSubscriptionResponse tev__Response;
tev__Create.InitialTerminationTime = "PT10S";
soap_wsse_add_UsernameTokenDigest(*soap, NULL, username , password);

int ret1 = soap_call___ns7__CreatePullPointSubscription(*soap, endpoint, NULL, &tev__Create, &tev__Response);
cout <<  "CreatePullPointSubscription:" <<  ret1 << endl;
cout << "CreatePullPointSubscription response:" << tev__Response.__size  << endl;
    return 0;

}

问题
目前可以用取 功能/profile/uri等都可以取到,目前学习开发event

创建一个委托, 执行soap_call___ns7__CreatePullPointSubscription函数不能正常运行,代码可以编译运行,到这个函数就退出了,
没有其他错误提示

Csdn user default icon
上传中...
上传图片
插入图片