int WsAttributesServiceSoapProxy::ListAttributeTypes(_ns2__ListAttributeTypes *ns2__ListAttributeTypes, _ns2__ListAttributeTypesResponse *ns2__ListAttributeTypesResponse)
{	struct soap *soap = this;
	struct __ns2__ListAttributeTypes soap_tmp___ns2__ListAttributeTypes;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://10.241.3.241:8145/WsAttributes?ver_=1.21";
	soap_action = "WsAttributes/ListAttributeTypes?ver_=1.21";
	soap->encodingStyle = NULL;
	soap_tmp___ns2__ListAttributeTypes.ns2__ListAttributeTypes = ns2__ListAttributeTypes;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns2__ListAttributeTypes(soap, &soap_tmp___ns2__ListAttributeTypes);
	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__ListAttributeTypes(soap, &soap_tmp___ns2__ListAttributeTypes, "-ns2:ListAttributeTypes", 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__ListAttributeTypes(soap, &soap_tmp___ns2__ListAttributeTypes, "-ns2:ListAttributeTypes", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns2__ListAttributeTypesResponse)
		return soap_closesock(soap);
	ns2__ListAttributeTypesResponse->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);
	ns2__ListAttributeTypesResponse->soap_get(soap, "ns2:ListAttributeTypesResponse", "");
	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 ws_USCOREaccountServiceSoapProxy::UpdateUser(_ns1__UpdateUserRequest *ns1__UpdateUserRequest, _ns1__UpdateUserResponse *ns1__UpdateUserResponse)
{	struct soap *soap = this;
	struct __ns1__UpdateUser soap_tmp___ns1__UpdateUser;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://10.173.84.202:8010/ws_account?ver_=0";
	soap_action = "ws_account/UpdateUser?ver_=0";
	soap->encodingStyle = NULL;
	soap_tmp___ns1__UpdateUser.ns1__UpdateUserRequest = ns1__UpdateUserRequest;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns1__UpdateUser(soap, &soap_tmp___ns1__UpdateUser);
	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__UpdateUser(soap, &soap_tmp___ns1__UpdateUser, "-ns1:UpdateUser", 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__UpdateUser(soap, &soap_tmp___ns1__UpdateUser, "-ns1:UpdateUser", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__UpdateUserResponse)
		return soap_closesock(soap);
	ns1__UpdateUserResponse->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__UpdateUserResponse->soap_get(soap, "ns1:UpdateUserResponse", "");
	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);
}
示例#3
0
int BESFactorySOAPBindingProxy::CreateActivity(besfactory__CreateActivityType *besfactory__CreateActivity, besfactory__CreateActivityResponseType *besfactory__CreateActivityResponse)
{	struct soap *soap = this;
	struct __besfactory__CreateActivity soap_tmp___besfactory__CreateActivity;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://localhost";
	soap_action = "";
	soap->encodingStyle = NULL;
	soap_tmp___besfactory__CreateActivity.besfactory__CreateActivity = besfactory__CreateActivity;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___besfactory__CreateActivity(soap, &soap_tmp___besfactory__CreateActivity);
	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___besfactory__CreateActivity(soap, &soap_tmp___besfactory__CreateActivity, "-besfactory:CreateActivity", "")
		 || 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___besfactory__CreateActivity(soap, &soap_tmp___besfactory__CreateActivity, "-besfactory:CreateActivity", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!besfactory__CreateActivityResponse)
		return soap_closesock(soap);
	besfactory__CreateActivityResponse->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);
	besfactory__CreateActivityResponse->soap_get(soap, "besfactory:CreateActivityResponse", "besfactory:CreateActivityResponseType");
	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 AskAFriendWSSoap12Proxy::SubmitQuestion(_ns1__SubmitQuestion *ns1__SubmitQuestion, _ns1__SubmitQuestionResponse *ns1__SubmitQuestionResponse)
{	struct soap *soap = this;
	struct __ns4__SubmitQuestion soap_tmp___ns4__SubmitQuestion;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://services.next2friends.com/n2fwebservices/askafriend.asmx";
	soap_action = "http://tempuri.org/SubmitQuestion";
	soap->encodingStyle = NULL;
	soap_tmp___ns4__SubmitQuestion.ns1__SubmitQuestion = ns1__SubmitQuestion;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns4__SubmitQuestion(soap, &soap_tmp___ns4__SubmitQuestion);
	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___ns4__SubmitQuestion(soap, &soap_tmp___ns4__SubmitQuestion, "-ns4:SubmitQuestion", "")
		 || 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___ns4__SubmitQuestion(soap, &soap_tmp___ns4__SubmitQuestion, "-ns4:SubmitQuestion", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__SubmitQuestionResponse)
		return soap_closesock(soap);
	ns1__SubmitQuestionResponse->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__SubmitQuestionResponse->soap_get(soap, "ns1:SubmitQuestionResponse", "");
	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 ContentServiceSoap12Proxy::DownloadFile(_ns1__DownloadFile *ns1__DownloadFile, _ns1__DownloadFileResponse *ns1__DownloadFileResponse)
{	struct soap *soap = this;
	struct __ns3__DownloadFile soap_tmp___ns3__DownloadFile;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://zero-k.info/ContentService.asmx";
	soap_action = "http://tempuri.org/DownloadFile";
	soap->encodingStyle = NULL;
	soap_tmp___ns3__DownloadFile.ns1__DownloadFile = ns1__DownloadFile;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns3__DownloadFile(soap, &soap_tmp___ns3__DownloadFile);
	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__DownloadFile(soap, &soap_tmp___ns3__DownloadFile, "-ns3:DownloadFile", "")
		 || 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__DownloadFile(soap, &soap_tmp___ns3__DownloadFile, "-ns3:DownloadFile", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__DownloadFileResponse)
		return soap_closesock(soap);
	ns1__DownloadFileResponse->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__DownloadFileResponse->soap_get(soap, "ns1:DownloadFileResponse", "");
	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 MemberServicesSoapProxy::GetEncryptionKey(_ns1__GetEncryptionKey *ns1__GetEncryptionKey, _ns1__GetEncryptionKeyResponse *ns1__GetEncryptionKeyResponse)
{	struct soap *soap = this;
	struct __ns2__GetEncryptionKey soap_tmp___ns2__GetEncryptionKey;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://services.next2friends.com/n2fwebservices/memberservices.asmx";
	soap_action = "http://tempuri.org/GetEncryptionKey";
	soap->encodingStyle = NULL;
	soap_tmp___ns2__GetEncryptionKey.ns1__GetEncryptionKey = ns1__GetEncryptionKey;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns2__GetEncryptionKey(soap, &soap_tmp___ns2__GetEncryptionKey);
	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__GetEncryptionKey(soap, &soap_tmp___ns2__GetEncryptionKey, "-ns2:GetEncryptionKey", "")
		 || 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__GetEncryptionKey(soap, &soap_tmp___ns2__GetEncryptionKey, "-ns2:GetEncryptionKey", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__GetEncryptionKeyResponse)
		return soap_closesock(soap);
	ns1__GetEncryptionKeyResponse->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__GetEncryptionKeyResponse->soap_get(soap, "ns1:GetEncryptionKeyResponse", "");
	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 WsDfuServiceSoapProxy::SuperfileList(_ns3__SuperfileListRequest *ns3__SuperfileListRequest, _ns3__SuperfileListResponse *ns3__SuperfileListResponse)
{	struct soap *soap = this;
	struct __ns3__SuperfileList soap_tmp___ns3__SuperfileList;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://192.168.2.203:8010/WsDfu?ver_=1.19";
	soap_action = "WsDfu/SuperfileList?ver_=1.19";
	soap->encodingStyle = NULL;
	soap_tmp___ns3__SuperfileList.ns3__SuperfileListRequest = ns3__SuperfileListRequest;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns3__SuperfileList(soap, &soap_tmp___ns3__SuperfileList);
	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__SuperfileList(soap, &soap_tmp___ns3__SuperfileList, "-ns3:SuperfileList", 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__SuperfileList(soap, &soap_tmp___ns3__SuperfileList, "-ns3:SuperfileList", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns3__SuperfileListResponse)
		return soap_closesock(soap);
	ns3__SuperfileListResponse->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);
	ns3__SuperfileListResponse->soap_get(soap, "ns3:SuperfileListResponse", "");
	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 WsTopologyServiceSoapProxy::TpXMLFile(_ns5__TpXMLFileRequest *ns5__TpXMLFileRequest, _ns5__TpXMLFileResponse *ns5__TpXMLFileResponse)
{	struct soap *soap = this;
	struct __ns5__TpXMLFile soap_tmp___ns5__TpXMLFile;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://172.16.99.134:8010/WsTopology?ver_=1.14";
	soap_action = "WsTopology/TpXMLFile?ver_=1.14";
	soap->encodingStyle = NULL;
	soap_tmp___ns5__TpXMLFile.ns5__TpXMLFileRequest = ns5__TpXMLFileRequest;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns5__TpXMLFile(soap, &soap_tmp___ns5__TpXMLFile);
	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___ns5__TpXMLFile(soap, &soap_tmp___ns5__TpXMLFile, "-ns5:TpXMLFile", 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___ns5__TpXMLFile(soap, &soap_tmp___ns5__TpXMLFile, "-ns5:TpXMLFile", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns5__TpXMLFileResponse)
		return soap_closesock(soap);
	ns5__TpXMLFileResponse->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);
	ns5__TpXMLFileResponse->soap_get(soap, "ns5:TpXMLFileResponse", "");
	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);
}
示例#9
0
/**
   Exit-Handler for CLI registered for SOAP
*/
static DSL_Error_t DSL_CPE_Soap_Exit(DSL_void_t *pContext)
{
   Soap_env_t *env = pContext;
   env->bRun = DSL_FALSE;

   /* only shutdown socket if not called inside own thread,
      otherwise it will crash if the answer should send to the calling client */
   if (env->pid != DSL_CPE_ThreadIdGet())
   {
      shutdown(env->server.m, 2);
      soap_closesock(&env->server.soap); /* close master socket and detach environment */
   }

   DSL_CPE_LockDelete(&(env->callBackSem));

   return DSL_SUCCESS;
}
示例#10
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns2__call(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns2__call *ns2__call, struct _ns2__callResponse *ns2__callResponse)
{	struct __ns2__call soap_tmp___ns2__call;
	if (!soap_endpoint)
		soap_endpoint = "http://132.228.91.6:80/ccatsida/services/AsigService";
	if (!soap_action)
		soap_action = "";
	soap->encodingStyle = NULL;
	soap_tmp___ns2__call.ns2__call = ns2__call;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns2__call(soap, &soap_tmp___ns2__call);
	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__call(soap, &soap_tmp___ns2__call, "-ns2:call", 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__call(soap, &soap_tmp___ns2__call, "-ns2:call", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns2__callResponse)
		return soap_closesock(soap);
	soap_default__ns2__callResponse(soap, ns2__callResponse);
	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__callResponse(soap, ns2__callResponse, "ns2:callResponse", "");
	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);
}
示例#11
0
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);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_call___MemberServices2__GetMemberID(struct soap *soap, const char *soap_endpoint, const char *soap_action, _MemberServices__GetMemberID *MemberServices__GetMemberID, _MemberServices__GetMemberIDResponse *MemberServices__GetMemberIDResponse)
{	struct __MemberServices2__GetMemberID soap_tmp___MemberServices2__GetMemberID;
	if (!soap_endpoint)
		soap_endpoint = "http://next2friends.com:90/MemberServices.asmx";
	if (!soap_action)
		soap_action = "http://www.next2friends.com/GetMemberID";
	soap->encodingStyle = NULL;
	soap_tmp___MemberServices2__GetMemberID.MemberServices__GetMemberID = MemberServices__GetMemberID;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___MemberServices2__GetMemberID(soap, &soap_tmp___MemberServices2__GetMemberID);
	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___MemberServices2__GetMemberID(soap, &soap_tmp___MemberServices2__GetMemberID, "-MemberServices2:GetMemberID", "")
		 || 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___MemberServices2__GetMemberID(soap, &soap_tmp___MemberServices2__GetMemberID, "-MemberServices2:GetMemberID", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!MemberServices__GetMemberIDResponse)
		return soap_closesock(soap);
	MemberServices__GetMemberIDResponse->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);
	MemberServices__GetMemberIDResponse->soap_get(soap, "MemberServices:GetMemberIDResponse", "");
	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);
}
示例#13
0
int CS8ServerV3Proxy::schedulerRefresh(_ns6__schedulerRefresh *ns6__schedulerRefresh, _ns6__MotionAndRobotsPos *ns6__MotionAndRobotsPos)
{	struct soap *soap = this;
	struct __ns6__schedulerRefresh soap_tmp___ns6__schedulerRefresh;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://192.168.1.254:5653/CS8ServerV3";
	soap->encodingStyle = NULL;
	soap_tmp___ns6__schedulerRefresh.ns6__schedulerRefresh = ns6__schedulerRefresh;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns6__schedulerRefresh(soap, &soap_tmp___ns6__schedulerRefresh);
	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___ns6__schedulerRefresh(soap, &soap_tmp___ns6__schedulerRefresh, "-ns6:schedulerRefresh", "")
		 || 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___ns6__schedulerRefresh(soap, &soap_tmp___ns6__schedulerRefresh, "-ns6:schedulerRefresh", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns6__MotionAndRobotsPos)
		return soap_closesock(soap);
	ns6__MotionAndRobotsPos->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);
	ns6__MotionAndRobotsPos->soap_get(soap, "ns6:MotionAndRobotsPos", "");
	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);
}
示例#14
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__GetVpdnOnlineIPByImsi(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__GetVpdnOnlineIPByImsi *ns1__GetVpdnOnlineIPByImsi, struct _ns1__GetVpdnOnlineIPByImsiResponse *ns1__GetVpdnOnlineIPByImsiResponse)
{	struct __ns1__GetVpdnOnlineIPByImsi soap_tmp___ns1__GetVpdnOnlineIPByImsi;
	if (!soap_endpoint)
		soap_endpoint = "http://132.228.131.134:9953/services/CVpdnIpService";
	if (!soap_action)
		soap_action = "";
	soap->encodingStyle = NULL;
	soap_tmp___ns1__GetVpdnOnlineIPByImsi.ns1__GetVpdnOnlineIPByImsi = ns1__GetVpdnOnlineIPByImsi;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns1__GetVpdnOnlineIPByImsi(soap, &soap_tmp___ns1__GetVpdnOnlineIPByImsi);
	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__GetVpdnOnlineIPByImsi(soap, &soap_tmp___ns1__GetVpdnOnlineIPByImsi, "-ns1:GetVpdnOnlineIPByImsi", 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__GetVpdnOnlineIPByImsi(soap, &soap_tmp___ns1__GetVpdnOnlineIPByImsi, "-ns1:GetVpdnOnlineIPByImsi", NULL)
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__GetVpdnOnlineIPByImsiResponse)
		return soap_closesock(soap);
	soap_default__ns1__GetVpdnOnlineIPByImsiResponse(soap, ns1__GetVpdnOnlineIPByImsiResponse);
	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__GetVpdnOnlineIPByImsiResponse(soap, ns1__GetVpdnOnlineIPByImsiResponse, "ns1:GetVpdnOnlineIPByImsiResponse", "");
	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);
}
示例#15
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns2__SendNoteInfo(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SendNoteInfo *ns1__SendNoteInfo, _ns1__SendNoteInfoResponse *ns1__SendNoteInfoResponse)
{	struct __ns2__SendNoteInfo soap_tmp___ns2__SendNoteInfo;
	if (!soap_endpoint)
		soap_endpoint = "http://localhost:8554/SHShenjiGSMModem.asmx";
	if (!soap_action)
		soap_action = "http://tempuri.org/SendNoteInfo";
	soap->encodingStyle = NULL;
	soap_tmp___ns2__SendNoteInfo.ns1__SendNoteInfo = ns1__SendNoteInfo;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns2__SendNoteInfo(soap, &soap_tmp___ns2__SendNoteInfo);
	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__SendNoteInfo(soap, &soap_tmp___ns2__SendNoteInfo, "-ns2:SendNoteInfo", "")
		 || 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__SendNoteInfo(soap, &soap_tmp___ns2__SendNoteInfo, "-ns2:SendNoteInfo", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns1__SendNoteInfoResponse)
		return soap_closesock(soap);
	ns1__SendNoteInfoResponse->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__SendNoteInfoResponse->soap_get(soap, "ns1:SendNoteInfoResponse", "");
	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);
}
示例#16
0
int CS8ServerV1Proxy::getApplications(_ns2__getApplications *ns2__getApplications, _ns2__getApplicationsResponse *ns2__getApplicationsResponse)
{	struct soap *soap = this;
	struct __ns2__getApplications soap_tmp___ns2__getApplications;
	const char *soap_action = NULL;
	if (!soap_endpoint)
		soap_endpoint = "http://192.168.1.254:5653/CS8ServerV1";
	soap->encodingStyle = NULL;
	soap_tmp___ns2__getApplications.ns2__getApplications = ns2__getApplications;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize___ns2__getApplications(soap, &soap_tmp___ns2__getApplications);
	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__getApplications(soap, &soap_tmp___ns2__getApplications, "-ns2:getApplications", "")
		 || 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__getApplications(soap, &soap_tmp___ns2__getApplications, "-ns2:getApplications", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!ns2__getApplicationsResponse)
		return soap_closesock(soap);
	ns2__getApplicationsResponse->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);
	ns2__getApplicationsResponse->soap_get(soap, "ns2:getApplicationsResponse", "");
	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);
}
示例#17
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__GetProperties(struct soap* soap,
    const char* soap_endpoint, const char* soap_action,
    _s0__GetProperties* s0__GetProperties,
    _s0__GetPropertiesResponse* s0__GetPropertiesResponse)
{
  struct __s0__GetProperties soap_tmp___s0__GetProperties;
  if (!soap_action)
    soap_action
        = "http://opcfoundation.org/webservices/XMLDA/1.0/GetProperties";
  soap->encodingStyle = NULL;
  soap_tmp___s0__GetProperties.s0__GetProperties = s0__GetProperties;
  soap_begin(soap);
  soap_serializeheader(soap);
  soap_serialize___s0__GetProperties(soap, &soap_tmp___s0__GetProperties);
  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__GetProperties(
               soap, &soap_tmp___s0__GetProperties, "-s0:GetProperties", "")
        || 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__GetProperties(
             soap, &soap_tmp___s0__GetProperties, "-s0:GetProperties", "")
      || soap_body_end_out(soap) || soap_envelope_end_out(soap)
      || soap_end_send(soap))
    return soap_closesock(soap);
  if (!s0__GetPropertiesResponse)
    return soap_closesock(soap);
  s0__GetPropertiesResponse->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__GetPropertiesResponse->soap_get(soap, "s0:GetPropertiesResponse", "");
  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);
}
示例#18
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call___s0__RtMonStart(struct soap *soap, const char *soap_endpoint, const char *soap_action, _s0__RtMonStart *s0__RtMonStart, _s0__RtMonStartResponse *s0__RtMonStartResponse)
{   struct __s0__RtMonStart soap_tmp___s0__RtMonStart;
    if (!soap_action)
        soap_action = "s0:RtMonStart";
    soap->encodingStyle = NULL;
    soap_tmp___s0__RtMonStart.s0__RtMonStart = s0__RtMonStart;
    soap_begin(soap);
    soap_serializeheader(soap);
    soap_serialize___s0__RtMonStart(soap, &soap_tmp___s0__RtMonStart);
    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__RtMonStart(soap, &soap_tmp___s0__RtMonStart, "-s0:RtMonStart", "")
                || 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__RtMonStart(soap, &soap_tmp___s0__RtMonStart, "-s0:RtMonStart", "")
            || soap_body_end_out(soap)
            || soap_envelope_end_out(soap)
            || soap_end_send(soap))
        return soap_closesock(soap);
    if (!s0__RtMonStartResponse)
        return soap_closesock(soap);
    s0__RtMonStartResponse->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__RtMonStartResponse->soap_get(soap, "s0:RtMonStartResponse", "");
    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);
}
示例#19
0
SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1___USCORE_USCOREconstruct(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct ns1___USCORE_USCOREconstructResponse &_param_2)
{	struct ns1___USCORE_USCOREconstruct soap_tmp_ns1___USCORE_USCOREconstruct;
	if (!soap_endpoint)
		soap_endpoint = "http://219.235.235.4/ws/sdk/webservice_sdk.php";
	soap->encodingStyle = NULL;
	soap_begin(soap);
	soap_serializeheader(soap);
	soap_serialize_ns1___USCORE_USCOREconstruct(soap, &soap_tmp_ns1___USCORE_USCOREconstruct);
	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___USCORE_USCOREconstruct(soap, &soap_tmp_ns1___USCORE_USCOREconstruct, "ns1:__construct", "")
		 || 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___USCORE_USCOREconstruct(soap, &soap_tmp_ns1___USCORE_USCOREconstruct, "ns1:__construct", "")
	 || soap_body_end_out(soap)
	 || soap_envelope_end_out(soap)
	 || soap_end_send(soap))
		return soap_closesock(soap);
	if (!&_param_2)
		return soap_closesock(soap);
	soap_default_ns1___USCORE_USCOREconstructResponse(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_ns1___USCORE_USCOREconstructResponse(soap, &_param_2, "ns1:__constructResponse", "");
	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;
}
示例#22
0
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;
}
示例#23
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;
}
int DoorControlBindingProxy::soap_close_socket()
{	return soap_closesock(this);
}
int AmazonS3SoapBindingService::soap_close_socket()
{	return soap_closesock(this->soap);
}
int RepositorySoapProxy::soap_close_socket()
{   return soap_closesock(this);
}
int ReceiverBindingProxy::soap_close_socket()
{	return soap_closesock(this);
}
int videooverlayService::soap_close_socket()
{	return soap_closesock(this);
}
示例#29
0
int calcProxy::soap_close_socket()
{	return soap_closesock(this);
}
示例#30
0
int dpws_discoveryProxy::soap_close_socket()
{	return soap_closesock(this);
}