コード例 #1
0
ファイル: soapClient.c プロジェクト: ocrespo/PSD12-13
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ims__rejectFriendshipRequest(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *user, char *friend_nick, int *result)
{	struct ims__rejectFriendshipRequest soap_tmp_ims__rejectFriendshipRequest;
	struct ims__rejectFriendshipRequestResponse *soap_tmp_ims__rejectFriendshipRequestResponse;
	soap->encodingStyle = NULL;
	soap_tmp_ims__rejectFriendshipRequest.user = user;
	soap_tmp_ims__rejectFriendshipRequest.friend_nick = friend_nick;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ims__rejectFriendshipRequest(soap, &soap_tmp_ims__rejectFriendshipRequest);
	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_ims__rejectFriendshipRequest(soap, &soap_tmp_ims__rejectFriendshipRequest, "ims:rejectFriendshipRequest", 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_ims__rejectFriendshipRequest(soap, &soap_tmp_ims__rejectFriendshipRequest, "ims:rejectFriendshipRequest", 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_int(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_ims__rejectFriendshipRequestResponse = soap_get_ims__rejectFriendshipRequestResponse(soap, NULL, "ims:rejectFriendshipRequestResponse", "");
	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_ims__rejectFriendshipRequestResponse->result)
		*result = *soap_tmp_ims__rejectFriendshipRequestResponse->result;
	return soap_closesock(soap);
}
コード例 #2
0
ファイル: soapClient.c プロジェクト: tcdog001/apv5sdk-v15
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__getQuote(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *symbol, float *Result)
{	struct ns__getQuote soap_tmp_ns__getQuote;
	struct ns__getQuoteResponse *soap_tmp_ns__getQuoteResponse;
	soap->encodingStyle = NULL;
	soap_tmp_ns__getQuote.symbol = symbol;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ns__getQuote(soap, &soap_tmp_ns__getQuote);
	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__getQuote(soap, &soap_tmp_ns__getQuote, "ns:getQuote", "")
		 || 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__getQuote(soap, &soap_tmp_ns__getQuote, "ns:getQuote", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	soap_default_float(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__getQuoteResponse = soap_get_ns__getQuoteResponse(soap, NULL, "ns:getQuoteResponse", "");
	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 (Result && soap_tmp_ns__getQuoteResponse->Result)
		*Result = *soap_tmp_ns__getQuoteResponse->Result;
	return soap_closesock(soap);
}
コード例 #3
0
ファイル: soapClient.c プロジェクト: ocrespo/PSD12-13
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ims__userLogout(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *nick, char *pass, int *error)
{	struct ims__userLogout soap_tmp_ims__userLogout;
	struct ims__userLogoutResponse *soap_tmp_ims__userLogoutResponse;
	soap->encodingStyle = NULL;
	soap_tmp_ims__userLogout.nick = nick;
	soap_tmp_ims__userLogout.pass = pass;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ims__userLogout(soap, &soap_tmp_ims__userLogout);
	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_ims__userLogout(soap, &soap_tmp_ims__userLogout, "ims:userLogout", 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_ims__userLogout(soap, &soap_tmp_ims__userLogout, "ims:userLogout", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!error)
		return soap_closesock(soap);
	soap_default_int(soap, error);
	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_ims__userLogoutResponse = soap_get_ims__userLogoutResponse(soap, NULL, "ims:userLogoutResponse", "");
	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 (error && soap_tmp_ims__userLogoutResponse->error)
		*error = *soap_tmp_ims__userLogoutResponse->error;
	return soap_closesock(soap);
}
コード例 #4
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns3__wmImed_USCORESrvAnulacion(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__wmImed_USCORESrvAnulacion *ns1__wmImed_USCORESrvAnulacion, struct _ns1__wmImed_USCORESrvAnulacionResponse *ns1__wmImed_USCORESrvAnulacionResponse)
{	struct __ns3__wmImed_USCORESrvAnulacion soap_tmp___ns3__wmImed_USCORESrvAnulacion;
	if (!soap_endpoint)
		soap_endpoint = "http://10.90.10.8/produccionmpro/anulacion.asmx";
	if (!soap_action)
		soap_action = "http://tempuri.org/wmImed_SrvAnulacion";
	soap->encodingStyle = NULL;
	soap_tmp___ns3__wmImed_USCORESrvAnulacion.ns1__wmImed_USCORESrvAnulacion = ns1__wmImed_USCORESrvAnulacion;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns3__wmImed_USCORESrvAnulacion(soap, &soap_tmp___ns3__wmImed_USCORESrvAnulacion);
	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___ns3__wmImed_USCORESrvAnulacion(soap, &soap_tmp___ns3__wmImed_USCORESrvAnulacion, "-ns3:wmImed_SrvAnulacion", 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___ns3__wmImed_USCORESrvAnulacion(soap, &soap_tmp___ns3__wmImed_USCORESrvAnulacion, "-ns3:wmImed_SrvAnulacion", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__wmImed_USCORESrvAnulacionResponse)
		return soap_closesock(soap);
	soap_default__ns1__wmImed_USCORESrvAnulacionResponse(soap, ns1__wmImed_USCORESrvAnulacionResponse);
	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__ns1__wmImed_USCORESrvAnulacionResponse(soap, ns1__wmImed_USCORESrvAnulacionResponse, "ns1:wmImed_SrvAnulacionResponse", "");
	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);
}
コード例 #5
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__ActivacionTarjeta(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns1__ActivacionTarjeta *ns1__ActivacionTarjeta, struct ns1__ActivacionTarjetaResponse *ns1__ActivacionTarjetaResponse)
{	struct __ns1__ActivacionTarjeta soap_tmp___ns1__ActivacionTarjeta;
	if (!soap_endpoint)
		soap_endpoint = "http://192.168.1.10:7023";
	soap->encodingStyle = "";
	soap_tmp___ns1__ActivacionTarjeta.ns1__ActivacionTarjeta = ns1__ActivacionTarjeta;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns1__ActivacionTarjeta(soap, &soap_tmp___ns1__ActivacionTarjeta);
	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__ActivacionTarjeta(soap, &soap_tmp___ns1__ActivacionTarjeta, "-ns1:ActivacionTarjeta", 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__ActivacionTarjeta(soap, &soap_tmp___ns1__ActivacionTarjeta, "-ns1:ActivacionTarjeta", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__ActivacionTarjetaResponse)
		return soap_closesock(soap);
	soap_default_ns1__ActivacionTarjetaResponse(soap, ns1__ActivacionTarjetaResponse);
	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_get_ns1__ActivacionTarjetaResponse(soap, ns1__ActivacionTarjetaResponse, "", "");
	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);
}
コード例 #6
0
ファイル: soapClient.cpp プロジェクト: jimiy/wmas
SOAP_FMAC5 int SOAP_FMAC6 soap_call_wmas__beoffduty(struct soap *soap, const char *soap_endpoint, const char *soap_action, std::string driverid, struct wmas__beoffdutyResponse &_param_7)
{	struct wmas__beoffduty soap_tmp_wmas__beoffduty;
	if (soap_endpoint == NULL)
		soap_endpoint = "http://localhost:8088/shagang/service/wmasservice.php";
	if (soap_action == NULL)
		soap_action = "http://www.example.org/wmasservice/beoffduty";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp_wmas__beoffduty.driverid = driverid;
	soap_serializeheader(soap);
	soap_serialize_wmas__beoffduty(soap, &soap_tmp_wmas__beoffduty);
	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_wmas__beoffduty(soap, &soap_tmp_wmas__beoffduty, "wmas:beoffduty", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put_wmas__beoffduty(soap, &soap_tmp_wmas__beoffduty, "wmas:beoffduty", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!&_param_7)
		return soap_closesock(soap);
	soap_default_wmas__beoffdutyResponse(soap, &_param_7);
	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_wmas__beoffdutyResponse(soap, &_param_7, "wmas:beoffdutyResponse", 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);
	return soap_closesock(soap);
}
コード例 #7
0
ファイル: soapClient.c プロジェクト: tkpclark/cdopr-system-dy
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__sendSms(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns1__SendSmsRequest *ns1__in0, struct ns1__SendSmsResponse *ns1__sendSmsReturn)
{	struct __ns1__sendSms soap_tmp___ns1__sendSms;
	if (soap_endpoint == NULL)
		soap_endpoint = "http://localhost:8080/services/SendSmsService";
	if (soap_action == NULL)
		soap_action = "";
	soap->encodingStyle = NULL;
	soap_tmp___ns1__sendSms.ns1__in0 = ns1__in0;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns1__sendSms(soap, &soap_tmp___ns1__sendSms);
	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__sendSms(soap, &soap_tmp___ns1__sendSms, "-ns1:sendSms", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put___ns1__sendSms(soap, &soap_tmp___ns1__sendSms, "-ns1:sendSms", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__sendSmsReturn)
		return soap_closesock(soap);
	soap_default_ns1__SendSmsResponse(soap, ns1__sendSmsReturn);
	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_ns1__SendSmsResponse(soap, ns1__sendSmsReturn, "ns1:sendSmsReturn", "ns1:SendSmsResponse");
	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);
}
コード例 #8
0
ファイル: soapClient.cpp プロジェクト: jimiy/wmas
SOAP_FMAC5 int SOAP_FMAC6 soap_call_wmas__retrievedetailedinvoice(struct soap *soap, const char *soap_endpoint, const char *soap_action, wmas__requestjld *invoiceid, struct wmas__retrievedetailedinvoiceResponse &_param_3)
{	struct wmas__retrievedetailedinvoice soap_tmp_wmas__retrievedetailedinvoice;
	if (soap_endpoint == NULL)
		soap_endpoint = "http://localhost:8088/shagang/service/wmasservice.php";
	if (soap_action == NULL)
		soap_action = "http://www.example.org/wmasservice/retrievedetailedinvoice";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp_wmas__retrievedetailedinvoice.invoiceid = invoiceid;
	soap_serializeheader(soap);
	soap_serialize_wmas__retrievedetailedinvoice(soap, &soap_tmp_wmas__retrievedetailedinvoice);
	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_wmas__retrievedetailedinvoice(soap, &soap_tmp_wmas__retrievedetailedinvoice, "wmas:retrievedetailedinvoice", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put_wmas__retrievedetailedinvoice(soap, &soap_tmp_wmas__retrievedetailedinvoice, "wmas:retrievedetailedinvoice", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!&_param_3)
		return soap_closesock(soap);
	soap_default_wmas__retrievedetailedinvoiceResponse(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_wmas__retrievedetailedinvoiceResponse(soap, &_param_3, "wmas:retrievedetailedinvoiceResponse", 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);
	return soap_closesock(soap);
}
コード例 #9
0
ファイル: soapClient.cpp プロジェクト: jimiy/wmas
SOAP_FMAC5 int SOAP_FMAC6 soap_call_wmas__storageoperation(struct soap *soap, const char *soap_endpoint, const char *soap_action, wmas__storageType *storagemess, struct wmas__storageoperationResponse &_param_5)
{	struct wmas__storageoperation soap_tmp_wmas__storageoperation;
	if (soap_endpoint == NULL)
		soap_endpoint = "http://localhost:8088/shagang/service/wmasservice.php";
	if (soap_action == NULL)
		soap_action = "http://www.example.org/wmasservice/storageoperation";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp_wmas__storageoperation.storagemess = storagemess;
	soap_serializeheader(soap);
	soap_serialize_wmas__storageoperation(soap, &soap_tmp_wmas__storageoperation);
	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_wmas__storageoperation(soap, &soap_tmp_wmas__storageoperation, "wmas:storageoperation", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put_wmas__storageoperation(soap, &soap_tmp_wmas__storageoperation, "wmas:storageoperation", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!&_param_5)
		return soap_closesock(soap);
	soap_default_wmas__storageoperationResponse(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_wmas__storageoperationResponse(soap, &_param_5, "wmas:storageoperationResponse", 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);
	return soap_closesock(soap);
}
コード例 #10
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__ConsultaSaldoYTrxDiaPorAfiliado(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns1__ConsultaSaldoYTrxDiaPorAfiliado *ns1__ConsultaSaldoYTrxDiaPorAfiliado, struct ns1__ConsultaSaldoYTrxDiaPorAfiliadoResponse *ns1__ConsultaSaldoYTrxDiaPorAfiliadoResponse)
{	struct __ns1__ConsultaSaldoYTrxDiaPorAfiliado soap_tmp___ns1__ConsultaSaldoYTrxDiaPorAfiliado;
	if (!soap_endpoint)
		soap_endpoint = "http://192.168.1.10:7023";
	soap->encodingStyle = "";
	soap_tmp___ns1__ConsultaSaldoYTrxDiaPorAfiliado.ns1__ConsultaSaldoYTrxDiaPorAfiliado = ns1__ConsultaSaldoYTrxDiaPorAfiliado;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns1__ConsultaSaldoYTrxDiaPorAfiliado(soap, &soap_tmp___ns1__ConsultaSaldoYTrxDiaPorAfiliado);
	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__ConsultaSaldoYTrxDiaPorAfiliado(soap, &soap_tmp___ns1__ConsultaSaldoYTrxDiaPorAfiliado, "-ns1:ConsultaSaldoYTrxDiaPorAfiliado", 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__ConsultaSaldoYTrxDiaPorAfiliado(soap, &soap_tmp___ns1__ConsultaSaldoYTrxDiaPorAfiliado, "-ns1:ConsultaSaldoYTrxDiaPorAfiliado", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__ConsultaSaldoYTrxDiaPorAfiliadoResponse)
		return soap_closesock(soap);
	soap_default_ns1__ConsultaSaldoYTrxDiaPorAfiliadoResponse(soap, ns1__ConsultaSaldoYTrxDiaPorAfiliadoResponse);
	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_get_ns1__ConsultaSaldoYTrxDiaPorAfiliadoResponse(soap, ns1__ConsultaSaldoYTrxDiaPorAfiliadoResponse, "", "");
	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);
}
コード例 #11
0
ファイル: soapClient.cpp プロジェクト: eslinux/Windows
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__SysShutdownHandle(struct soap *soap, const char *soap_endpoint, const char *soap_action, enum ns__SysShutdownEvent in, struct ns__noResponse *out)
{	struct ns__SysShutdownHandle soap_tmp_ns__SysShutdownHandle;
	if (soap_endpoint == NULL)
		soap_endpoint = "https://localhost:8085";
	soap_begin(soap);
	soap->encodingStyle = "";
	soap_tmp_ns__SysShutdownHandle.in = in;
	soap_serializeheader(soap);
	soap_serialize_ns__SysShutdownHandle(soap, &soap_tmp_ns__SysShutdownHandle);
	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__SysShutdownHandle(soap, &soap_tmp_ns__SysShutdownHandle, "ns:SysShutdownHandle", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put_ns__SysShutdownHandle(soap, &soap_tmp_ns__SysShutdownHandle, "ns:SysShutdownHandle", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!out)
		return soap_closesock(soap);
	soap_default_ns__noResponse(soap, out);
	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_get_ns__noResponse(soap, out, "", 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);
	return soap_closesock(soap);
}
コード例 #12
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__doOperation_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__doOperation *ns1__doOperation, _ns1__doOperationResponse *ns1__doOperationResponse)
{	struct __ns1__doOperation_ soap_tmp___ns1__doOperation_;
	if (soap_endpoint == NULL)
		soap_endpoint = "http://localhost:8080/EBMS_server/services/EBMS_serverClass.EBMS_serverClassHttpSoap11Endpoint/ http://localhost:8080/EBMS_server/services/EBMS_serverClass.EBMS_serverClassHttpSoap12Endpoint/";
	if (soap_action == NULL)
		soap_action = "urn:doOperation";
	soap->encodingStyle = NULL;
	soap_tmp___ns1__doOperation_.ns1__doOperation = ns1__doOperation;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns1__doOperation_(soap, &soap_tmp___ns1__doOperation_);
	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__doOperation_(soap, &soap_tmp___ns1__doOperation_, "-ns1:doOperation", 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__doOperation_(soap, &soap_tmp___ns1__doOperation_, "-ns1:doOperation", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__doOperationResponse)
		return soap_closesock(soap);
	ns1__doOperationResponse->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__doOperationResponse->soap_get(soap, "ns1:doOperationResponse", "");
	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);
}
コード例 #13
0
ファイル: SMCagentProxy.cpp プロジェクト: crrlab/TND
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);
}
コード例 #14
0
ファイル: soapClient.c プロジェクト: ocrespo/PSD12-13
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ims__removeFriend(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *user, char *friend_nick, int *error)
{	struct ims__removeFriend soap_tmp_ims__removeFriend;
	struct ims__removeFriendResponse *soap_tmp_ims__removeFriendResponse;
	soap->encodingStyle = NULL;
	soap_tmp_ims__removeFriend.user = user;
	soap_tmp_ims__removeFriend.friend_nick = friend_nick;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ims__removeFriend(soap, &soap_tmp_ims__removeFriend);
	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_ims__removeFriend(soap, &soap_tmp_ims__removeFriend, "ims:removeFriend", 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_ims__removeFriend(soap, &soap_tmp_ims__removeFriend, "ims:removeFriend", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!error)
		return soap_closesock(soap);
	soap_default_int(soap, error);
	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_ims__removeFriendResponse = soap_get_ims__removeFriendResponse(soap, NULL, "ims:removeFriendResponse", "");
	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 (error && soap_tmp_ims__removeFriendResponse->error)
		*error = *soap_tmp_ims__removeFriendResponse->error;
	return soap_closesock(soap);
}
コード例 #15
0
ファイル: soapClient.cpp プロジェクト: likanjie/LGgSOAP
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);
}
コード例 #16
0
ファイル: soapClient.c プロジェクト: ocrespo/PSD12-13
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ims__getFriends(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *user, struct _Struct_2 *friends)
{	struct ims__getFriends soap_tmp_ims__getFriends;
	struct ims__getFriendsResponse *soap_tmp_ims__getFriendsResponse;
	soap->encodingStyle = NULL;
	soap_tmp_ims__getFriends.user = user;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ims__getFriends(soap, &soap_tmp_ims__getFriends);
	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_ims__getFriends(soap, &soap_tmp_ims__getFriends, "ims:getFriends", 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_ims__getFriends(soap, &soap_tmp_ims__getFriends, "ims:getFriends", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!friends)
		return soap_closesock(soap);
	soap_default_Char_vector(soap, friends);
	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_ims__getFriendsResponse = soap_get_ims__getFriendsResponse(soap, NULL, "ims:getFriendsResponse", "");
	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 (friends && soap_tmp_ims__getFriendsResponse->friends)
		*friends = *soap_tmp_ims__getFriendsResponse->friends;
	return soap_closesock(soap);
}
コード例 #17
0
ファイル: soapClient.cpp プロジェクト: DemofiloVizuete/gSOAP
SOAP_FMAC5 int SOAP_FMAC6 soap_call_m__echoVoid(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct m__echoVoidResponse &result)
{	struct m__echoVoid soap_tmp_m__echoVoid;
	if (!soap_endpoint)
		soap_endpoint = "http://www.cs.fsu.edu/~engelen/interop2C.cgi";
	soap->encodingStyle = "";
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_m__echoVoid(soap, &soap_tmp_m__echoVoid);
	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_m__echoVoid(soap, &soap_tmp_m__echoVoid, "m:echoVoid", 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_m__echoVoid(soap, &soap_tmp_m__echoVoid, "m:echoVoid", 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_m__echoVoidResponse(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);
	if (soap_recv_fault(soap, 1))
		return soap->error;
	soap_get_m__echoVoidResponse(soap, &result, "", "");
	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);
}
コード例 #18
0
ファイル: SMCagentProxy.cpp プロジェクト: crrlab/TND
int agentProxy::setCameraURI(struct camera__uri *_info, struct camera__info &_infoResponse)
{   struct soap *soap = this;
    struct agent__setCameraURI soap_tmp_agent__setCameraURI;
    const char *soap_action = NULL;
    soap->encodingStyle = NULL;
    soap_tmp_agent__setCameraURI._info = _info;
    soap_begin(soap);
    soap_serializeheader(soap);
    soap_serialize_agent__setCameraURI(soap, &soap_tmp_agent__setCameraURI);
    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__setCameraURI(soap, &soap_tmp_agent__setCameraURI, "agent:setCameraURI", 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__setCameraURI(soap, &soap_tmp_agent__setCameraURI, "agent:setCameraURI", NULL)
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    if (!&_infoResponse)
        return soap_closesock(soap);
    soap_default_camera__info(soap, &_infoResponse);
    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_camera__info(soap, &_infoResponse, "camera:info", "");
    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);
}
コード例 #19
0
ファイル: soapClient.c プロジェクト: cfliao/hiwifi8
SOAP_FMAC5 int SOAP_FMAC6 soap_call___cwmp__TransferComplete(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _cwmp__TransferComplete *cwmp__TransferComplete, struct _cwmp__TransferCompleteResponse *cwmp__TransferCompleteResponse)
{	struct __cwmp__TransferComplete soap_tmp___cwmp__TransferComplete;
	if (!soap_action)
		soap_action = "urn:dslforum-org:cwmp-1-1:transferCompleteIn";
	soap->encodingStyle = NULL;
	soap_tmp___cwmp__TransferComplete.cwmp__TransferComplete = cwmp__TransferComplete;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___cwmp__TransferComplete(soap, &soap_tmp___cwmp__TransferComplete);
	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___cwmp__TransferComplete(soap, &soap_tmp___cwmp__TransferComplete, "-cwmp:TransferComplete", 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___cwmp__TransferComplete(soap, &soap_tmp___cwmp__TransferComplete, "-cwmp:TransferComplete", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!cwmp__TransferCompleteResponse)
		return soap_closesock(soap);
	soap_default__cwmp__TransferCompleteResponse(soap, cwmp__TransferCompleteResponse);
	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__cwmp__TransferCompleteResponse(soap, cwmp__TransferCompleteResponse, "cwmp:TransferCompleteResponse", "");
	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);
}
コード例 #20
0
ファイル: soapClient.cpp プロジェクト: DemofiloVizuete/gSOAP
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__echoNestedArray(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct s__SOAPArrayStruct _inputStruct, struct ns__echoNestedArrayResponse &result)
{	struct ns__echoNestedArray soap_tmp_ns__echoNestedArray;
	soap->encodingStyle = "";
	soap_tmp_ns__echoNestedArray._inputStruct = _inputStruct;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ns__echoNestedArray(soap, &soap_tmp_ns__echoNestedArray);
	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__echoNestedArray(soap, &soap_tmp_ns__echoNestedArray, "ns:echoNestedArray", 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__echoNestedArray(soap, &soap_tmp_ns__echoNestedArray, "ns:echoNestedArray", 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_ns__echoNestedArrayResponse(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);
	if (soap_recv_fault(soap, 1))
		return soap->error;
	soap_get_ns__echoNestedArrayResponse(soap, &result, "", "");
	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);
}
コード例 #21
0
ファイル: soapClient.cpp プロジェクト: DemofiloVizuete/gSOAP
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__echoDecimal(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *inputDecimal, char *&_return)
{	struct ns__echoDecimal soap_tmp_ns__echoDecimal;
	struct ns__echoDecimalResponse *soap_tmp_ns__echoDecimalResponse;
	soap->encodingStyle = "";
	soap_tmp_ns__echoDecimal.inputDecimal = inputDecimal;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ns__echoDecimal(soap, &soap_tmp_ns__echoDecimal);
	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__echoDecimal(soap, &soap_tmp_ns__echoDecimal, "ns:echoDecimal", 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__echoDecimal(soap, &soap_tmp_ns__echoDecimal, "ns:echoDecimal", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	_return = NULL;
	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__echoDecimalResponse = soap_get_ns__echoDecimalResponse(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);
	_return = soap_tmp_ns__echoDecimalResponse->_return;
	return soap_closesock(soap);
}
コード例 #22
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call_oph__ophExecuteMain(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *ophExecuteMainRequest, struct oph__ophResponse *ophExecuteMainResponse)
{	struct oph__ophExecuteMain soap_tmp_oph__ophExecuteMain;
	if (soap_action == NULL)
		soap_action = "";
	soap_tmp_oph__ophExecuteMain.ophExecuteMainRequest = ophExecuteMainRequest;
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_serializeheader(soap);
	soap_serialize_oph__ophExecuteMain(soap, &soap_tmp_oph__ophExecuteMain);
	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_oph__ophExecuteMain(soap, &soap_tmp_oph__ophExecuteMain, "oph:ophExecuteMain", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put_oph__ophExecuteMain(soap, &soap_tmp_oph__ophExecuteMain, "oph:ophExecuteMain", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ophExecuteMainResponse)
		return soap_closesock(soap);
	soap_default_oph__ophResponse(soap, ophExecuteMainResponse);
	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_oph__ophResponse(soap, ophExecuteMainResponse, "oph:ophResponse", 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);
	return soap_closesock(soap);
}
コード例 #23
0
ファイル: soapClient.c プロジェクト: ocrespo/PSD12-13
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ims__getLastMessage(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _Struct_1 *myMessage)
{	struct ims__getLastMessage soap_tmp_ims__getLastMessage;
	struct ims__getLastMessageResponse *soap_tmp_ims__getLastMessageResponse;
	soap->encodingStyle = NULL;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ims__getLastMessage(soap, &soap_tmp_ims__getLastMessage);
	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_ims__getLastMessage(soap, &soap_tmp_ims__getLastMessage, "ims:getLastMessage", 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_ims__getLastMessage(soap, &soap_tmp_ims__getLastMessage, "ims:getLastMessage", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!myMessage)
		return soap_closesock(soap);
	soap_default_Message(soap, myMessage);
	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_ims__getLastMessageResponse = soap_get_ims__getLastMessageResponse(soap, NULL, "ims:getLastMessageResponse", "");
	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 (myMessage && soap_tmp_ims__getLastMessageResponse->myMessage)
		*myMessage = *soap_tmp_ims__getLastMessageResponse->myMessage;
	return soap_closesock(soap);
}
コード例 #24
0
ファイル: opc_soap_Client.cpp プロジェクト: siamect/proview
SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__Read(struct soap* soap,
    const char* soap_endpoint, const char* soap_action, _s0__Read* s0__Read,
    _s0__ReadResponse* s0__ReadResponse)
{
  struct __s0__Read soap_tmp___s0__Read;
  if (!soap_action)
    soap_action = "http://opcfoundation.org/webservices/XMLDA/1.0/Read";
  soap->encodingStyle = NULL;
  soap_tmp___s0__Read.s0__Read = s0__Read;
  soap_begin(soap);
  soap_serializeheader(soap);
  soap_serialize___s0__Read(soap, &soap_tmp___s0__Read);
  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___s0__Read(soap, &soap_tmp___s0__Read, "-s0:Read", "")
        || 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___s0__Read(soap, &soap_tmp___s0__Read, "-s0:Read", "")
      || soap_body_end_out(soap) || soap_envelope_end_out(soap)
      || soap_end_send(soap))
    return soap_closesock(soap);
  if (!s0__ReadResponse)
    return soap_closesock(soap);
  s0__ReadResponse->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);
  s0__ReadResponse->soap_get(soap, "s0:ReadResponse", "");
  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);
}
int WSDualHttpBinding_USCOREICalculatorDuplexProxy::send_Equation(const char *endpoint, const char *soap_action, _mssadh__Equation *mssadh__Equation)
{	struct soap *soap = this->soap;
	struct __tempuri__Equation soap_tmp___tempuri__Equation;
	if (endpoint)
		soap_endpoint = endpoint;
	if (soap_endpoint == NULL)
		soap_endpoint = "http://192.168.2.2:8000/ServiceModelSamples/service";
	if (soap_action == NULL)
		soap_action = "http://Microsoft.Samples.DualHttp/ICalculatorDuplex/Equation";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp___tempuri__Equation.mssadh__Equation = mssadh__Equation;
	soap_serializeheader(soap);
	soap_serialize___tempuri__Equation(soap, &soap_tmp___tempuri__Equation);
	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___tempuri__Equation(soap, &soap_tmp___tempuri__Equation, "-tempuri:Equation", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put___tempuri__Equation(soap, &soap_tmp___tempuri__Equation, "-tempuri:Equation", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	return SOAP_OK;
}
int PullPointSubscriptionBindingProxy::send_Notify_(const char *endpoint, const char *soap_action, _wsnt__Notify *wsnt__Notify)
{	struct soap *soap = this->soap;
	struct __tev__Notify_ soap_tmp___tev__Notify_;
	if (endpoint)
		soap_endpoint = endpoint;
	if (soap_action == NULL)
		soap_action = "http://docs.oasis-open.org/wsn/bw-2/PullPoint/Notify";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp___tev__Notify_.wsnt__Notify = wsnt__Notify;
	soap_set_version(soap, 2); /* SOAP1.2 */
	soap_serializeheader(soap);
	soap_serialize___tev__Notify_(soap, &soap_tmp___tev__Notify_);
	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___tev__Notify_(soap, &soap_tmp___tev__Notify_, "-tev:Notify", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put___tev__Notify_(soap, &soap_tmp___tev__Notify_, "-tev:Notify", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	return SOAP_OK;
}
コード例 #27
0
ファイル: soapwsddProxy.cpp プロジェクト: Ecro/onvifcpplib
int wsddProxy::send_ResolveMatches(const char *endpoint, const char *soap_action, struct wsdd__ResolveMatchesType *wsdd__ResolveMatches)
{	struct soap *soap = this;
	struct __wsdd__ResolveMatches soap_tmp___wsdd__ResolveMatches;
	if (endpoint)
		soap_endpoint = endpoint;
	if (soap_action == NULL)
		soap_action = "http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ResolveMatches";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp___wsdd__ResolveMatches.wsdd__ResolveMatches = wsdd__ResolveMatches;
	soap_set_version(soap, 2); /* SOAP1.2 */
	soap_serializeheader(soap);
	soap_serialize___wsdd__ResolveMatches(soap, &soap_tmp___wsdd__ResolveMatches);
	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___wsdd__ResolveMatches(soap, &soap_tmp___wsdd__ResolveMatches, "-wsdd:ResolveMatches", 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_url(soap, soap_endpoint, NULL), soap_action)
	 || soap_envelope_begin_out(soap)
	 || soap_putheader(soap)
	 || soap_body_begin_out(soap)
	 || soap_put___wsdd__ResolveMatches(soap, &soap_tmp___wsdd__ResolveMatches, "-wsdd:ResolveMatches", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	return SOAP_OK;
}
コード例 #28
0
int dpws_discoveryProxy::send_Hello(struct wsd__HelloType *wsd__Hello)
{
	struct __wsd__Hello soap_tmp___wsd__Hello;
	const char *soap_action = NULL;
	struct soap *soap = this;
	soap_action = "http://schemas.xmlsoap.org/ws/2005/04/discovery/Hello";
	soap->encodingStyle = NULL;
	soap_tmp___wsd__Hello.wsd__Hello = wsd__Hello;
	soap_begin(soap);
	soap_serializeheader(soap);

	soap_serialize___wsd__Hello(soap, &soap_tmp___wsd__Hello);
	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___wsd__Hello(soap, &soap_tmp___wsd__Hello, "-wsd:Hello", 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___wsd__Hello(soap, &soap_tmp___wsd__Hello, "-wsd:Hello", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	return SOAP_OK;
}