273 lines
8.8 KiB
C++
273 lines
8.8 KiB
C++
|
/* IMm7MMSmm7SoapBindingProxy.cpp
|
||
|
Generated by gSOAP 2.8.6 from IMm7MMS.h
|
||
|
|
||
|
Copyright(C) 2000-2011, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
||
|
The generated code is released under one of the following licenses:
|
||
|
1) GPL or 2) 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 "IMm7MMSmm7SoapBindingProxy.h"
|
||
|
|
||
|
namespace IMm7MMS {
|
||
|
|
||
|
mm7SoapBindingProxy::mm7SoapBindingProxy()
|
||
|
{ mm7SoapBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
||
|
}
|
||
|
|
||
|
mm7SoapBindingProxy::mm7SoapBindingProxy(const struct soap &_soap) : soap(_soap)
|
||
|
{ }
|
||
|
|
||
|
mm7SoapBindingProxy::mm7SoapBindingProxy(const char *url)
|
||
|
{ mm7SoapBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
||
|
soap_endpoint = url;
|
||
|
}
|
||
|
|
||
|
mm7SoapBindingProxy::mm7SoapBindingProxy(soap_mode iomode)
|
||
|
{ mm7SoapBindingProxy_init(iomode, iomode);
|
||
|
}
|
||
|
|
||
|
mm7SoapBindingProxy::mm7SoapBindingProxy(const char *url, soap_mode iomode)
|
||
|
{ mm7SoapBindingProxy_init(iomode, iomode);
|
||
|
soap_endpoint = url;
|
||
|
}
|
||
|
|
||
|
mm7SoapBindingProxy::mm7SoapBindingProxy(soap_mode imode, soap_mode omode)
|
||
|
{ mm7SoapBindingProxy_init(imode, omode);
|
||
|
}
|
||
|
|
||
|
mm7SoapBindingProxy::~mm7SoapBindingProxy()
|
||
|
{ }
|
||
|
|
||
|
void mm7SoapBindingProxy::mm7SoapBindingProxy_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://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL},
|
||
|
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.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},
|
||
|
{"ns1", "http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0", NULL, NULL},
|
||
|
{NULL, NULL, NULL, NULL}
|
||
|
};
|
||
|
soap_set_namespaces(this, namespaces);
|
||
|
}
|
||
|
|
||
|
void mm7SoapBindingProxy::destroy()
|
||
|
{ soap_destroy(this);
|
||
|
soap_end(this);
|
||
|
}
|
||
|
|
||
|
void mm7SoapBindingProxy::soap_noheader()
|
||
|
{ this->header = NULL;
|
||
|
}
|
||
|
|
||
|
const SOAP_ENV__Header *mm7SoapBindingProxy::soap_header()
|
||
|
{ return this->header;
|
||
|
}
|
||
|
|
||
|
const SOAP_ENV__Fault *mm7SoapBindingProxy::soap_fault()
|
||
|
{ return this->fault;
|
||
|
}
|
||
|
|
||
|
const char *mm7SoapBindingProxy::soap_fault_string()
|
||
|
{ return *soap_faultstring(this);
|
||
|
}
|
||
|
|
||
|
const char *mm7SoapBindingProxy::soap_fault_detail()
|
||
|
{ return *soap_faultdetail(this);
|
||
|
}
|
||
|
|
||
|
int mm7SoapBindingProxy::soap_close_socket()
|
||
|
{ return soap_closesock(this);
|
||
|
}
|
||
|
|
||
|
int mm7SoapBindingProxy::soap_force_close_socket()
|
||
|
{ return soap_force_closesock(this);
|
||
|
}
|
||
|
|
||
|
void mm7SoapBindingProxy::soap_print_fault(FILE *fd)
|
||
|
{ ::soap_print_fault(this, fd);
|
||
|
}
|
||
|
|
||
|
#ifndef WITH_LEAN
|
||
|
#ifndef WITH_COMPAT
|
||
|
void mm7SoapBindingProxy::soap_stream_fault(std::ostream& os)
|
||
|
{ ::soap_stream_fault(this, os);
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
char *mm7SoapBindingProxy::soap_sprint_fault(char *buf, size_t len)
|
||
|
{ return ::soap_sprint_fault(this, buf, len);
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
int mm7SoapBindingProxy::submitReq(const char *endpoint, const char *soap_action, ns1__submitReqType *ns1__SubmitReq, ns1__submitRspType *ns1__SubmitRsp)
|
||
|
{ struct soap *soap = this;
|
||
|
struct __ns1__submitReq soap_tmp___ns1__submitReq;
|
||
|
if (endpoint)
|
||
|
soap_endpoint = endpoint;
|
||
|
if (!soap_endpoint)
|
||
|
soap_endpoint = "http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0";
|
||
|
if (!soap_action)
|
||
|
soap_action = "";
|
||
|
soap->encodingStyle = NULL;
|
||
|
soap_tmp___ns1__submitReq.ns1__SubmitReq = ns1__SubmitReq;
|
||
|
soap_begin(soap);
|
||
|
soap_serializeheader(soap);
|
||
|
soap_serialize___ns1__submitReq(soap, &soap_tmp___ns1__submitReq);
|
||
|
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__submitReq(soap, &soap_tmp___ns1__submitReq, "-ns1:submitReq", 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___ns1__submitReq(soap, &soap_tmp___ns1__submitReq, "-ns1:submitReq", NULL)
|
||
|
|| soap_body_end_out(soap)
|
||
|
|| soap_envelope_end_out(soap)
|
||
|
|| soap_end_send(soap))
|
||
|
return soap_closesock(soap);
|
||
|
if (!ns1__SubmitRsp)
|
||
|
return soap_closesock(soap);
|
||
|
ns1__SubmitRsp->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__SubmitRsp->soap_get(soap, "ns1:SubmitRsp", "ns1:submitRspType");
|
||
|
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 mm7SoapBindingProxy::deliverReq(const char *endpoint, const char *soap_action, ns1__deliverReqType *ns1__DeliverReq, ns1__deliverRspType *ns1__DeliverRsp)
|
||
|
{ struct soap *soap = this;
|
||
|
struct __ns1__deliverReq soap_tmp___ns1__deliverReq;
|
||
|
if (endpoint)
|
||
|
soap_endpoint = endpoint;
|
||
|
if (!soap_endpoint)
|
||
|
soap_endpoint = "http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0";
|
||
|
if (!soap_action)
|
||
|
soap_action = "";
|
||
|
soap->encodingStyle = NULL;
|
||
|
soap_tmp___ns1__deliverReq.ns1__DeliverReq = ns1__DeliverReq;
|
||
|
soap_begin(soap);
|
||
|
soap_serializeheader(soap);
|
||
|
soap_serialize___ns1__deliverReq(soap, &soap_tmp___ns1__deliverReq);
|
||
|
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__deliverReq(soap, &soap_tmp___ns1__deliverReq, "-ns1:deliverReq", 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___ns1__deliverReq(soap, &soap_tmp___ns1__deliverReq, "-ns1:deliverReq", NULL)
|
||
|
|| soap_body_end_out(soap)
|
||
|
|| soap_envelope_end_out(soap)
|
||
|
|| soap_end_send(soap))
|
||
|
return soap_closesock(soap);
|
||
|
if (!ns1__DeliverRsp)
|
||
|
return soap_closesock(soap);
|
||
|
ns1__DeliverRsp->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__DeliverRsp->soap_get(soap, "ns1:DeliverRsp", "ns1:deliverRspType");
|
||
|
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 mm7SoapBindingProxy::deliveryReportReq(const char *endpoint, const char *soap_action, ns1__deliveryReportReqType *ns1__DeliveryReportReq, ns1__genericResponseType *ns1__DeliveryReportRsp)
|
||
|
{ struct soap *soap = this;
|
||
|
struct __ns1__deliveryReportReq soap_tmp___ns1__deliveryReportReq;
|
||
|
if (endpoint)
|
||
|
soap_endpoint = endpoint;
|
||
|
if (!soap_endpoint)
|
||
|
soap_endpoint = "http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0";
|
||
|
if (!soap_action)
|
||
|
soap_action = "";
|
||
|
soap->encodingStyle = NULL;
|
||
|
soap_tmp___ns1__deliveryReportReq.ns1__DeliveryReportReq = ns1__DeliveryReportReq;
|
||
|
soap_begin(soap);
|
||
|
soap_serializeheader(soap);
|
||
|
soap_serialize___ns1__deliveryReportReq(soap, &soap_tmp___ns1__deliveryReportReq);
|
||
|
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__deliveryReportReq(soap, &soap_tmp___ns1__deliveryReportReq, "-ns1:deliveryReportReq", 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___ns1__deliveryReportReq(soap, &soap_tmp___ns1__deliveryReportReq, "-ns1:deliveryReportReq", NULL)
|
||
|
|| soap_body_end_out(soap)
|
||
|
|| soap_envelope_end_out(soap)
|
||
|
|| soap_end_send(soap))
|
||
|
return soap_closesock(soap);
|
||
|
if (!ns1__DeliveryReportRsp)
|
||
|
return soap_closesock(soap);
|
||
|
ns1__DeliveryReportRsp->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__DeliveryReportRsp->soap_get(soap, "ns1:DeliveryReportRsp", "ns1:genericResponseType");
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
} // namespace IMm7MMS
|
||
|
|
||
|
/* End of client proxy code */
|