本文整理汇总了C++中soap_closesock函数的典型用法代码示例。如果您正苦于以下问题:C++ soap_closesock函数的具体用法?C++ soap_closesock怎么用?C++ soap_closesock使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了soap_closesock函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: soap_begin
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);
}
示例2: soap_begin
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: soap_begin
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);
}
示例4: soap_begin
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);
}
示例5: soap_begin
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);
}
示例6: soap_begin
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);
}
示例7: soap_begin
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);
}
示例8: DSL_CPE_Soap_Exit
/**
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;
}
示例9: soap_call___ns2__call
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);
}
示例10: 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);
}
示例11: soap_call___MemberServices2__GetMemberID
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);
}
示例12: soap_begin
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);
}
示例13: soap_call___ns1__GetVpdnOnlineIPByImsi
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);
}
示例14: soap_call___ns2__SendNoteInfo
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);
}
示例15: soap_begin
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);
}