223 lines
7.5 KiB
C++
223 lines
7.5 KiB
C++
|
/* IAGWMMScapServiceSoapBindingProxy.cpp
|
||
|
Generated by gSOAP 2.8.6 from IagwMms.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 "IAGWMMScapServiceSoapBindingProxy.h"
|
||
|
|
||
|
namespace IAGWMMS {
|
||
|
|
||
|
capServiceSoapBindingProxy::capServiceSoapBindingProxy()
|
||
|
{ capServiceSoapBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
||
|
}
|
||
|
|
||
|
capServiceSoapBindingProxy::capServiceSoapBindingProxy(const struct soap &_soap) : soap(_soap)
|
||
|
{ }
|
||
|
|
||
|
capServiceSoapBindingProxy::capServiceSoapBindingProxy(const char *url)
|
||
|
{ capServiceSoapBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT);
|
||
|
soap_endpoint = url;
|
||
|
}
|
||
|
|
||
|
capServiceSoapBindingProxy::capServiceSoapBindingProxy(soap_mode iomode)
|
||
|
{ capServiceSoapBindingProxy_init(iomode, iomode);
|
||
|
}
|
||
|
|
||
|
capServiceSoapBindingProxy::capServiceSoapBindingProxy(const char *url, soap_mode iomode)
|
||
|
{ capServiceSoapBindingProxy_init(iomode, iomode);
|
||
|
soap_endpoint = url;
|
||
|
}
|
||
|
|
||
|
capServiceSoapBindingProxy::capServiceSoapBindingProxy(soap_mode imode, soap_mode omode)
|
||
|
{ capServiceSoapBindingProxy_init(imode, omode);
|
||
|
}
|
||
|
|
||
|
capServiceSoapBindingProxy::~capServiceSoapBindingProxy()
|
||
|
{ }
|
||
|
|
||
|
void capServiceSoapBindingProxy::capServiceSoapBindingProxy_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.bnet.cn/v3.0/", NULL, NULL},
|
||
|
{NULL, NULL, NULL, NULL}
|
||
|
};
|
||
|
soap_set_namespaces(this, namespaces);
|
||
|
}
|
||
|
|
||
|
void capServiceSoapBindingProxy::destroy()
|
||
|
{ soap_destroy(this);
|
||
|
soap_end(this);
|
||
|
}
|
||
|
|
||
|
void capServiceSoapBindingProxy::soap_noheader()
|
||
|
{ this->header = NULL;
|
||
|
}
|
||
|
|
||
|
const SOAP_ENV__Header *capServiceSoapBindingProxy::soap_header()
|
||
|
{ return this->header;
|
||
|
}
|
||
|
|
||
|
const SOAP_ENV__Fault *capServiceSoapBindingProxy::soap_fault()
|
||
|
{ return this->fault;
|
||
|
}
|
||
|
|
||
|
const char *capServiceSoapBindingProxy::soap_fault_string()
|
||
|
{ return *soap_faultstring(this);
|
||
|
}
|
||
|
|
||
|
const char *capServiceSoapBindingProxy::soap_fault_detail()
|
||
|
{ return *soap_faultdetail(this);
|
||
|
}
|
||
|
|
||
|
int capServiceSoapBindingProxy::soap_close_socket()
|
||
|
{ return soap_closesock(this);
|
||
|
}
|
||
|
|
||
|
int capServiceSoapBindingProxy::soap_force_close_socket()
|
||
|
{ return soap_force_closesock(this);
|
||
|
}
|
||
|
|
||
|
void capServiceSoapBindingProxy::soap_print_fault(FILE *fd)
|
||
|
{ ::soap_print_fault(this, fd);
|
||
|
}
|
||
|
|
||
|
#ifndef WITH_LEAN
|
||
|
#ifndef WITH_COMPAT
|
||
|
void capServiceSoapBindingProxy::soap_stream_fault(std::ostream& os)
|
||
|
{ ::soap_stream_fault(this, os);
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
char *capServiceSoapBindingProxy::soap_sprint_fault(char *buf, size_t len)
|
||
|
{ return ::soap_sprint_fault(this, buf, len);
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
int capServiceSoapBindingProxy::ExecuteInvoke(const char *endpoint, const char *soap_action, std::wstring ns1__reqXml, std::wstring &ns1__ExecuteInvokeReturn)
|
||
|
{ struct soap *soap = this;
|
||
|
struct __ns1__ExecuteInvoke soap_tmp___ns1__ExecuteInvoke;
|
||
|
struct __ns1__ExecuteInvokeResponse *soap_tmp___ns1__ExecuteInvokeResponse;
|
||
|
if (endpoint)
|
||
|
soap_endpoint = endpoint;
|
||
|
if (!soap_endpoint)
|
||
|
soap_endpoint = "http://124.126.119.27:9876/iagw_mms_recvsp/services/capService";
|
||
|
if (!soap_action)
|
||
|
soap_action = "";
|
||
|
soap->encodingStyle = NULL;
|
||
|
soap_tmp___ns1__ExecuteInvoke.ns1__reqXml = ns1__reqXml;
|
||
|
soap_begin(soap);
|
||
|
soap_serializeheader(soap);
|
||
|
soap_serialize___ns1__ExecuteInvoke(soap, &soap_tmp___ns1__ExecuteInvoke);
|
||
|
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__ExecuteInvoke(soap, &soap_tmp___ns1__ExecuteInvoke, "-ns1:ExecuteInvoke", 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__ExecuteInvoke(soap, &soap_tmp___ns1__ExecuteInvoke, "-ns1:ExecuteInvoke", NULL)
|
||
|
|| soap_body_end_out(soap)
|
||
|
|| soap_envelope_end_out(soap)
|
||
|
|| soap_end_send(soap))
|
||
|
return soap_closesock(soap);
|
||
|
if (!&ns1__ExecuteInvokeReturn)
|
||
|
return soap_closesock(soap);
|
||
|
soap_default_std__wstring(soap, &ns1__ExecuteInvokeReturn);
|
||
|
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___ns1__ExecuteInvokeResponse = soap_get___ns1__ExecuteInvokeResponse(soap, NULL, "-ns1:ExecuteInvokeResponse", "xsd:string");
|
||
|
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);
|
||
|
ns1__ExecuteInvokeReturn = soap_tmp___ns1__ExecuteInvokeResponse->ns1__ExecuteInvokeReturn;
|
||
|
return soap_closesock(soap);
|
||
|
}
|
||
|
|
||
|
int capServiceSoapBindingProxy::EncodeString(const char *endpoint, const char *soap_action, std::wstring ns1__decode, std::wstring &ns1__EncodeStringReturn)
|
||
|
{ struct soap *soap = this;
|
||
|
struct __ns1__EncodeString soap_tmp___ns1__EncodeString;
|
||
|
struct __ns1__EncodeStringResponse *soap_tmp___ns1__EncodeStringResponse;
|
||
|
if (endpoint)
|
||
|
soap_endpoint = endpoint;
|
||
|
if (!soap_endpoint)
|
||
|
soap_endpoint = "http://124.126.119.27:9876/iagw_mms_recvsp/services/capService";
|
||
|
if (!soap_action)
|
||
|
soap_action = "";
|
||
|
soap->encodingStyle = NULL;
|
||
|
soap_tmp___ns1__EncodeString.ns1__decode = ns1__decode;
|
||
|
soap_begin(soap);
|
||
|
soap_serializeheader(soap);
|
||
|
soap_serialize___ns1__EncodeString(soap, &soap_tmp___ns1__EncodeString);
|
||
|
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__EncodeString(soap, &soap_tmp___ns1__EncodeString, "-ns1:EncodeString", 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__EncodeString(soap, &soap_tmp___ns1__EncodeString, "-ns1:EncodeString", NULL)
|
||
|
|| soap_body_end_out(soap)
|
||
|
|| soap_envelope_end_out(soap)
|
||
|
|| soap_end_send(soap))
|
||
|
return soap_closesock(soap);
|
||
|
if (!&ns1__EncodeStringReturn)
|
||
|
return soap_closesock(soap);
|
||
|
soap_default_std__wstring(soap, &ns1__EncodeStringReturn);
|
||
|
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___ns1__EncodeStringResponse = soap_get___ns1__EncodeStringResponse(soap, NULL, "-ns1:EncodeStringResponse", "xsd:string");
|
||
|
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);
|
||
|
ns1__EncodeStringReturn = soap_tmp___ns1__EncodeStringResponse->ns1__EncodeStringReturn;
|
||
|
return soap_closesock(soap);
|
||
|
}
|
||
|
|
||
|
} // namespace IAGWMMS
|
||
|
|
||
|
/* End of client proxy code */
|