本文整理汇总了C++中soap_connect函数的典型用法代码示例。如果您正苦于以下问题:C++ soap_connect函数的具体用法?C++ soap_connect怎么用?C++ soap_connect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了soap_connect函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: soap_call_ns__GetData
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__GetData(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct x__Keys *x__keys, char *device_id, char *authstr, struct ns__GetDataResponse *_param_1)
{ struct ns__GetData soap_tmp_ns__GetData;
if (soap_endpoint == NULL)
soap_endpoint = "https://127.0.0.1:8000";
soap->encodingStyle = "";
soap_tmp_ns__GetData.x__keys = x__keys;
soap_tmp_ns__GetData.device_id = device_id;
soap_tmp_ns__GetData.authstr = authstr;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns__GetData(soap, &soap_tmp_ns__GetData);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__GetData(soap, &soap_tmp_ns__GetData, "ns:GetData", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__GetData(soap, &soap_tmp_ns__GetData, "ns:GetData", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!_param_1)
return soap_closesock(soap);
soap_default_ns__GetDataResponse(soap, _param_1);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
if (soap_recv_fault(soap, 1))
return soap->error;
soap_get_ns__GetDataResponse(soap, _param_1, "", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:maomaotp,项目名称:base_code,代码行数:52,代码来源:soapClient.cpp
示例2: soap_begin
int PullPointSubscriptionBindingProxy::Renew_(const char *endpoint, const char *soap_action, _wsnt__Renew *wsnt__Renew, _wsnt__RenewResponse *wsnt__RenewResponse)
{ struct soap *soap = this->soap;
struct __tev__Renew_ soap_tmp___tev__Renew_;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/RenewRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__Renew_.wsnt__Renew = wsnt__Renew;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__Renew_(soap, &soap_tmp___tev__Renew_);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tev__Renew_(soap, &soap_tmp___tev__Renew_, "-tev:Renew", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tev__Renew_(soap, &soap_tmp___tev__Renew_, "-tev:Renew", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__RenewResponse)
return soap_closesock(soap);
wsnt__RenewResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
wsnt__RenewResponse->soap_get(soap, "wsnt:RenewResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:Sufi-Al-Hussaini,项目名称:gsoap-onvif,代码行数:52,代码来源:soapPullPointSubscriptionBindingProxy.cpp
示例3: soap_begin
int PACSBindingProxy::ExternalAuthorization(const char *endpoint, const char *soap_action, _ns3__ExternalAuthorization *ns3__ExternalAuthorization, _ns3__ExternalAuthorizationResponse *ns3__ExternalAuthorizationResponse)
{ struct soap *soap = this;
struct __ns3__ExternalAuthorization soap_tmp___ns3__ExternalAuthorization;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/accesscontrol/wsdl/ExternalAuthorization";
soap->encodingStyle = NULL;
soap_tmp___ns3__ExternalAuthorization.ns3__ExternalAuthorization = ns3__ExternalAuthorization;
soap_begin(soap);
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___ns3__ExternalAuthorization(soap, &soap_tmp___ns3__ExternalAuthorization);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___ns3__ExternalAuthorization(soap, &soap_tmp___ns3__ExternalAuthorization, "-ns3:ExternalAuthorization", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___ns3__ExternalAuthorization(soap, &soap_tmp___ns3__ExternalAuthorization, "-ns3:ExternalAuthorization", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!ns3__ExternalAuthorizationResponse)
return soap_closesock(soap);
ns3__ExternalAuthorizationResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
ns3__ExternalAuthorizationResponse->soap_get(soap, "ns3:ExternalAuthorizationResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:JoakimLindbom,项目名称:agocontrol,代码行数:52,代码来源:soapPACSBindingProxy.cpp
示例4: soap_begin
int SearchBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tse__GetServiceCapabilities *tse__GetServiceCapabilities, _tse__GetServiceCapabilitiesResponse *tse__GetServiceCapabilitiesResponse)
{ struct soap *soap = this;
struct __tse__GetServiceCapabilities soap_tmp___tse__GetServiceCapabilities;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/search/wsdl/GetServiceCapabilities";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tse__GetServiceCapabilities.tse__GetServiceCapabilities = tse__GetServiceCapabilities;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities, "-tse:GetServiceCapabilities", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tse__GetServiceCapabilities(soap, &soap_tmp___tse__GetServiceCapabilities, "-tse:GetServiceCapabilities", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tse__GetServiceCapabilitiesResponse)
return soap_closesock(soap);
tse__GetServiceCapabilitiesResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
tse__GetServiceCapabilitiesResponse->soap_get(soap, "tse:GetServiceCapabilitiesResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:Ecro,项目名称:onvifcpplib,代码行数:52,代码来源:soapSearchBindingProxy.cpp
示例5: soap_call_oph__oph_notify
SOAP_FMAC5 int SOAP_FMAC6 soap_call_oph__oph_notify(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *oph_notify_data, char *oph_notify_json, long *oph_notify_response)
{ struct oph__oph_notify soap_tmp_oph__oph_notify;
struct oph__oph_notifyResponse *soap_tmp_oph__oph_notifyResponse;
if (soap_action == NULL)
soap_action = "";
soap_tmp_oph__oph_notify.oph_notify_data = oph_notify_data;
soap_tmp_oph__oph_notify.oph_notify_json = oph_notify_json;
soap_begin(soap);
soap->encodingStyle = NULL;
soap_serializeheader(soap);
soap_serialize_oph__oph_notify(soap, &soap_tmp_oph__oph_notify);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_oph__oph_notify(soap, &soap_tmp_oph__oph_notify, "oph:oph-notify", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_oph__oph_notify(soap, &soap_tmp_oph__oph_notify, "oph:oph-notify", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!oph_notify_response)
return soap_closesock(soap);
soap_default_xsd__int(soap, oph_notify_response);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_tmp_oph__oph_notifyResponse = soap_get_oph__oph_notifyResponse(soap, NULL, "oph:oph-notifyResponse", NULL);
if (!soap_tmp_oph__oph_notifyResponse || soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
if (oph_notify_response && soap_tmp_oph__oph_notifyResponse->oph_notify_response)
*oph_notify_response = *soap_tmp_oph__oph_notifyResponse->oph_notify_response;
return soap_closesock(soap);
}
开发者ID:OphidiaBigData,项目名称:ophidia-server,代码行数:52,代码来源:soapClient.c
示例6: soap_call_ns__add
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__add(struct soap *soap, const char *soap_endpoint, const char *soap_action, double a, double b, double *result)
{ struct ns__add soap_tmp_ns__add;
struct ns__addResponse *soap_tmp_ns__addResponse;
if (soap_endpoint == NULL)
soap_endpoint = "https://linprog1.cs.fsu.edu:18081";
soap->encodingStyle = NULL;
soap_tmp_ns__add.a = a;
soap_tmp_ns__add.b = b;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns__add(soap, &soap_tmp_ns__add);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__add(soap, &soap_tmp_ns__add, "ns:add", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__add(soap, &soap_tmp_ns__add, "ns:add", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!result)
return soap_closesock(soap);
soap_default_xsd__double(soap, result);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_tmp_ns__addResponse = soap_get_ns__addResponse(soap, NULL, "ns:addResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
if (result && soap_tmp_ns__addResponse->result)
*result = *soap_tmp_ns__addResponse->result;
return soap_closesock(soap);
}
开发者ID:carriercomm,项目名称:PrologMUD,代码行数:52,代码来源:soapClient.c
示例7: soap_begin
int DisplayBindingProxy::DeletePaneConfiguration(const char *endpoint, const char *soap_action, _tls__DeletePaneConfiguration *tls__DeletePaneConfiguration, _tls__DeletePaneConfigurationResponse *tls__DeletePaneConfigurationResponse)
{ struct soap *soap = this;
struct __tls__DeletePaneConfiguration soap_tmp___tls__DeletePaneConfiguration;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/display/wsdl/DeletePaneConfiguration";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tls__DeletePaneConfiguration.tls__DeletePaneConfiguration = tls__DeletePaneConfiguration;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration, "-tls:DeletePaneConfiguration", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration, "-tls:DeletePaneConfiguration", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tls__DeletePaneConfigurationResponse)
return soap_closesock(soap);
tls__DeletePaneConfigurationResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
tls__DeletePaneConfigurationResponse->soap_get(soap, "tls:DeletePaneConfigurationResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:Ecro,项目名称:onvifcpplib,代码行数:52,代码来源:soapDisplayBindingProxy.cpp
示例8: soap_begin
int CRAB_ProxySOAPProxy::getTaskStatus(ns1__getTaskStatusType *getTaskStatusRequest, struct ns1__getTaskStatusResponse &_param_3)
{ struct soap *soap = this;
struct ns1__getTaskStatus soap_tmp_ns1__getTaskStatus;
const char *soap_action = NULL;
if (!soap_endpoint)
soap_endpoint = "http://www.example.org/";
soap_action = "http://www.example.org/CRAB-Proxy/getTaskStatus";
soap->encodingStyle = NULL;
soap_tmp_ns1__getTaskStatus.getTaskStatusRequest = getTaskStatusRequest;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns1__getTaskStatus(soap, &soap_tmp_ns1__getTaskStatus);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns1__getTaskStatus(soap, &soap_tmp_ns1__getTaskStatus, "ns1:getTaskStatus", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns1__getTaskStatus(soap, &soap_tmp_ns1__getTaskStatus, "ns1:getTaskStatus", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
soap_default_ns1__getTaskStatusResponse(soap, &_param_3);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_get_ns1__getTaskStatusResponse(soap, &_param_3, "ns1:getTaskStatusResponse", "");
if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap);
return soap_closesock(soap);
}
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:bbockelm,项目名称:CRAB,代码行数:52,代码来源:soapCRAB_ProxySOAPProxy.cpp
示例9: soap_begin
int RemoteDiscoveryBindingProxy::Probe(const char *endpoint, const char *soap_action, struct wsdd__ProbeType tdn__Probe, struct wsdd__ProbeMatchesType &tdn__ProbeResponse)
{ struct soap *soap = this->soap;
struct __tdn__Probe soap_tmp___tdn__Probe;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/network/wsdl/Probe";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tdn__Probe.tdn__Probe = tdn__Probe;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tdn__Probe(soap, &soap_tmp___tdn__Probe);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tdn__Probe(soap, &soap_tmp___tdn__Probe, "-tdn:Probe", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___tdn__Probe(soap, &soap_tmp___tdn__Probe, "-tdn:Probe", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&tdn__ProbeResponse)
return soap_closesock(soap);
soap_default_wsdd__ProbeMatchesType(soap, &tdn__ProbeResponse);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_get_wsdd__ProbeMatchesType(soap, &tdn__ProbeResponse, "tdn:ProbeResponse", "wsdd:ProbeMatchesType");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:Sufi-Al-Hussaini,项目名称:gsoap-onvif,代码行数:52,代码来源:soapRemoteDiscoveryBindingProxy.cpp
示例10: soap_call_ifx__DslCpeEventCallback
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ifx__DslCpeEventCallback(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *command, char **result)
{ struct ifx__DslCpeEventCallback soap_tmp_ifx__DslCpeEventCallback;
struct ifx__DslCpeEventCallbackResponse *soap_tmp_ifx__DslCpeEventCallbackResponse;
if (!soap_endpoint)
soap_endpoint = "http://board:8080";
soap->encodingStyle = "";
soap_tmp_ifx__DslCpeEventCallback.command = command;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ifx__DslCpeEventCallback(soap, &soap_tmp_ifx__DslCpeEventCallback);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ifx__DslCpeEventCallback(soap, &soap_tmp_ifx__DslCpeEventCallback, "ifx:DslCpeEventCallback", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ifx__DslCpeEventCallback(soap, &soap_tmp_ifx__DslCpeEventCallback, "ifx:DslCpeEventCallback", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
*result = NULL;
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_tmp_ifx__DslCpeEventCallbackResponse = soap_get_ifx__DslCpeEventCallbackResponse(soap, NULL, "ifx:DslCpeEventCallbackResponse", "");
if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap);
return soap_closesock(soap);
}
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
if (result && soap_tmp_ifx__DslCpeEventCallbackResponse->result)
*result = *soap_tmp_ifx__DslCpeEventCallbackResponse->result;
return soap_closesock(soap);
}
开发者ID:ScApi,项目名称:dsl_cpe_control_vrx,代码行数:52,代码来源:dsl_cpe_soap_Client.c
示例11: soap_call_ns__CardCheck
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__CardCheck(struct soap *soap, const char *soap_endpoint, const char *soap_action, std::string *pRegXML, std::string &strRetXML)
{ struct ns__CardCheck soap_tmp_ns__CardCheck;
struct ns__CardCheckResponse *soap_tmp_ns__CardCheckResponse;
if (!soap_endpoint)
soap_endpoint = "http://localhost";
soap->encodingStyle = "";
soap_tmp_ns__CardCheck.pRegXML = pRegXML;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns__CardCheck(soap, &soap_tmp_ns__CardCheck);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__CardCheck(soap, &soap_tmp_ns__CardCheck, "ns:CardCheck", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__CardCheck(soap, &soap_tmp_ns__CardCheck, "ns:CardCheck", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&strRetXML)
return soap_closesock(soap);
soap_default_std__string(soap, &strRetXML);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
if (soap_recv_fault(soap, 1))
return soap->error;
soap_tmp_ns__CardCheckResponse = soap_get_ns__CardCheckResponse(soap, NULL, "", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
strRetXML = soap_tmp_ns__CardCheckResponse->strRetXML;
return soap_closesock(soap);
}
开发者ID:iceleeyo,项目名称:CardProject,代码行数:52,代码来源:soapClient.cpp
示例12: soap_begin
int ImagingBindingProxy::GetMoveOptions(const char *endpoint, const char *soap_action, _timg__GetMoveOptions *timg__GetMoveOptions, _timg__GetMoveOptionsResponse *timg__GetMoveOptionsResponse)
{ struct soap *soap = this;
struct __timg__GetMoveOptions soap_tmp___timg__GetMoveOptions;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver20/imaging/wsdl/GetMoveOptions";
soap->encodingStyle = NULL;
soap_tmp___timg__GetMoveOptions.timg__GetMoveOptions = timg__GetMoveOptions;
soap_begin(soap);
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions, "-timg:GetMoveOptions", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___timg__GetMoveOptions(soap, &soap_tmp___timg__GetMoveOptions, "-timg:GetMoveOptions", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!timg__GetMoveOptionsResponse)
return soap_closesock(soap);
timg__GetMoveOptionsResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
timg__GetMoveOptionsResponse->soap_get(soap, "timg:GetMoveOptionsResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:JoakimLindbom,项目名称:agocontrol,代码行数:52,代码来源:soapImagingBindingProxy.cpp
示例13: soap_call_pmns1__pmSelect
SOAP_FMAC5 int SOAP_FMAC6 soap_call_pmns1__pmSelect(struct soap *soap, const char *soap_endpoint, const char *soap_action, int id, char *query, struct pmns1__pmSelectResponse *_param_2)
{ struct pmns1__pmSelect soap_tmp_pmns1__pmSelect;
if (!soap_endpoint)
soap_endpoint = "https://localhost";
if (!soap_action)
soap_action = "urn:PygmalionAction";
soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/";
soap_tmp_pmns1__pmSelect.id = id;
soap_tmp_pmns1__pmSelect.query = query;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_pmns1__pmSelect(soap, &soap_tmp_pmns1__pmSelect);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_pmns1__pmSelect(soap, &soap_tmp_pmns1__pmSelect, "pmns1:pmSelect", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_pmns1__pmSelect(soap, &soap_tmp_pmns1__pmSelect, "pmns1:pmSelect", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
soap_default_pmns1__pmSelectResponse(soap, _param_2);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_get_pmns1__pmSelectResponse(soap, _param_2, "pmns1:pmSelectResponse", "");
if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap);
return soap_closesock(soap);
}
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:fdsea33,项目名称:pygmalion,代码行数:52,代码来源:pmClient.c
示例14: soap_begin
int ReceiverBindingProxy::GetReceiverState(const char *endpoint, const char *soap_action, _trv__GetReceiverState *trv__GetReceiverState, _trv__GetReceiverStateResponse *trv__GetReceiverStateResponse)
{ struct soap *soap = this;
struct __trv__GetReceiverState soap_tmp___trv__GetReceiverState;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/receiver/wsdl/GetReceiverState";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___trv__GetReceiverState.trv__GetReceiverState = trv__GetReceiverState;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___trv__GetReceiverState(soap, &soap_tmp___trv__GetReceiverState);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___trv__GetReceiverState(soap, &soap_tmp___trv__GetReceiverState, "-trv:GetReceiverState", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___trv__GetReceiverState(soap, &soap_tmp___trv__GetReceiverState, "-trv:GetReceiverState", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!trv__GetReceiverStateResponse)
return soap_closesock(soap);
trv__GetReceiverStateResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
trv__GetReceiverStateResponse->soap_get(soap, "trv:GetReceiverStateResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:haohd,项目名称:bananaPiCam,代码行数:52,代码来源:soapReceiverBindingProxy.cpp
示例15: soap_call_api__doGetCachedPage
SOAP_FMAC5 int SOAP_FMAC6 soap_call_api__doGetCachedPage(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *url, struct xsd__base64Binary *_return)
{ struct api__doGetCachedPage soap_tmp_api__doGetCachedPage;
struct api__doGetCachedPageResponse *soap_tmp_api__doGetCachedPageResponse;
if (!soap_endpoint)
soap_endpoint = "http://api.google.com/search/beta2";
soap->encodingStyle = "";
soap_tmp_api__doGetCachedPage.key = key;
soap_tmp_api__doGetCachedPage.url = url;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_api__doGetCachedPage(soap, &soap_tmp_api__doGetCachedPage);
soap_begin_count(soap);
if (soap->mode & SOAP_IO_LENGTH)
{ soap_envelope_begin_out(soap);
soap_putheader(soap);
soap_body_begin_out(soap);
soap_put_api__doGetCachedPage(soap, &soap_tmp_api__doGetCachedPage, "api:doGetCachedPage", "");
soap_body_end_out(soap);
soap_envelope_end_out(soap);
}
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_api__doGetCachedPage(soap, &soap_tmp_api__doGetCachedPage, "api:doGetCachedPage", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
soap_default_xsd__base64Binary(soap, _return);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
soap_tmp_api__doGetCachedPageResponse = soap_get_api__doGetCachedPageResponse(soap, NULL, "api:doGetCachedPageResponse", "");
if (soap->error)
{ if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
return soap_recv_fault(soap);
return soap_closesock(soap);
}
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
#ifndef WITH_LEANER
|| soap_resolve_attachments(soap)
#endif
|| soap_end_recv(soap))
return soap_closesock(soap);
if (_return && soap_tmp_api__doGetCachedPageResponse->_return)
*_return = *soap_tmp_api__doGetCachedPageResponse->_return;
return soap_closesock(soap);
}
开发者ID:joshsh,项目名称:archive,代码行数:52,代码来源:soapClient.c
示例16: soap_call_ns__getImage
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__getImage(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *name, ns__Data &image)
{ struct ns__getImage soap_tmp_ns__getImage;
struct ns__getImageResponse *soap_tmp_ns__getImageResponse;
if (soap_endpoint == NULL)
soap_endpoint = "https://localhost:8085";
soap_begin(soap);
soap->encodingStyle = "";
soap_tmp_ns__getImage.name = name;
soap_serializeheader(soap);
soap_serialize_ns__getImage(soap, &soap_tmp_ns__getImage);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__getImage(soap, &soap_tmp_ns__getImage, "ns:getImage", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_url(soap, soap_endpoint, NULL), soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put_ns__getImage(soap, &soap_tmp_ns__getImage, "ns:getImage", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&image)
return soap_closesock(soap);
image.soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
if (soap_recv_fault(soap, 1))
return soap->error;
soap_tmp_ns__getImageResponse = soap_get_ns__getImageResponse(soap, NULL, "", NULL);
if (!soap_tmp_ns__getImageResponse || soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
image = soap_tmp_ns__getImageResponse->image;
return soap_closesock(soap);
}
开发者ID:eslinux,项目名称:Windows,代码行数:52,代码来源:soapClient.cpp
示例17: soap_begin
int UploaderSoap12Proxy::UploadSymbol(_ns1__UploadSymbol *ns1__UploadSymbol, _ns1__UploadSymbolResponse *ns1__UploadSymbolResponse)
{ struct soap *soap = this;
struct __ns4__UploadSymbol soap_tmp___ns4__UploadSymbol;
const char *soap_action = NULL;
if (!soap_endpoint)
soap_endpoint = "http://localhost:59175/DumpUploader.asmx";
soap_action = "https://www.crash-server.com/UploadSymbol";
soap->encodingStyle = NULL;
soap_tmp___ns4__UploadSymbol.ns1__UploadSymbol = ns1__UploadSymbol;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize___ns4__UploadSymbol(soap, &soap_tmp___ns4__UploadSymbol);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___ns4__UploadSymbol(soap, &soap_tmp___ns4__UploadSymbol, "-ns4:UploadSymbol", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___ns4__UploadSymbol(soap, &soap_tmp___ns4__UploadSymbol, "-ns4:UploadSymbol", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!ns1__UploadSymbolResponse)
return soap_closesock(soap);
ns1__UploadSymbolResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
ns1__UploadSymbolResponse->soap_get(soap, "ns1:UploadSymbolResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:kusl,项目名称:TortoiseSVN,代码行数:51,代码来源:soapUploaderSoap12Proxy.cpp
示例18: soap_begin
int SealingServicesBindingProxy::Seal(_ns4__Seal *ns4__Seal, _ns4__SealResponse *ns4__SealResponse)
{ struct soap *soap = this;
struct __ns4__Seal soap_tmp___ns4__Seal;
const char *soap_action = NULL;
if (!soap_endpoint)
soap_endpoint = "http://ium-vbox-win2k8:16100/irm_sealing/sealing_services";
soap_action = "urn:SealingServices#Seal";
soap->encodingStyle = NULL;
soap_tmp___ns4__Seal.ns4__Seal = ns4__Seal;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize___ns4__Seal(soap, &soap_tmp___ns4__Seal);
if (soap_begin_count(soap))
return soap->error;
if (soap->mode & SOAP_IO_LENGTH)
{ if (soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___ns4__Seal(soap, &soap_tmp___ns4__Seal, "-ns4:Seal", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap))
return soap->error;
}
if (soap_end_count(soap))
return soap->error;
if (soap_connect(soap, soap_endpoint, soap_action)
|| soap_envelope_begin_out(soap)
|| soap_putheader(soap)
|| soap_body_begin_out(soap)
|| soap_put___ns4__Seal(soap, &soap_tmp___ns4__Seal, "-ns4:Seal", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!ns4__SealResponse)
return soap_closesock(soap);
ns4__SealResponse->soap_default(soap);
if (soap_begin_recv(soap)
|| soap_envelope_begin_in(soap)
|| soap_recv_header(soap)
|| soap_body_begin_in(soap))
return soap_closesock(soap);
ns4__SealResponse->soap_get(soap, "ns4:SealResponse", "");
if (soap->error)
return soap_recv_fault(soap, 0);
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
开发者ID:shoumikhin,项目名称:Oracle-IRM-PoC-Native-Client,代码行数:51,代码来源:soapSealingServicesBindingProxy.cpp
示例19: soap_call___s0__GetProperties
-
六六分期app的软件客服如何联系?不知道吗?加qq群【895510560】即可!标题:六六分期
阅读:19128|2023-10-27
-
今天小编告诉大家如何处理win10系统火狐flash插件总是崩溃的问题,可能很多用户都不知
阅读:9971|2022-11-06
-
今天小编告诉大家如何对win10系统删除桌面回收站图标进行设置,可能很多用户都不知道
阅读:8317|2022-11-06
-
今天小编告诉大家如何对win10系统电脑设置节能降温的设置方法,想必大家都遇到过需要
阅读:8686|2022-11-06
-
我们在使用xp系统的过程中,经常需要对xp系统无线网络安装向导设置进行设置,可能很多
阅读:8626|2022-11-06
-
今天小编告诉大家如何处理win7系统玩cf老是与主机连接不稳定的问题,可能很多用户都不
阅读:9643|2022-11-06
-
电脑对日常生活的重要性小编就不多说了,可是一旦碰到win7系统设置cf烟雾头的问题,很
阅读:8611|2022-11-06
-
我们在日常使用电脑的时候,有的小伙伴们可能在打开应用的时候会遇见提示应用程序无法
阅读:7991|2022-11-06
-
今天小编告诉大家如何对win7系统打开vcf文件进行设置,可能很多用户都不知道怎么对win
阅读:8641|2022-11-06
-
今天小编告诉大家如何对win10系统s4开启USB调试模式进行设置,可能很多用户都不知道怎
阅读:7527|2022-11-06
|
请发表评论