问题描述
- ubuntu 下开发onvif视频
-
环境
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 okrn");
}
else
{
printf("GetEvent TokenDigest errorrn");
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函数不能正常运行,代码可以编译运行,到这个函数就退出了,
没有其他错误提示
时间: 2025-01-26 20:22:48