int repositorySoapBindingProxy::move(const char *endpoint, const char *soap_action, std::string _requestXmlString, std::string &_moveReturn) { struct soap *soap = this->soap; struct JasperServer__move soap_tmp_JasperServer__move; struct JasperServer__moveResponse *soap_tmp_JasperServer__moveResponse; if (endpoint) soap_endpoint = endpoint; if (!soap_endpoint) soap_endpoint = "http://localhost:8080/jasperserver/services/repository"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_JasperServer__move._requestXmlString = _requestXmlString; soap_begin(soap); soap_serializeheader(soap); soap_serialize_JasperServer__move(soap, &soap_tmp_JasperServer__move); 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_JasperServer__move(soap, &soap_tmp_JasperServer__move, "JasperServer:move", 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_JasperServer__move(soap, &soap_tmp_JasperServer__move, "JasperServer:move", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!&_moveReturn) return soap_closesock(soap); soap_default_std__string(soap, &_moveReturn); 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_tmp_JasperServer__moveResponse = soap_get_JasperServer__moveResponse(soap, 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); _moveReturn = soap_tmp_JasperServer__moveResponse->_moveReturn; return soap_closesock(soap); }
SOAP_FMAC5 int SOAP_FMAC6 soap_call_gapi1__doSpellingSuggestion(struct soap *soap, const char *soap_endpoint, const char *soap_action, std::string key, std::string phrase, std::string &return_) { struct gapi1__doSpellingSuggestion soap_tmp_gapi1__doSpellingSuggestion; struct gapi1__doSpellingSuggestionResponse *soap_tmp_gapi1__doSpellingSuggestionResponse; if (!soap_endpoint) soap_endpoint = "http://api.google.com/search/beta2"; if (!soap_action) soap_action = "urn:GoogleSearchAction"; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_gapi1__doSpellingSuggestion.key = key; soap_tmp_gapi1__doSpellingSuggestion.phrase = phrase; soap_begin(soap); soap_serializeheader(soap); soap_serialize_gapi1__doSpellingSuggestion(soap, &soap_tmp_gapi1__doSpellingSuggestion); 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_gapi1__doSpellingSuggestion(soap, &soap_tmp_gapi1__doSpellingSuggestion, "gapi1:doSpellingSuggestion", "") || 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_gapi1__doSpellingSuggestion(soap, &soap_tmp_gapi1__doSpellingSuggestion, "gapi1:doSpellingSuggestion", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_std__string(soap, &return_); 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_gapi1__doSpellingSuggestionResponse = soap_get_gapi1__doSpellingSuggestionResponse(soap, NULL, "gapi1:doSpellingSuggestionResponse", ""); 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_tmp_gapi1__doSpellingSuggestionResponse->return_; return soap_closesock(soap); }
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__CardCheck(struct soap *soap, const char *soap_endpoint, const char *soap_action, std::string *pRegXML, std::string &strRetXML) { struct ns__CardCheck soap_tmp_ns__CardCheck; struct ns__CardCheckResponse *soap_tmp_ns__CardCheckResponse; if (!soap_endpoint) soap_endpoint = "http://localhost"; soap->encodingStyle = ""; soap_tmp_ns__CardCheck.pRegXML = pRegXML; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns__CardCheck(soap, &soap_tmp_ns__CardCheck); 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__CardCheck(soap, &soap_tmp_ns__CardCheck, "ns:CardCheck", 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__CardCheck(soap, &soap_tmp_ns__CardCheck, "ns:CardCheck", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!&strRetXML) return soap_closesock(soap); soap_default_std__string(soap, &strRetXML); 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_tmp_ns__CardCheckResponse = soap_get_ns__CardCheckResponse(soap, 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); strRetXML = soap_tmp_ns__CardCheckResponse->strRetXML; return soap_closesock(soap); }
int agentProxy::coreStation(std::string command, std::string &message) { struct soap *soap = this; struct agent__coreStation soap_tmp_agent__coreStation; struct agent__coreStationResponse *soap_tmp_agent__coreStationResponse; const char *soap_action = NULL; soap->encodingStyle = NULL; soap_tmp_agent__coreStation.command = command; soap_begin(soap); soap_serializeheader(soap); soap_serialize_agent__coreStation(soap, &soap_tmp_agent__coreStation); 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_agent__coreStation(soap, &soap_tmp_agent__coreStation, "agent:coreStation", 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_agent__coreStation(soap, &soap_tmp_agent__coreStation, "agent:coreStation", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!&message) return soap_closesock(soap); soap_default_std__string(soap, &message); 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_agent__coreStationResponse = soap_get_agent__coreStationResponse(soap, NULL, "agent:coreStationResponse", ""); 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); message = soap_tmp_agent__coreStationResponse->message; return soap_closesock(soap); }
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__GetCity(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *Secret, std::string *result) { struct ns__GetCity soap_tmp_ns__GetCity; struct ns__GetCityResponse *soap_tmp_ns__GetCityResponse; soap->encodingStyle = NULL; soap_tmp_ns__GetCity.Secret = Secret; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns__GetCity(soap, &soap_tmp_ns__GetCity); 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__GetCity(soap, &soap_tmp_ns__GetCity, "ns:GetCity", 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__GetCity(soap, &soap_tmp_ns__GetCity, "ns:GetCity", NULL) || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); if (!result) return soap_closesock(soap); soap_default_std__string(soap, result); 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__GetCityResponse = soap_get_ns__GetCityResponse(soap, NULL, "ns:GetCityResponse", ""); 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 (result && soap_tmp_ns__GetCityResponse->result) *result = *soap_tmp_ns__GetCityResponse->result; return soap_closesock(soap); }