You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1182 lines
46 KiB

/* soapPullPointSubscriptionBindingProxy.cpp
Generated by gSOAP 2.8.17r from onvif.h
Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved.
The generated code is released under one of the following licenses:
GPL or Genivia's license for commercial use.
This program is released under the GPL with the additional exemption that
compiling, linking, and/or using OpenSSL is allowed.
*/
#include "soapPullPointSubscriptionBindingProxy.h"
PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy()
{ PullPointSubscriptionBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(const struct soap &_soap) : soap(_soap)
{ }
PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(const char *url)
{ PullPointSubscriptionBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
soap_endpoint = url;
}
PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(soap_mode iomode)
{ PullPointSubscriptionBindingProxy_init(iomode, iomode);
}
PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(const char *url, soap_mode iomode)
{ PullPointSubscriptionBindingProxy_init(iomode, iomode);
soap_endpoint = url;
}
PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy(soap_mode imode, soap_mode omode)
{ PullPointSubscriptionBindingProxy_init(imode, omode);
}
PullPointSubscriptionBindingProxy::~PullPointSubscriptionBindingProxy()
{ }
void PullPointSubscriptionBindingProxy::PullPointSubscriptionBindingProxy_init(soap_mode imode, soap_mode omode)
{ soap_imode(this, imode);
soap_omode(this, omode);
soap_endpoint = NULL;
static const struct Namespace namespaces[] =
{
{"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL},
{"SOAP-ENC", "http://www.w3.org/2003/05/soap-encoding", "http://schemas.xmlsoap.org/soap/encoding/", NULL},
{"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL},
{"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
{"c14n", "http://www.w3.org/2001/10/xml-exc-c14n#", NULL, NULL},
{"wsu", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd", NULL, NULL},
{"xenc", "http://www.w3.org/2001/04/xmlenc#", NULL, NULL},
{"wsc", "http://schemas.xmlsoap.org/ws/2005/02/sc", NULL, NULL},
{"ds", "http://www.w3.org/2000/09/xmldsig#", NULL, NULL},
{"wsse", "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd", NULL},
{"wsa", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL, NULL},
{"wsdd", "http://schemas.xmlsoap.org/ws/2005/04/discovery", NULL, NULL},
{"chan", "http://schemas.microsoft.com/ws/2005/02/duplex", NULL, NULL},
{"wsa5", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing", NULL},
{"xmime", "http://tempuri.org/xmime.xsd", NULL, NULL},
{"xop", "http://www.w3.org/2004/08/xop/include", NULL, NULL},
{"tt", "http://www.onvif.org/ver10/schema", NULL, NULL},
{"wsrfbf", "http://docs.oasis-open.org/wsrf/bf-2", NULL, NULL},
{"wstop", "http://docs.oasis-open.org/wsn/t-1", NULL, NULL},
{"wsrfr", "http://docs.oasis-open.org/wsrf/r-2", NULL, NULL},
{"tdn", "http://www.onvif.org/ver10/network/wsdl", NULL, NULL},
{"tds", "http://www.onvif.org/ver10/device/wsdl", NULL, NULL},
{"tev", "http://www.onvif.org/ver10/events/wsdl", NULL, NULL},
{"wsnt", "http://docs.oasis-open.org/wsn/b-2", NULL, NULL},
{"timg", "http://www.onvif.org/ver20/imaging/wsdl", NULL, NULL},
{"tls", "http://www.onvif.org/ver10/display/wsdl", NULL, NULL},
{"tmd", "http://www.onvif.org/ver10/deviceIO/wsdl", NULL, NULL},
{"tptz", "http://www.onvif.org/ver20/ptz/wsdl", NULL, NULL},
{"trc", "http://www.onvif.org/ver10/recording/wsdl", NULL, NULL},
{"trp", "http://www.onvif.org/ver10/replay/wsdl", NULL, NULL},
{"trt", "http://www.onvif.org/ver10/media/wsdl", NULL, NULL},
{"trv", "http://www.onvif.org/ver10/receiver/wsdl", NULL, NULL},
{"tse", "http://www.onvif.org/ver10/search/wsdl", NULL, NULL},
{NULL, NULL, NULL, NULL}
};
soap_set_namespaces(this, namespaces);
}
void PullPointSubscriptionBindingProxy::destroy()
{ soap_destroy(this);
soap_end(this);
}
void PullPointSubscriptionBindingProxy::reset()
{ destroy();
soap_done(this);
soap_initialize(this);
PullPointSubscriptionBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
}
void PullPointSubscriptionBindingProxy::soap_noheader()
{ this->header = NULL;
}
void PullPointSubscriptionBindingProxy::soap_header(struct _wsse__Security *wsse__Security, char *wsa__MessageID, struct wsa__Relationship *wsa__RelatesTo, struct wsa__EndpointReferenceType *wsa__From, struct wsa__EndpointReferenceType *wsa__ReplyTo, struct wsa__EndpointReferenceType *wsa__FaultTo, char *wsa__To, char *wsa__Action, struct wsdd__AppSequenceType *wsdd__AppSequence, char *wsa5__MessageID, struct wsa5__RelatesToType *wsa5__RelatesTo, struct wsa5__EndpointReferenceType *wsa5__From, struct wsa5__EndpointReferenceType *wsa5__ReplyTo, struct wsa5__EndpointReferenceType *wsa5__FaultTo, char *wsa5__To, char *wsa5__Action, struct chan__ChannelInstanceType *chan__ChannelInstance)
{ ::soap_header(this);
this->header->wsse__Security = wsse__Security;
this->header->wsa__MessageID = wsa__MessageID;
this->header->wsa__RelatesTo = wsa__RelatesTo;
this->header->wsa__From = wsa__From;
this->header->wsa__ReplyTo = wsa__ReplyTo;
this->header->wsa__FaultTo = wsa__FaultTo;
this->header->wsa__To = wsa__To;
this->header->wsa__Action = wsa__Action;
this->header->wsdd__AppSequence = wsdd__AppSequence;
this->header->wsa5__MessageID = wsa5__MessageID;
this->header->wsa5__RelatesTo = wsa5__RelatesTo;
this->header->wsa5__From = wsa5__From;
this->header->wsa5__ReplyTo = wsa5__ReplyTo;
this->header->wsa5__FaultTo = wsa5__FaultTo;
this->header->wsa5__To = wsa5__To;
this->header->wsa5__Action = wsa5__Action;
this->header->chan__ChannelInstance = chan__ChannelInstance;
}
const SOAP_ENV__Header *PullPointSubscriptionBindingProxy::soap_header()
{ return this->header;
}
const SOAP_ENV__Fault *PullPointSubscriptionBindingProxy::soap_fault()
{ return this->fault;
}
const char *PullPointSubscriptionBindingProxy::soap_fault_string()
{ return *soap_faultstring(this);
}
const char *PullPointSubscriptionBindingProxy::soap_fault_detail()
{ return *soap_faultdetail(this);
}
int PullPointSubscriptionBindingProxy::soap_close_socket()
{ return soap_closesock(this);
}
int PullPointSubscriptionBindingProxy::soap_force_close_socket()
{ return soap_force_closesock(this);
}
void PullPointSubscriptionBindingProxy::soap_print_fault(FILE *fd)
{ ::soap_print_fault(this, fd);
}
#ifndef WITH_LEAN
#ifndef WITH_COMPAT
void PullPointSubscriptionBindingProxy::soap_stream_fault(std::ostream& os)
{ ::soap_stream_fault(this, os);
}
#endif
char *PullPointSubscriptionBindingProxy::soap_sprint_fault(char *buf, size_t len)
{ return ::soap_sprint_fault(this, buf, len);
}
#endif
int PullPointSubscriptionBindingProxy::PullMessages(const char *endpoint, const char *soap_action, _tev__PullMessages *tev__PullMessages, _tev__PullMessagesResponse *tev__PullMessagesResponse)
{ struct soap *soap = this;
struct __tev__PullMessages soap_tmp___tev__PullMessages;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__PullMessages.tev__PullMessages = tev__PullMessages;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__PullMessages(soap, &soap_tmp___tev__PullMessages);
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__PullMessages(soap, &soap_tmp___tev__PullMessages, "-tev:PullMessages", 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__PullMessages(soap, &soap_tmp___tev__PullMessages, "-tev:PullMessages", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tev__PullMessagesResponse)
return soap_closesock(soap);
tev__PullMessagesResponse->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);
tev__PullMessagesResponse->soap_get(soap, "tev:PullMessagesResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::Seek(const char *endpoint, const char *soap_action, _tev__Seek *tev__Seek, _tev__SeekResponse *tev__SeekResponse)
{ struct soap *soap = this;
struct __tev__Seek soap_tmp___tev__Seek;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/SeekRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__Seek.tev__Seek = tev__Seek;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__Seek(soap, &soap_tmp___tev__Seek);
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__Seek(soap, &soap_tmp___tev__Seek, "-tev:Seek", 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__Seek(soap, &soap_tmp___tev__Seek, "-tev:Seek", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tev__SeekResponse)
return soap_closesock(soap);
tev__SeekResponse->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);
tev__SeekResponse->soap_get(soap, "tev:SeekResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::SetSynchronizationPoint(const char *endpoint, const char *soap_action, _tev__SetSynchronizationPoint *tev__SetSynchronizationPoint, _tev__SetSynchronizationPointResponse *tev__SetSynchronizationPointResponse)
{ struct soap *soap = this;
struct __tev__SetSynchronizationPoint soap_tmp___tev__SetSynchronizationPoint;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/SetSynchronizationPointRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__SetSynchronizationPoint.tev__SetSynchronizationPoint = tev__SetSynchronizationPoint;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__SetSynchronizationPoint(soap, &soap_tmp___tev__SetSynchronizationPoint);
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__SetSynchronizationPoint(soap, &soap_tmp___tev__SetSynchronizationPoint, "-tev:SetSynchronizationPoint", 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__SetSynchronizationPoint(soap, &soap_tmp___tev__SetSynchronizationPoint, "-tev:SetSynchronizationPoint", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tev__SetSynchronizationPointResponse)
return soap_closesock(soap);
tev__SetSynchronizationPointResponse->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);
tev__SetSynchronizationPointResponse->soap_get(soap, "tev:SetSynchronizationPointResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::GetServiceCapabilities(const char *endpoint, const char *soap_action, _tev__GetServiceCapabilities *tev__GetServiceCapabilities, _tev__GetServiceCapabilitiesResponse *tev__GetServiceCapabilitiesResponse)
{ struct soap *soap = this;
struct __tev__GetServiceCapabilities soap_tmp___tev__GetServiceCapabilities;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/events/wsdl/EventPortType/GetServiceCapabilities";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__GetServiceCapabilities.tev__GetServiceCapabilities = tev__GetServiceCapabilities;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__GetServiceCapabilities(soap, &soap_tmp___tev__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___tev__GetServiceCapabilities(soap, &soap_tmp___tev__GetServiceCapabilities, "-tev: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___tev__GetServiceCapabilities(soap, &soap_tmp___tev__GetServiceCapabilities, "-tev:GetServiceCapabilities", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tev__GetServiceCapabilitiesResponse)
return soap_closesock(soap);
tev__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);
tev__GetServiceCapabilitiesResponse->soap_get(soap, "tev: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);
}
int PullPointSubscriptionBindingProxy::CreatePullPointSubscription(const char *endpoint, const char *soap_action, _tev__CreatePullPointSubscription *tev__CreatePullPointSubscription, _tev__CreatePullPointSubscriptionResponse *tev__CreatePullPointSubscriptionResponse)
{ struct soap *soap = this;
struct __tev__CreatePullPointSubscription soap_tmp___tev__CreatePullPointSubscription;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/events/wsdl/EventPortType/CreatePullPointSubscriptionRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__CreatePullPointSubscription.tev__CreatePullPointSubscription = tev__CreatePullPointSubscription;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__CreatePullPointSubscription(soap, &soap_tmp___tev__CreatePullPointSubscription);
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__CreatePullPointSubscription(soap, &soap_tmp___tev__CreatePullPointSubscription, "-tev:CreatePullPointSubscription", 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__CreatePullPointSubscription(soap, &soap_tmp___tev__CreatePullPointSubscription, "-tev:CreatePullPointSubscription", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tev__CreatePullPointSubscriptionResponse)
return soap_closesock(soap);
tev__CreatePullPointSubscriptionResponse->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);
tev__CreatePullPointSubscriptionResponse->soap_get(soap, "tev:CreatePullPointSubscriptionResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::GetEventProperties(const char *endpoint, const char *soap_action, _tev__GetEventProperties *tev__GetEventProperties, _tev__GetEventPropertiesResponse *tev__GetEventPropertiesResponse)
{ struct soap *soap = this;
struct __tev__GetEventProperties soap_tmp___tev__GetEventProperties;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://www.onvif.org/ver10/events/wsdl/EventPortType/GetEventPropertiesRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__GetEventProperties.tev__GetEventProperties = tev__GetEventProperties;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__GetEventProperties(soap, &soap_tmp___tev__GetEventProperties);
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__GetEventProperties(soap, &soap_tmp___tev__GetEventProperties, "-tev:GetEventProperties", 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__GetEventProperties(soap, &soap_tmp___tev__GetEventProperties, "-tev:GetEventProperties", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!tev__GetEventPropertiesResponse)
return soap_closesock(soap);
tev__GetEventPropertiesResponse->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);
tev__GetEventPropertiesResponse->soap_get(soap, "tev:GetEventPropertiesResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::Renew(const char *endpoint, const char *soap_action, _wsnt__Renew *wsnt__Renew, _wsnt__RenewResponse *wsnt__RenewResponse)
{ struct soap *soap = this;
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/SubscriptionManager/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);
}
int PullPointSubscriptionBindingProxy::Unsubscribe(const char *endpoint, const char *soap_action, _wsnt__Unsubscribe *wsnt__Unsubscribe, _wsnt__UnsubscribeResponse *wsnt__UnsubscribeResponse)
{ struct soap *soap = this;
struct __tev__Unsubscribe soap_tmp___tev__Unsubscribe;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__Unsubscribe.wsnt__Unsubscribe = wsnt__Unsubscribe;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__Unsubscribe(soap, &soap_tmp___tev__Unsubscribe);
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__Unsubscribe(soap, &soap_tmp___tev__Unsubscribe, "-tev:Unsubscribe", 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__Unsubscribe(soap, &soap_tmp___tev__Unsubscribe, "-tev:Unsubscribe", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__UnsubscribeResponse)
return soap_closesock(soap);
wsnt__UnsubscribeResponse->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__UnsubscribeResponse->soap_get(soap, "wsnt:UnsubscribeResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::Subscribe(const char *endpoint, const char *soap_action, _wsnt__Subscribe *wsnt__Subscribe, _wsnt__SubscribeResponse *wsnt__SubscribeResponse)
{ struct soap *soap = this;
struct __tev__Subscribe soap_tmp___tev__Subscribe;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__Subscribe.wsnt__Subscribe = wsnt__Subscribe;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__Subscribe(soap, &soap_tmp___tev__Subscribe);
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__Subscribe(soap, &soap_tmp___tev__Subscribe, "-tev:Subscribe", 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__Subscribe(soap, &soap_tmp___tev__Subscribe, "-tev:Subscribe", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__SubscribeResponse)
return soap_closesock(soap);
wsnt__SubscribeResponse->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__SubscribeResponse->soap_get(soap, "wsnt:SubscribeResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::GetCurrentMessage(const char *endpoint, const char *soap_action, _wsnt__GetCurrentMessage *wsnt__GetCurrentMessage, _wsnt__GetCurrentMessageResponse *wsnt__GetCurrentMessageResponse)
{ struct soap *soap = this;
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);
}
int PullPointSubscriptionBindingProxy::send_Notify(const char *endpoint, const char *soap_action, _wsnt__Notify *wsnt__Notify)
{ struct soap *soap = this;
struct __tev__Notify soap_tmp___tev__Notify;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/Notify";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__Notify.wsnt__Notify = wsnt__Notify;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__Notify(soap, &soap_tmp___tev__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___tev__Notify(soap, &soap_tmp___tev__Notify, "-tev: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___tev__Notify(soap, &soap_tmp___tev__Notify, "-tev:Notify", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
return SOAP_OK;
}
int PullPointSubscriptionBindingProxy::recv_Notify(struct __tev__Notify& tmp)
{ struct soap *soap = this;
struct __tev__Notify *_param_9 = &tmp;
soap_default___tev__Notify(soap, _param_9);
soap_begin(soap);
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___tev__Notify(soap, _param_9, "-tev:Notify", NULL);
if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
soap->error = SOAP_OK;
if (soap->error
|| soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int PullPointSubscriptionBindingProxy::GetMessages(const char *endpoint, const char *soap_action, _wsnt__GetMessages *wsnt__GetMessages, _wsnt__GetMessagesResponse *wsnt__GetMessagesResponse)
{ struct soap *soap = this;
struct __tev__GetMessages soap_tmp___tev__GetMessages;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/PullPoint/GetMessagesRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__GetMessages.wsnt__GetMessages = wsnt__GetMessages;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__GetMessages(soap, &soap_tmp___tev__GetMessages);
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__GetMessages(soap, &soap_tmp___tev__GetMessages, "-tev:GetMessages", 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__GetMessages(soap, &soap_tmp___tev__GetMessages, "-tev:GetMessages", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__GetMessagesResponse)
return soap_closesock(soap);
wsnt__GetMessagesResponse->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__GetMessagesResponse->soap_get(soap, "wsnt:GetMessagesResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::DestroyPullPoint(const char *endpoint, const char *soap_action, _wsnt__DestroyPullPoint *wsnt__DestroyPullPoint, _wsnt__DestroyPullPointResponse *wsnt__DestroyPullPointResponse)
{ struct soap *soap = this;
struct __tev__DestroyPullPoint soap_tmp___tev__DestroyPullPoint;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/PullPoint/DestroyPullPointRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__DestroyPullPoint.wsnt__DestroyPullPoint = wsnt__DestroyPullPoint;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__DestroyPullPoint(soap, &soap_tmp___tev__DestroyPullPoint);
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__DestroyPullPoint(soap, &soap_tmp___tev__DestroyPullPoint, "-tev:DestroyPullPoint", 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__DestroyPullPoint(soap, &soap_tmp___tev__DestroyPullPoint, "-tev:DestroyPullPoint", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__DestroyPullPointResponse)
return soap_closesock(soap);
wsnt__DestroyPullPointResponse->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__DestroyPullPointResponse->soap_get(soap, "wsnt:DestroyPullPointResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::send_Notify_(const char *endpoint, const char *soap_action, _wsnt__Notify *wsnt__Notify)
{ struct soap *soap = this;
struct __tev__Notify_ soap_tmp___tev__Notify_;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/PullPoint/Notify";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__Notify_.wsnt__Notify = wsnt__Notify;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__Notify_(soap, &soap_tmp___tev__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___tev__Notify_(soap, &soap_tmp___tev__Notify_, "-tev: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___tev__Notify_(soap, &soap_tmp___tev__Notify_, "-tev:Notify", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
return SOAP_OK;
}
int PullPointSubscriptionBindingProxy::recv_Notify_(struct __tev__Notify_& tmp)
{ struct soap *soap = this;
struct __tev__Notify_ *_param_10 = &tmp;
soap_default___tev__Notify_(soap, _param_10);
soap_begin(soap);
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___tev__Notify_(soap, _param_10, "-tev:Notify", NULL);
if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
soap->error = SOAP_OK;
if (soap->error
|| soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap_closesock(soap);
return soap_closesock(soap);
}
int PullPointSubscriptionBindingProxy::CreatePullPoint(const char *endpoint, const char *soap_action, _wsnt__CreatePullPoint *wsnt__CreatePullPoint, _wsnt__CreatePullPointResponse *wsnt__CreatePullPointResponse)
{ struct soap *soap = this;
struct __tev__CreatePullPoint soap_tmp___tev__CreatePullPoint;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/CreatePullPoint/CreatePullPointRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__CreatePullPoint.wsnt__CreatePullPoint = wsnt__CreatePullPoint;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__CreatePullPoint(soap, &soap_tmp___tev__CreatePullPoint);
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__CreatePullPoint(soap, &soap_tmp___tev__CreatePullPoint, "-tev:CreatePullPoint", 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__CreatePullPoint(soap, &soap_tmp___tev__CreatePullPoint, "-tev:CreatePullPoint", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__CreatePullPointResponse)
return soap_closesock(soap);
wsnt__CreatePullPointResponse->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__CreatePullPointResponse->soap_get(soap, "wsnt:CreatePullPointResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::Renew_(const char *endpoint, const char *soap_action, _wsnt__Renew *wsnt__Renew, _wsnt__RenewResponse *wsnt__RenewResponse)
{ struct soap *soap = this;
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);
}
int PullPointSubscriptionBindingProxy::Unsubscribe_(const char *endpoint, const char *soap_action, _wsnt__Unsubscribe *wsnt__Unsubscribe, _wsnt__UnsubscribeResponse *wsnt__UnsubscribeResponse)
{ struct soap *soap = this;
struct __tev__Unsubscribe_ soap_tmp___tev__Unsubscribe_;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/UnsubscribeRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__Unsubscribe_.wsnt__Unsubscribe = wsnt__Unsubscribe;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__Unsubscribe_(soap, &soap_tmp___tev__Unsubscribe_);
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__Unsubscribe_(soap, &soap_tmp___tev__Unsubscribe_, "-tev:Unsubscribe", 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__Unsubscribe_(soap, &soap_tmp___tev__Unsubscribe_, "-tev:Unsubscribe", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__UnsubscribeResponse)
return soap_closesock(soap);
wsnt__UnsubscribeResponse->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__UnsubscribeResponse->soap_get(soap, "wsnt:UnsubscribeResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::PauseSubscription(const char *endpoint, const char *soap_action, _wsnt__PauseSubscription *wsnt__PauseSubscription, _wsnt__PauseSubscriptionResponse *wsnt__PauseSubscriptionResponse)
{ struct soap *soap = this;
struct __tev__PauseSubscription soap_tmp___tev__PauseSubscription;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/PauseSubscriptionRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__PauseSubscription.wsnt__PauseSubscription = wsnt__PauseSubscription;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__PauseSubscription(soap, &soap_tmp___tev__PauseSubscription);
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__PauseSubscription(soap, &soap_tmp___tev__PauseSubscription, "-tev:PauseSubscription", 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__PauseSubscription(soap, &soap_tmp___tev__PauseSubscription, "-tev:PauseSubscription", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__PauseSubscriptionResponse)
return soap_closesock(soap);
wsnt__PauseSubscriptionResponse->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__PauseSubscriptionResponse->soap_get(soap, "wsnt:PauseSubscriptionResponse", "");
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);
}
int PullPointSubscriptionBindingProxy::ResumeSubscription(const char *endpoint, const char *soap_action, _wsnt__ResumeSubscription *wsnt__ResumeSubscription, _wsnt__ResumeSubscriptionResponse *wsnt__ResumeSubscriptionResponse)
{ struct soap *soap = this;
struct __tev__ResumeSubscription soap_tmp___tev__ResumeSubscription;
if (endpoint)
soap_endpoint = endpoint;
if (soap_action == NULL)
soap_action = "http://docs.oasis-open.org/wsn/bw-2/PausableSubscriptionManager/ResumeSubscriptionRequest";
soap_begin(soap);
soap->encodingStyle = NULL;
soap_tmp___tev__ResumeSubscription.wsnt__ResumeSubscription = wsnt__ResumeSubscription;
soap_set_version(soap, 2); /* SOAP1.2 */
soap_serializeheader(soap);
soap_serialize___tev__ResumeSubscription(soap, &soap_tmp___tev__ResumeSubscription);
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__ResumeSubscription(soap, &soap_tmp___tev__ResumeSubscription, "-tev:ResumeSubscription", 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__ResumeSubscription(soap, &soap_tmp___tev__ResumeSubscription, "-tev:ResumeSubscription", NULL)
|| soap_body_end_out(soap)
|| soap_envelope_end_out(soap)
|| soap_end_send(soap))
return soap_closesock(soap);
if (!wsnt__ResumeSubscriptionResponse)
return soap_closesock(soap);
wsnt__ResumeSubscriptionResponse->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__ResumeSubscriptionResponse->soap_get(soap, "wsnt:ResumeSubscriptionResponse", "");
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);
}
/* End of client proxy code */