本文整理汇总了C++中soap_body_begin_out函数的典型用法代码示例。如果您正苦于以下问题:C++ soap_body_begin_out函数的具体用法?C++ soap_body_begin_out怎么用?C++ soap_body_begin_out使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了soap_body_begin_out函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: soap_begin
int PACSBindingProxy::GetAreaInfoList(const char *endpoint, const char *soap_action, _ns3__GetAreaInfoList *ns3__GetAreaInfoList, _ns3__GetAreaInfoListResponse *ns3__GetAreaInfoListResponse)
{ struct soap *soap = this;
struct __ns3__GetAreaInfoList soap_tmp___ns3__GetAreaInfoList;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/accesscontrol/wsdl/GetAreaInfoList";
soap->encodingStyle = NULL;
soap_tmp___ns3__GetAreaInfoList.ns3__GetAreaInfoList = ns3__GetAreaInfoList;
soap_begin(soap);
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___ns3__GetAreaInfoList(soap, &soap_tmp___ns3__GetAreaInfoList);
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__GetAreaInfoList(soap, &soap_tmp___ns3__GetAreaInfoList, "-ns3:GetAreaInfoList", 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__GetAreaInfoList(soap, &soap_tmp___ns3__GetAreaInfoList, "-ns3:GetAreaInfoList", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!ns3__GetAreaInfoListResponse)
return soap_closesock(soap);
ns3__GetAreaInfoListResponse->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__GetAreaInfoListResponse->soap_get(soap, "ns3:GetAreaInfoListResponse", "");
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);
}
示例2: 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);
}
示例3: soap_begin
int PullPointSubscriptionBindingProxy::GetCurrentMessage(const char *endpoint, const char *soap_action, _wsnt__GetCurrentMessage *wsnt__GetCurrentMessage, _wsnt__GetCurrentMessageResponse *wsnt__GetCurrentMessageResponse)
{ struct soap *soap = this->soap;
struct __tev__GetCurrentMessage soap_tmp___tev__GetCurrentMessage;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__GetCurrentMessage.wsnt__GetCurrentMessage = wsnt__GetCurrentMessage;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage);
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__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage, "-tev:GetCurrentMessage", 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__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage, "-tev:GetCurrentMessage", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__GetCurrentMessageResponse)
return soap_closesock(soap);
wsnt__GetCurrentMessageResponse->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__GetCurrentMessageResponse->soap_get(soap, "wsnt:GetCurrentMessageResponse", "");
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);
}
示例4: 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);
}
示例5: soap_begin
int ReplayBindingProxy::SetReplayConfiguration(const char *endpoint, const char *soap_action, _trp__SetReplayConfiguration *trp__SetReplayConfiguration, _trp__SetReplayConfigurationResponse *trp__SetReplayConfigurationResponse)
{ struct soap *soap = this;
struct __trp__SetReplayConfiguration soap_tmp___trp__SetReplayConfiguration;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/replay/wsdl/SetReplayConfiguration";
soap->encodingStyle = NULL;
soap_tmp___trp__SetReplayConfiguration.trp__SetReplayConfiguration = trp__SetReplayConfiguration;
soap_begin(soap);
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___trp__SetReplayConfiguration(soap, &soap_tmp___trp__SetReplayConfiguration);
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___trp__SetReplayConfiguration(soap, &soap_tmp___trp__SetReplayConfiguration, "-trp:SetReplayConfiguration", 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___trp__SetReplayConfiguration(soap, &soap_tmp___trp__SetReplayConfiguration, "-trp:SetReplayConfiguration", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!trp__SetReplayConfigurationResponse)
return soap_closesock(soap);
trp__SetReplayConfigurationResponse->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);
trp__SetReplayConfigurationResponse->soap_get(soap, "trp:SetReplayConfigurationResponse", "");
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);
}
示例6: soap_begin
int DisplayBindingProxy::GetPaneConfigurations(const char *endpoint, const char *soap_action, _tls__GetPaneConfigurations *tls__GetPaneConfigurations, _tls__GetPaneConfigurationsResponse *tls__GetPaneConfigurationsResponse)
{ struct soap *soap = this;
struct __tls__GetPaneConfigurations soap_tmp___tls__GetPaneConfigurations;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/display/wsdl/GetPaneConfigurations";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tls__GetPaneConfigurations.tls__GetPaneConfigurations = tls__GetPaneConfigurations;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tls__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations);
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__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations, "-tls:GetPaneConfigurations", 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__GetPaneConfigurations(soap, &soap_tmp___tls__GetPaneConfigurations, "-tls:GetPaneConfigurations", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tls__GetPaneConfigurationsResponse)
return soap_closesock(soap);
tls__GetPaneConfigurationsResponse->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__GetPaneConfigurationsResponse->soap_get(soap, "tls:GetPaneConfigurationsResponse", "");
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);
}
示例7: soap_begin
int ImagingBindingProxy::Stop(const char *endpoint, const char *soap_action, _timg__Stop *timg__Stop, _timg__StopResponse *timg__StopResponse)
{ struct soap *soap = this;
struct __timg__Stop soap_tmp___timg__Stop;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver20/imaging/wsdl/FocusStop";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___timg__Stop.timg__Stop = timg__Stop;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___timg__Stop(soap, &soap_tmp___timg__Stop);
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__Stop(soap, &soap_tmp___timg__Stop, "-timg:Stop", 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__Stop(soap, &soap_tmp___timg__Stop, "-timg:Stop", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!timg__StopResponse)
return soap_closesock(soap);
timg__StopResponse->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__StopResponse->soap_get(soap, "timg:StopResponse", "");
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);
}
示例8: soap_call_ns__latencyNestedArray
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__latencyNestedArray(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct gSOAP_outer_array in, unsigned long &seq_num)
{ struct ns__latencyNestedArray soap_tmp_ns__latencyNestedArray;
struct ns__latencyNestedArrayResponse *soap_tmp_ns__latencyNestedArrayResponse;
if (!soap_endpoint)
soap_endpoint = "http://localhost:8080";
soap->encodingStyle = NULL;
soap_tmp_ns__latencyNestedArray.in = in;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns__latencyNestedArray(soap, &soap_tmp_ns__latencyNestedArray);
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__latencyNestedArray(soap, &soap_tmp_ns__latencyNestedArray, "ns:latencyNestedArray", "")
|| 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__latencyNestedArray(soap, &soap_tmp_ns__latencyNestedArray, "ns:latencyNestedArray", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
soap_default_unsignedLong(soap, &seq_num);
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__latencyNestedArrayResponse = soap_get_ns__latencyNestedArrayResponse(soap, NULL, "ns:latencyNestedArrayResponse", "");
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);
seq_num = soap_tmp_ns__latencyNestedArrayResponse->seq_num;
return soap_closesock(soap);
}
示例9: soap_call_ims__receiveMessage
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ims__receiveMessage(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *user, int num, char *friend_nick, struct _Struct_1 *myMessage)
{ struct ims__receiveMessage soap_tmp_ims__receiveMessage;
struct ims__receiveMessageResponse *soap_tmp_ims__receiveMessageResponse;
soap->encodingStyle = NULL;
soap_tmp_ims__receiveMessage.user = user;
soap_tmp_ims__receiveMessage.num = num;
soap_tmp_ims__receiveMessage.friend_nick = friend_nick;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ims__receiveMessage(soap, &soap_tmp_ims__receiveMessage);
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_ims__receiveMessage(soap, &soap_tmp_ims__receiveMessage, "ims:receiveMessage", 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_ims__receiveMessage(soap, &soap_tmp_ims__receiveMessage, "ims:receiveMessage", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!myMessage)
return soap_closesock(soap);
soap_default_Message(soap, myMessage);
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_ims__receiveMessageResponse = soap_get_ims__receiveMessageResponse(soap, NULL, "ims:receiveMessageResponse", "");
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 (myMessage && soap_tmp_ims__receiveMessageResponse->myMessage)
*myMessage = *soap_tmp_ims__receiveMessageResponse->myMessage;
return soap_closesock(soap);
}
示例10: soap_call___s0__RtMonStart
SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__RtMonStart(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__RtMonStart *s0__RtMonStart, _s0__RtMonStartResponse *s0__RtMonStartResponse)
{ struct __s0__RtMonStart soap_tmp___s0__RtMonStart;
if (!soap_action)
soap_action = "s0:RtMonStart";
soap->encodingStyle = NULL;
soap_tmp___s0__RtMonStart.s0__RtMonStart = s0__RtMonStart;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize___s0__RtMonStart(soap, &soap_tmp___s0__RtMonStart);
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___s0__RtMonStart(soap, &soap_tmp___s0__RtMonStart, "-s0:RtMonStart", "")
|| 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___s0__RtMonStart(soap, &soap_tmp___s0__RtMonStart, "-s0:RtMonStart", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!s0__RtMonStartResponse)
return soap_closesock(soap);
s0__RtMonStartResponse->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);
s0__RtMonStartResponse->soap_get(soap, "s0:RtMonStartResponse", "");
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);
}
示例11: soap_call_wmas__retrieveinvoiceindex
SOAP_FMAC5 int SOAP_FMAC6 soap_call_wmas__retrieveinvoiceindex(struct soap *soap, const char *soap_endpoint, const char *soap_action, std::string driverid, std::string vehicleid, struct wmas__retrieveinvoiceindexResponse &_param_2)
{ struct wmas__retrieveinvoiceindex soap_tmp_wmas__retrieveinvoiceindex;
if (soap_endpoint == NULL)
soap_endpoint = "http://localhost:8088/shagang/service/wmasservice.php";
if (soap_action == NULL)
soap_action = "http://www.example.org/wmasservice/retrieveinvoiceindex";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp_wmas__retrieveinvoiceindex.driverid = driverid;
soap_tmp_wmas__retrieveinvoiceindex.vehicleid = vehicleid;
soap_serializeheader(soap);
soap_serialize_wmas__retrieveinvoiceindex(soap, &soap_tmp_wmas__retrieveinvoiceindex);
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_wmas__retrieveinvoiceindex(soap, &soap_tmp_wmas__retrieveinvoiceindex, "wmas:retrieveinvoiceindex", 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_wmas__retrieveinvoiceindex(soap, &soap_tmp_wmas__retrieveinvoiceindex, "wmas:retrieveinvoiceindex", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&_param_2)
return soap_closesock(soap);
soap_default_wmas__retrieveinvoiceindexResponse(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_wmas__retrieveinvoiceindexResponse(soap, &_param_2, "wmas:retrieveinvoiceindexResponse", 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);
return soap_closesock(soap);
}
示例12: soap_call_ns__echoString
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__echoString(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *str, char **res)
{ struct ns__echoString soap_tmp_ns__echoString;
struct ns__echoStringResponse *soap_tmp_ns__echoStringResponse;
if (!soap_endpoint)
soap_endpoint = "soap.udp://localhost:10000";
soap->encodingStyle = NULL;
soap_tmp_ns__echoString.str = str;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns__echoString(soap, &soap_tmp_ns__echoString);
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__echoString(soap, &soap_tmp_ns__echoString, "ns:echoString", 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__echoString(soap, &soap_tmp_ns__echoString, "ns:echoString", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!res)
return soap_closesock(soap);
*res = 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_ns__echoStringResponse = soap_get_ns__echoStringResponse(soap, NULL, "ns:echoStringResponse", "");
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 (res && soap_tmp_ns__echoStringResponse->res)
*res = *soap_tmp_ns__echoStringResponse->res;
return soap_closesock(soap);
}
示例13: soap_begin
int UploaderSoapProxy::Hello(_ns1__Hello *ns1__Hello, _ns1__HelloResponse *ns1__HelloResponse)
{ struct soap *soap = this;
struct __ns3__Hello soap_tmp___ns3__Hello;
const char *soap_action = NULL;
if (!soap_endpoint)
soap_endpoint = "http://localhost:59175/DumpUploader.asmx";
soap_action = "https://drdump.com/Hello";
soap->encodingStyle = NULL;
soap_tmp___ns3__Hello.ns1__Hello = ns1__Hello;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize___ns3__Hello(soap, &soap_tmp___ns3__Hello);
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__Hello(soap, &soap_tmp___ns3__Hello, "-ns3:Hello", 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___ns3__Hello(soap, &soap_tmp___ns3__Hello, "-ns3:Hello", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!ns1__HelloResponse)
return soap_closesock(soap);
ns1__HelloResponse->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__HelloResponse->soap_get(soap, "ns1:HelloResponse", "");
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);
}
示例14: soap_begin
int RuleEngineBindingProxy::ModifyAnalyticsModules(const char *endpoint, const char *soap_action, _analyticsws__ModifyAnalyticsModules *analyticsws__ModifyAnalyticsModules, _analyticsws__ModifyAnalyticsModulesResponse &analyticsws__ModifyAnalyticsModulesResponse)
{ struct soap *soap = this->soap;
struct __analyticsws__ModifyAnalyticsModules soap_tmp___analyticsws__ModifyAnalyticsModules;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver20/analytics/wsdl/ModifyAnalyticsModules";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___analyticsws__ModifyAnalyticsModules.analyticsws__ModifyAnalyticsModules = analyticsws__ModifyAnalyticsModules;
soap_serializeheader(soap);
soap_serialize___analyticsws__ModifyAnalyticsModules(soap, &soap_tmp___analyticsws__ModifyAnalyticsModules);
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___analyticsws__ModifyAnalyticsModules(soap, &soap_tmp___analyticsws__ModifyAnalyticsModules, "-analyticsws:ModifyAnalyticsModules", 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___analyticsws__ModifyAnalyticsModules(soap, &soap_tmp___analyticsws__ModifyAnalyticsModules, "-analyticsws:ModifyAnalyticsModules", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!&analyticsws__ModifyAnalyticsModulesResponse)
return soap_closesock(soap);
analyticsws__ModifyAnalyticsModulesResponse.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);
analyticsws__ModifyAnalyticsModulesResponse.soap_get(soap, "analyticsws:ModifyAnalyticsModulesResponse", 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);
return soap_closesock(soap);
}
示例15: soap_call_ns2__add
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__add(struct soap *soap, const char *soap_endpoint, const char *soap_action, int num1, int num2, int *sum)
{ struct ns2__add soap_tmp_ns2__add;
struct ns2__addResponse *soap_tmp_ns2__addResponse;
soap->encodingStyle = NULL;
soap_tmp_ns2__add.num1 = num1;
soap_tmp_ns2__add.num2 = num2;
soap_begin(soap);
soap_serializeheader(soap);
soap_serialize_ns2__add(soap, &soap_tmp_ns2__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_ns2__add(soap, &soap_tmp_ns2__add, "ns2:add", "")
|| 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_ns2__add(soap, &soap_tmp_ns2__add, "ns2:add", "")
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
soap_default_int(soap, sum);
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_ns2__addResponse = soap_get_ns2__addResponse(soap, NULL, "ns2:addResponse", "");
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 (sum && soap_tmp_ns2__addResponse->sum)
*sum = *soap_tmp_ns2__addResponse->sum;
return soap_closesock(soap);
}