soapcalcProxy_2.cpp - soapcalcProxy.cpp Generated by gSOAP...

This preview shows page 1 - 3 out of 6 pages.

/* soapcalcProxy.cpp Generated by gSOAP 2.7.9l from calc.h Copyright(C) 2000-2007, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #include "soapcalcProxy.h" calcProxy::calcProxy() { calcProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); } calcProxy::calcProxy(soap_mode iomode) { calcProxy_init(iomode, iomode); } calcProxy::calcProxy(soap_mode imode, soap_mode omode) { calcProxy_init(imode, omode); } void calcProxy::calcProxy_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", "", "*/soap-envelope", NULL}, {"SOAP-ENC", "", "*/soap-encoding", NULL}, {"xsi", "", "*/XMLSchema-instance", NULL}, {"xsd", "", "*/XMLSchema", NULL}, {"ns2", "urn:calc", NULL, NULL}, {NULL, NULL, NULL, NULL} }; if (!this->namespaces) this->namespaces = namespaces; } calcProxy::~calcProxy() { } void calcProxy::soap_noheader() { header = NULL; } const SOAP_ENV__Fault *calcProxy::soap_fault() { return this->fault; } const char *calcProxy::soap_fault_string() { return *soap_faultstring(this); } const char *calcProxy::soap_fault_detail() { return *soap_faultdetail(this); } int calcProxy::add(double a, double b, double &result) { struct soap *soap = this; struct ns2__add soap_tmp_ns2__add;
struct ns2__addResponse *soap_tmp_ns2__addResponse; const char *soap_action = NULL; if (!soap_endpoint) soap_endpoint = ""; soap_action = ""; soap->encodingStyle = ""; soap_tmp_ns2__add.a = a; soap_tmp_ns2__add.b = b; 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", "")

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture