当前位置: 首页>>代码示例>>C++>>正文


C++ soap_envelope_end_out函数代码示例

本文整理汇总了C++中soap_envelope_end_out函数的典型用法代码示例。如果您正苦于以下问题:C++ soap_envelope_end_out函数的具体用法?C++ soap_envelope_end_out怎么用?C++ soap_envelope_end_out使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了soap_envelope_end_out函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: soap_call_ns__add

SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__add(struct soap *soap, const char *soap_endpoint, const char *soap_action, double a, double b, double *result)
{	struct ns__add soap_tmp_ns__add;
	struct ns__addResponse *soap_tmp_ns__addResponse;
	if (!soap_endpoint)
		soap_endpoint = "localhost:8000";
	soap->encodingStyle = NULL;
	soap_tmp_ns__add.a = a;
	soap_tmp_ns__add.b = b;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ns__add(soap, &soap_tmp_ns__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_ns__add(soap, &soap_tmp_ns__add, "ns: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_ns__add(soap, &soap_tmp_ns__add, "ns:add", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	soap_default_double(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__addResponse = soap_get_ns__addResponse(soap, NULL, "ns:addResponse", "");
	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__addResponse->result)
		*result = *soap_tmp_ns__addResponse->result;
	return soap_closesock(soap);
}
开发者ID:sunilgandhi007,项目名称:cl2programs,代码行数:53,代码来源:soapClient.cpp

示例2: soap_begin

int UPCBWebServiceSoapProxy::AddProgram(const char *endpoint, const char *soap_action, _ns1__AddProgram *ns1__AddProgram, _ns1__AddProgramResponse *ns1__AddProgramResponse)
{   struct soap *soap = this;
    struct __ns1__AddProgram soap_tmp___ns1__AddProgram;
    if (endpoint)
        soap_endpoint = endpoint;
    if (!soap_endpoint)
        soap_endpoint = "http://localhost:49865/UPCBWebService.asmx";
    if (!soap_action)
        soap_action = "http://tempuri.org/AddProgram";
    soap->encodingStyle = NULL;
    soap_tmp___ns1__AddProgram.ns1__AddProgram = ns1__AddProgram;
    soap_begin(soap);
    soap_serializeheader(soap);
    soap_serialize___ns1__AddProgram(soap, &soap_tmp___ns1__AddProgram);
    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__AddProgram(soap, &soap_tmp___ns1__AddProgram, "-ns1:AddProgram", 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__AddProgram(soap, &soap_tmp___ns1__AddProgram, "-ns1:AddProgram", NULL)
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    if (!ns1__AddProgramResponse)
        return soap_closesock(soap);
    ns1__AddProgramResponse->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__AddProgramResponse->soap_get(soap, "ns1:AddProgramResponse", "");
    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);
}
开发者ID:bobi-rakova,项目名称:Agilart-Run-Time,代码行数:53,代码来源:soapUPCBWebServiceSoapProxy.cpp

示例3: soap_call_ns2__oncall

SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns2__oncall(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *loggeduser, char **salutation)
{	struct ns2__oncall soap_tmp_ns2__oncall;
	struct ns2__oncallResponse *soap_tmp_ns2__oncallResponse;
	if (!soap_endpoint) soap_endpoint = "https://server.hostname/webservice.php";
	if (!soap_action) soap_action = "http://schemas.xmlsoap.org/soap/envelope/#Backend#oncall";
	soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/";
	soap_tmp_ns2__oncall.loggeduser = loggeduser;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ns2__oncall(soap, &soap_tmp_ns2__oncall);
	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__oncall(soap, &soap_tmp_ns2__oncall, "ns2:oncall", 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_ns2__oncall(soap, &soap_tmp_ns2__oncall, "ns2:oncall", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!salutation)
		return soap_closesock(soap);
	*salutation = 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_ns2__oncallResponse = soap_get_ns2__oncallResponse(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);
	if (salutation && soap_tmp_ns2__oncallResponse->salutation)
		*salutation = *soap_tmp_ns2__oncallResponse->salutation;
	return soap_closesock(soap);
}
开发者ID:biancini,项目名称:Shibboleth-Authentication,代码行数:53,代码来源:soapClient.c

示例4: soap_begin

int GeoIPServiceSoap12Proxy::GetGeoIPContext(const char *endpoint, const char *soap_action, _ns1__GetGeoIPContext *ns1__GetGeoIPContext, _ns1__GetGeoIPContextResponse *ns1__GetGeoIPContextResponse)
{	struct soap *soap = this;
	struct __ns3__GetGeoIPContext soap_tmp___ns3__GetGeoIPContext;
	if (endpoint)
		soap_endpoint = endpoint;
	if (!soap_endpoint)
		soap_endpoint = "http://www.webservicex.net/geoipservice.asmx";
	if (!soap_action)
		soap_action = "http://www.webservicex.net/GetGeoIPContext";
	soap->encodingStyle = NULL;
	soap_tmp___ns3__GetGeoIPContext.ns1__GetGeoIPContext = ns1__GetGeoIPContext;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns3__GetGeoIPContext(soap, &soap_tmp___ns3__GetGeoIPContext);
	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__GetGeoIPContext(soap, &soap_tmp___ns3__GetGeoIPContext, "-ns3:GetGeoIPContext", 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__GetGeoIPContext(soap, &soap_tmp___ns3__GetGeoIPContext, "-ns3:GetGeoIPContext", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__GetGeoIPContextResponse)
		return soap_closesock(soap);
	ns1__GetGeoIPContextResponse->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__GetGeoIPContextResponse->soap_get(soap, "ns1:GetGeoIPContextResponse", "");
	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);
}
开发者ID:DemofiloVizuete,项目名称:gSOAP,代码行数:53,代码来源:soapGeoIPServiceSoap12Proxy.cpp

示例5: soap_call_ns__getSysSysInfo

SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__getSysSysInfo(struct soap *soap, const char *soap_endpoint, const char *soap_action, void *_param_11, SysInfo_t *ret)
{	struct ns__getSysSysInfo soap_tmp_ns__getSysSysInfo;
	struct ns__getSysSysInfoResponse *soap_tmp_ns__getSysSysInfoResponse;
	if (soap_endpoint == NULL)
		soap_endpoint = "https://localhost:8085";
	soap_begin(soap);
	soap->encodingStyle = "";
	soap_tmp_ns__getSysSysInfo._param_11 = _param_11;
	soap_serializeheader(soap);
	soap_serialize_ns__getSysSysInfo(soap, &soap_tmp_ns__getSysSysInfo);
	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__getSysSysInfo(soap, &soap_tmp_ns__getSysSysInfo, "ns:getSysSysInfo", 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__getSysSysInfo(soap, &soap_tmp_ns__getSysSysInfo, "ns:getSysSysInfo", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ret)
		return soap_closesock(soap);
	ret->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);
	if (soap_recv_fault(soap, 1))
		return soap->error;
	soap_tmp_ns__getSysSysInfoResponse = soap_get_ns__getSysSysInfoResponse(soap, NULL, "", NULL);
	if (!soap_tmp_ns__getSysSysInfoResponse || 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 (ret && soap_tmp_ns__getSysSysInfoResponse->ret)
		*ret = *soap_tmp_ns__getSysSysInfoResponse->ret;
	return soap_closesock(soap);
}
开发者ID:eslinux,项目名称:Windows,代码行数:53,代码来源:soapClient.cpp

示例6: soap_call___zoomws__GetLocalNumbers_

SOAP_FMAC5 int SOAP_FMAC6 soap_call___zoomws__GetLocalNumbers_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _zoomws__GetLocalNumbers *zoomws__GetLocalNumbers, _zoomws__GetLocalNumbersResponse *zoomws__GetLocalNumbersResponse)
{	struct __zoomws__GetLocalNumbers_ soap_tmp___zoomws__GetLocalNumbers_;
	if (!soap_endpoint)
		soap_endpoint = "http://localhost/zoomservice/ZoomWebService.asmx";
	if (!soap_action)
		soap_action = "http://tempuri.org/GetLocalNumbers";
	soap->encodingStyle = NULL;
	soap_tmp___zoomws__GetLocalNumbers_.zoomws__GetLocalNumbers = zoomws__GetLocalNumbers;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___zoomws__GetLocalNumbers_(soap, &soap_tmp___zoomws__GetLocalNumbers_);
	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___zoomws__GetLocalNumbers_(soap, &soap_tmp___zoomws__GetLocalNumbers_, "-zoomws:GetLocalNumbers", "")
		 || 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___zoomws__GetLocalNumbers_(soap, &soap_tmp___zoomws__GetLocalNumbers_, "-zoomws:GetLocalNumbers", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!zoomws__GetLocalNumbersResponse)
		return soap_closesock(soap);
	zoomws__GetLocalNumbersResponse->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);
	zoomws__GetLocalNumbersResponse->soap_get(soap, "zoomws:GetLocalNumbersResponse", "");
	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);
}
开发者ID:Skier,项目名称:vault_repo,代码行数:53,代码来源:zoomwsClient.cpp

示例7: soap_begin

int GlobalWeatherSoapProxy::GetCitiesByCountry_(const char *endpoint, const char *soap_action, _ns1__GetCitiesByCountry *ns1__GetCitiesByCountry, _ns1__GetCitiesByCountryResponse &ns1__GetCitiesByCountryResponse)
{	struct soap *soap = this;
	struct __ns1__GetCitiesByCountry_ soap_tmp___ns1__GetCitiesByCountry_;
	if (endpoint)
		soap_endpoint = endpoint;
	if (soap_endpoint == NULL)
		soap_endpoint = "http://www.webservicex.net/globalweather.asmx";
	if (soap_action == NULL)
		soap_action = "http://www.webserviceX.NET/GetCitiesByCountry";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp___ns1__GetCitiesByCountry_.ns1__GetCitiesByCountry = ns1__GetCitiesByCountry;
	soap_serializeheader(soap);
	soap_serialize___ns1__GetCitiesByCountry_(soap, &soap_tmp___ns1__GetCitiesByCountry_);
	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__GetCitiesByCountry_(soap, &soap_tmp___ns1__GetCitiesByCountry_, "-ns1:GetCitiesByCountry", 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__GetCitiesByCountry_(soap, &soap_tmp___ns1__GetCitiesByCountry_, "-ns1:GetCitiesByCountry", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!&ns1__GetCitiesByCountryResponse)
		return soap_closesock(soap);
	ns1__GetCitiesByCountryResponse.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__GetCitiesByCountryResponse.soap_get(soap, "ns1:GetCitiesByCountryResponse", 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);
}
开发者ID:AndreaAcanfora,项目名称:Weather-Soap-c-plus-plus,代码行数:53,代码来源:soapGlobalWeatherSoapProxy.cpp

示例8: soap_call_pmns1__pmConnexion

SOAP_FMAC5 int SOAP_FMAC6 soap_call_pmns1__pmConnexion(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *login, char *password, char *database, struct pmns1__pmConnexionResponse *_param_1)
{	struct pmns1__pmConnexion soap_tmp_pmns1__pmConnexion;
	if (!soap_endpoint)
		soap_endpoint = "https://localhost";
	if (!soap_action)
		soap_action = "urn:PygmalionAction";
	soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/";
	soap_tmp_pmns1__pmConnexion.login = login;
	soap_tmp_pmns1__pmConnexion.password = password;
	soap_tmp_pmns1__pmConnexion.database = database;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_pmns1__pmConnexion(soap, &soap_tmp_pmns1__pmConnexion);
	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_pmns1__pmConnexion(soap, &soap_tmp_pmns1__pmConnexion, "pmns1:pmConnexion", "")
		 || 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_pmns1__pmConnexion(soap, &soap_tmp_pmns1__pmConnexion, "pmns1:pmConnexion", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	soap_default_pmns1__pmConnexionResponse(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_pmns1__pmConnexionResponse(soap, _param_1, "pmns1:pmConnexionResponse", "");
	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);
}
开发者ID:fdsea33,项目名称:pygmalion,代码行数:53,代码来源:pmClient.c

示例9: soap_begin

int CRAB_ProxySOAPProxy::getTaskStatus(ns1__getTaskStatusType *getTaskStatusRequest, struct ns1__getTaskStatusResponse &_param_3)
{	struct soap *soap = this;
	struct ns1__getTaskStatus soap_tmp_ns1__getTaskStatus;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://www.example.org/";
	soap_action = "http://www.example.org/CRAB-Proxy/getTaskStatus";
	soap->encodingStyle = NULL;
	soap_tmp_ns1__getTaskStatus.getTaskStatusRequest = getTaskStatusRequest;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ns1__getTaskStatus(soap, &soap_tmp_ns1__getTaskStatus);
	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__getTaskStatus(soap, &soap_tmp_ns1__getTaskStatus, "ns1:getTaskStatus", "")
		 || 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__getTaskStatus(soap, &soap_tmp_ns1__getTaskStatus, "ns1:getTaskStatus", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	soap_default_ns1__getTaskStatusResponse(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_ns1__getTaskStatusResponse(soap, &_param_3, "ns1:getTaskStatusResponse", "");
	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);
}
开发者ID:bbockelm,项目名称:CRAB,代码行数:52,代码来源:soapCRAB_ProxySOAPProxy.cpp

示例10: soap_call_ns__getImage

SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns__getImage(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *name, ns__Data &image)
{	struct ns__getImage soap_tmp_ns__getImage;
	struct ns__getImageResponse *soap_tmp_ns__getImageResponse;
	if (soap_endpoint == NULL)
		soap_endpoint = "https://localhost:8085";
	soap_begin(soap);
	soap->encodingStyle = "";
	soap_tmp_ns__getImage.name = name;
	soap_serializeheader(soap);
	soap_serialize_ns__getImage(soap, &soap_tmp_ns__getImage);
	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__getImage(soap, &soap_tmp_ns__getImage, "ns:getImage", 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__getImage(soap, &soap_tmp_ns__getImage, "ns:getImage", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!&image)
		return soap_closesock(soap);
	image.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);
	if (soap_recv_fault(soap, 1))
		return soap->error;
	soap_tmp_ns__getImageResponse = soap_get_ns__getImageResponse(soap, NULL, "", NULL);
	if (!soap_tmp_ns__getImageResponse || 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);
	image = soap_tmp_ns__getImageResponse->image;
	return soap_closesock(soap);
}
开发者ID:eslinux,项目名称:Windows,代码行数:52,代码来源:soapClient.cpp

示例11: soap_call_oph__oph_notify

SOAP_FMAC5 int SOAP_FMAC6 soap_call_oph__oph_notify(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *oph_notify_data, char *oph_notify_json, long *oph_notify_response)
{	struct oph__oph_notify soap_tmp_oph__oph_notify;
	struct oph__oph_notifyResponse *soap_tmp_oph__oph_notifyResponse;
	if (soap_action == NULL)
		soap_action = "";
	soap_tmp_oph__oph_notify.oph_notify_data = oph_notify_data;
	soap_tmp_oph__oph_notify.oph_notify_json = oph_notify_json;
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_serializeheader(soap);
	soap_serialize_oph__oph_notify(soap, &soap_tmp_oph__oph_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_oph__oph_notify(soap, &soap_tmp_oph__oph_notify, "oph:oph-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_oph__oph_notify(soap, &soap_tmp_oph__oph_notify, "oph:oph-notify", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!oph_notify_response)
		return soap_closesock(soap);
	soap_default_xsd__int(soap, oph_notify_response);
	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_oph__oph_notifyResponse = soap_get_oph__oph_notifyResponse(soap, NULL, "oph:oph-notifyResponse", NULL);
	if (!soap_tmp_oph__oph_notifyResponse || 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 (oph_notify_response && soap_tmp_oph__oph_notifyResponse->oph_notify_response)
		*oph_notify_response = *soap_tmp_oph__oph_notifyResponse->oph_notify_response;
	return soap_closesock(soap);
}
开发者ID:OphidiaBigData,项目名称:ophidia-server,代码行数:52,代码来源:soapClient.c

示例12: soap_begin

int DisplayBindingProxy::DeletePaneConfiguration(const char *endpoint, const char *soap_action, _tls__DeletePaneConfiguration *tls__DeletePaneConfiguration, _tls__DeletePaneConfigurationResponse *tls__DeletePaneConfigurationResponse)
{	struct soap *soap = this;
	struct __tls__DeletePaneConfiguration soap_tmp___tls__DeletePaneConfiguration;
	if (endpoint)
		soap_endpoint = endpoint;
	if (soap_action == NULL)
		soap_action = "http://www.onvif.org/ver10/display/wsdl/DeletePaneConfiguration";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp___tls__DeletePaneConfiguration.tls__DeletePaneConfiguration = tls__DeletePaneConfiguration;
	soap_set_version(soap, 2); /* SOAP1.2 */
	soap_serializeheader(soap);
	soap_serialize___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration);
	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___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration, "-tls:DeletePaneConfiguration", 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___tls__DeletePaneConfiguration(soap, &soap_tmp___tls__DeletePaneConfiguration, "-tls:DeletePaneConfiguration", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!tls__DeletePaneConfigurationResponse)
		return soap_closesock(soap);
	tls__DeletePaneConfigurationResponse->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);
	tls__DeletePaneConfigurationResponse->soap_get(soap, "tls:DeletePaneConfigurationResponse", "");
	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);
}
开发者ID:Ecro,项目名称:onvifcpplib,代码行数:52,代码来源:soapDisplayBindingProxy.cpp

示例13: soap_begin

int PullPointSubscriptionBindingProxy::GetCurrentMessage(const char *endpoint, const char *soap_action, _wsnt__GetCurrentMessage *wsnt__GetCurrentMessage, _wsnt__GetCurrentMessageResponse *wsnt__GetCurrentMessageResponse)
{	struct soap *soap = this->soap;
	struct __tev__GetCurrentMessage soap_tmp___tev__GetCurrentMessage;
	if (endpoint)
		soap_endpoint = endpoint;
	if (soap_action == NULL)
		soap_action = "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest";
	soap_begin(soap);
	soap->encodingStyle = NULL;
	soap_tmp___tev__GetCurrentMessage.wsnt__GetCurrentMessage = wsnt__GetCurrentMessage;
	soap_set_version(soap, 2); /* SOAP1.2 */
	soap_serializeheader(soap);
	soap_serialize___tev__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage);
	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__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage, "-tev:GetCurrentMessage", 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__GetCurrentMessage(soap, &soap_tmp___tev__GetCurrentMessage, "-tev:GetCurrentMessage", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!wsnt__GetCurrentMessageResponse)
		return soap_closesock(soap);
	wsnt__GetCurrentMessageResponse->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);
	wsnt__GetCurrentMessageResponse->soap_get(soap, "wsnt:GetCurrentMessageResponse", "");
	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);
}
开发者ID:Sufi-Al-Hussaini,项目名称:gsoap-onvif,代码行数:52,代码来源:soapPullPointSubscriptionBindingProxy.cpp

示例14: soap_call_ns__CardCheck

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);
}
开发者ID:iceleeyo,项目名称:CardProject,代码行数:52,代码来源:soapClient.cpp

示例15: soap_call_pmns1__pmSelect

SOAP_FMAC5 int SOAP_FMAC6 soap_call_pmns1__pmSelect(struct soap *soap, const char *soap_endpoint, const char *soap_action, int id, char *query, struct pmns1__pmSelectResponse *_param_2)
{	struct pmns1__pmSelect soap_tmp_pmns1__pmSelect;
	if (!soap_endpoint)
		soap_endpoint = "https://localhost";
	if (!soap_action)
		soap_action = "urn:PygmalionAction";
	soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/";
	soap_tmp_pmns1__pmSelect.id = id;
	soap_tmp_pmns1__pmSelect.query = query;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_pmns1__pmSelect(soap, &soap_tmp_pmns1__pmSelect);
	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_pmns1__pmSelect(soap, &soap_tmp_pmns1__pmSelect, "pmns1:pmSelect", "")
		 || 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_pmns1__pmSelect(soap, &soap_tmp_pmns1__pmSelect, "pmns1:pmSelect", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	soap_default_pmns1__pmSelectResponse(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_pmns1__pmSelectResponse(soap, _param_2, "pmns1:pmSelectResponse", "");
	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);
}
开发者ID:fdsea33,项目名称:pygmalion,代码行数:52,代码来源:pmClient.c


注:本文中的soap_envelope_end_out函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。