/* soapClient.c Generated by gSOAP 2.7.6c from DataAcquisitionControl.h Copyright (C) 2000-2005, 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 "soapH.h" #ifdef __cplusplus extern "C" { #endif SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.6c 2009-03-16 14:24:27 GMT") SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__GetState(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns2__GetStateResponse *_param_1) { struct ns2__GetState soap_tmp_ns2__GetState; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__GetState(soap, &soap_tmp_ns2__GetState); 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__GetState(soap, &soap_tmp_ns2__GetState, "ns2:GetState", "") || 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__GetState(soap, &soap_tmp_ns2__GetState, "ns2:GetState", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_ns2__GetStateResponse(soap, _param_1); 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_ns2__GetStateResponse(soap, _param_1, "ns2:GetStateResponse", ""); 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_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__GetOption(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *Parameter, struct ns2__GetOptionResponse *_param_2) { struct ns2__GetOption soap_tmp_ns2__GetOption; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_ns2__GetOption.Parameter = Parameter; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__GetOption(soap, &soap_tmp_ns2__GetOption); 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__GetOption(soap, &soap_tmp_ns2__GetOption, "ns2:GetOption", "") || 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__GetOption(soap, &soap_tmp_ns2__GetOption, "ns2:GetOption", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_ns2__GetOptionResponse(soap, _param_2); 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_ns2__GetOptionResponse(soap, _param_2, "ns2:GetOptionResponse", ""); 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_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__GetLastError(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns2__GetLastErrorResponse *_param_3) { struct ns2__GetLastError soap_tmp_ns2__GetLastError; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__GetLastError(soap, &soap_tmp_ns2__GetLastError); 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__GetLastError(soap, &soap_tmp_ns2__GetLastError, "ns2:GetLastError", "") || 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__GetLastError(soap, &soap_tmp_ns2__GetLastError, "ns2:GetLastError", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_ns2__GetLastErrorResponse(soap, _param_3); 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_ns2__GetLastErrorResponse(soap, _param_3, "ns2:GetLastErrorResponse", ""); 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_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__GetInformation(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns2__GetInformationResponse *_param_4) { struct ns2__GetInformation soap_tmp_ns2__GetInformation; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__GetInformation(soap, &soap_tmp_ns2__GetInformation); 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__GetInformation(soap, &soap_tmp_ns2__GetInformation, "ns2:GetInformation", "") || 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__GetInformation(soap, &soap_tmp_ns2__GetInformation, "ns2:GetInformation", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_ns2__GetInformationResponse(soap, _param_4); 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_ns2__GetInformationResponse(soap, _param_4, "ns2:GetInformationResponse", ""); 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_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__DoReset(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *Parameter, int *ResponseCode) { struct ns2__DoReset soap_tmp_ns2__DoReset; struct ns2__DoResetResponse *soap_tmp_ns2__DoResetResponse; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_ns2__DoReset.Parameter = Parameter; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__DoReset(soap, &soap_tmp_ns2__DoReset); 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__DoReset(soap, &soap_tmp_ns2__DoReset, "ns2:DoReset", "") || 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__DoReset(soap, &soap_tmp_ns2__DoReset, "ns2:DoReset", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_int(soap, ResponseCode); 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_ns2__DoResetResponse = soap_get_ns2__DoResetResponse(soap, NULL, "ns2:DoResetResponse", ""); 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); if (ResponseCode && soap_tmp_ns2__DoResetResponse->ResponseCode) *ResponseCode = *soap_tmp_ns2__DoResetResponse->ResponseCode; return soap_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__DoSetUp(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *Parameter, int *ResponseCode) { struct ns2__DoSetUp soap_tmp_ns2__DoSetUp; struct ns2__DoSetUpResponse *soap_tmp_ns2__DoSetUpResponse; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_ns2__DoSetUp.Parameter = Parameter; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__DoSetUp(soap, &soap_tmp_ns2__DoSetUp); 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__DoSetUp(soap, &soap_tmp_ns2__DoSetUp, "ns2:DoSetUp", "") || 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__DoSetUp(soap, &soap_tmp_ns2__DoSetUp, "ns2:DoSetUp", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_int(soap, ResponseCode); 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_ns2__DoSetUpResponse = soap_get_ns2__DoSetUpResponse(soap, NULL, "ns2:DoSetUpResponse", ""); 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); if (ResponseCode && soap_tmp_ns2__DoSetUpResponse->ResponseCode) *ResponseCode = *soap_tmp_ns2__DoSetUpResponse->ResponseCode; return soap_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__DoOption(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *Parameter, int *ResponseCode) { struct ns2__DoOption soap_tmp_ns2__DoOption; struct ns2__DoOptionResponse *soap_tmp_ns2__DoOptionResponse; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_ns2__DoOption.Parameter = Parameter; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__DoOption(soap, &soap_tmp_ns2__DoOption); 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__DoOption(soap, &soap_tmp_ns2__DoOption, "ns2:DoOption", "") || 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__DoOption(soap, &soap_tmp_ns2__DoOption, "ns2:DoOption", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_int(soap, ResponseCode); 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_ns2__DoOptionResponse = soap_get_ns2__DoOptionResponse(soap, NULL, "ns2:DoOptionResponse", ""); 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); if (ResponseCode && soap_tmp_ns2__DoOptionResponse->ResponseCode) *ResponseCode = *soap_tmp_ns2__DoOptionResponse->ResponseCode; return soap_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__DoStop(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *Parameter, int *ResponseCode) { struct ns2__DoStop soap_tmp_ns2__DoStop; struct ns2__DoStopResponse *soap_tmp_ns2__DoStopResponse; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_ns2__DoStop.Parameter = Parameter; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__DoStop(soap, &soap_tmp_ns2__DoStop); 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__DoStop(soap, &soap_tmp_ns2__DoStop, "ns2:DoStop", "") || 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__DoStop(soap, &soap_tmp_ns2__DoStop, "ns2:DoStop", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_int(soap, ResponseCode); 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_ns2__DoStopResponse = soap_get_ns2__DoStopResponse(soap, NULL, "ns2:DoStopResponse", ""); 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); if (ResponseCode && soap_tmp_ns2__DoStopResponse->ResponseCode) *ResponseCode = *soap_tmp_ns2__DoStopResponse->ResponseCode; return soap_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__DoGo(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *Parameter, int *ResponseCode) { struct ns2__DoGo soap_tmp_ns2__DoGo; struct ns2__DoGoResponse *soap_tmp_ns2__DoGoResponse; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_tmp_ns2__DoGo.Parameter = Parameter; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__DoGo(soap, &soap_tmp_ns2__DoGo); 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__DoGo(soap, &soap_tmp_ns2__DoGo, "ns2:DoGo", "") || 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__DoGo(soap, &soap_tmp_ns2__DoGo, "ns2:DoGo", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_int(soap, ResponseCode); 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_ns2__DoGoResponse = soap_get_ns2__DoGoResponse(soap, NULL, "ns2:DoGoResponse", ""); 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); if (ResponseCode && soap_tmp_ns2__DoGoResponse->ResponseCode) *ResponseCode = *soap_tmp_ns2__DoGoResponse->ResponseCode; return soap_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__GetCounters(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns2__GetCountersResponse *_param_5) { struct ns2__GetCounters soap_tmp_ns2__GetCounters; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__GetCounters(soap, &soap_tmp_ns2__GetCounters); 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__GetCounters(soap, &soap_tmp_ns2__GetCounters, "ns2:GetCounters", "") || 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__GetCounters(soap, &soap_tmp_ns2__GetCounters, "ns2:GetCounters", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_ns2__GetCountersResponse(soap, _param_5); 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_ns2__GetCountersResponse(soap, _param_5, "ns2:GetCountersResponse", ""); 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_closesock(soap); } SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__GetRates(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns2__GetRatesResponse *_param_6) { struct ns2__GetRates soap_tmp_ns2__GetRates; if (!soap_endpoint) soap_endpoint = "http://npg.dl.ac.uk:8015/DataAcquisitionControlServer"; if (!soap_action) soap_action = ""; soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; soap_begin(soap); soap_serializeheader(soap); soap_serialize_ns2__GetRates(soap, &soap_tmp_ns2__GetRates); 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__GetRates(soap, &soap_tmp_ns2__GetRates, "ns2:GetRates", "") || 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__GetRates(soap, &soap_tmp_ns2__GetRates, "ns2:GetRates", "") || soap_body_end_out(soap) || soap_envelope_end_out(soap) || soap_end_send(soap)) return soap_closesock(soap); soap_default_ns2__GetRatesResponse(soap, _param_6); 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_ns2__GetRatesResponse(soap, _param_6, "ns2:GetRatesResponse", ""); 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_closesock(soap); } #ifdef __cplusplus } #endif /* End of soapClient.c */