You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
509 lines
21 KiB
509 lines
21 KiB
/* soapClient.cpp
|
|
Generated by gSOAP 2.8.103 for .\sendToClass.h
|
|
|
|
gSOAP XML Web services tools
|
|
Copyright (C) 2000-2020, Robert van Engelen, Genivia Inc. All Rights Reserved.
|
|
The soapcpp2 tool and its generated software are released under the GPL.
|
|
This program is released under the GPL with the additional exemption that
|
|
compiling, linking, and/or using OpenSSL is allowed.
|
|
--------------------------------------------------------------------------------
|
|
A commercial use license is available from Genivia Inc., contact@genivia.com
|
|
--------------------------------------------------------------------------------
|
|
*/
|
|
|
|
#if defined(__BORLANDC__)
|
|
#pragma option push -w-8060
|
|
#pragma option push -w-8004
|
|
#endif
|
|
#include "soapH.h"
|
|
|
|
SOAP_SOURCE_STAMP("@(#) soapClient.cpp ver 2.8.103 2020-09-03 08:53:03 GMT")
|
|
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SetMaterialStatusS(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SetMaterialStatusS *ns1__SetMaterialStatusS, _ns1__SetMaterialStatusSResponse &ns1__SetMaterialStatusSResponse)
|
|
{ if (soap_send___ns1__SetMaterialStatusS(soap, soap_endpoint, soap_action, ns1__SetMaterialStatusS) || soap_recv___ns1__SetMaterialStatusS(soap, ns1__SetMaterialStatusSResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__SetMaterialStatusS(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SetMaterialStatusS *ns1__SetMaterialStatusS)
|
|
{ struct __ns1__SetMaterialStatusS soap_tmp___ns1__SetMaterialStatusS;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/SetMaterialStatusS";
|
|
soap_tmp___ns1__SetMaterialStatusS.ns1__SetMaterialStatusS = ns1__SetMaterialStatusS;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__SetMaterialStatusS(soap, &soap_tmp___ns1__SetMaterialStatusS);
|
|
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__SetMaterialStatusS(soap, &soap_tmp___ns1__SetMaterialStatusS, "-ns1:SetMaterialStatusS", "")
|
|
|| 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__SetMaterialStatusS(soap, &soap_tmp___ns1__SetMaterialStatusS, "-ns1:SetMaterialStatusS", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__SetMaterialStatusS(struct soap *soap, _ns1__SetMaterialStatusSResponse &ns1__SetMaterialStatusSResponse)
|
|
{
|
|
ns1__SetMaterialStatusSResponse.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__SetMaterialStatusSResponse.soap_get(soap, "ns1:SetMaterialStatusSResponse", 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);
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__CreateProject(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__CreateProject *ns1__CreateProject, _ns1__CreateProjectResponse &ns1__CreateProjectResponse)
|
|
{ if (soap_send___ns1__CreateProject(soap, soap_endpoint, soap_action, ns1__CreateProject) || soap_recv___ns1__CreateProject(soap, ns1__CreateProjectResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__CreateProject(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__CreateProject *ns1__CreateProject)
|
|
{ struct __ns1__CreateProject soap_tmp___ns1__CreateProject;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/CreateProject";
|
|
soap_tmp___ns1__CreateProject.ns1__CreateProject = ns1__CreateProject;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__CreateProject(soap, &soap_tmp___ns1__CreateProject);
|
|
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__CreateProject(soap, &soap_tmp___ns1__CreateProject, "-ns1:CreateProject", "")
|
|
|| 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__CreateProject(soap, &soap_tmp___ns1__CreateProject, "-ns1:CreateProject", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__CreateProject(struct soap *soap, _ns1__CreateProjectResponse &ns1__CreateProjectResponse)
|
|
{
|
|
ns1__CreateProjectResponse.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__CreateProjectResponse.soap_get(soap, "ns1:CreateProjectResponse", 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);
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SendToClass(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SendToClass *ns1__SendToClass, _ns1__SendToClassResponse &ns1__SendToClassResponse)
|
|
{ if (soap_send___ns1__SendToClass(soap, soap_endpoint, soap_action, ns1__SendToClass) || soap_recv___ns1__SendToClass(soap, ns1__SendToClassResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__SendToClass(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SendToClass *ns1__SendToClass)
|
|
{ struct __ns1__SendToClass soap_tmp___ns1__SendToClass;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/SendToClass";
|
|
soap_tmp___ns1__SendToClass.ns1__SendToClass = ns1__SendToClass;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__SendToClass(soap, &soap_tmp___ns1__SendToClass);
|
|
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__SendToClass(soap, &soap_tmp___ns1__SendToClass, "-ns1:SendToClass", "")
|
|
|| 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__SendToClass(soap, &soap_tmp___ns1__SendToClass, "-ns1:SendToClass", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__SendToClass(struct soap *soap, _ns1__SendToClassResponse &ns1__SendToClassResponse)
|
|
{
|
|
ns1__SendToClassResponse.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__SendToClassResponse.soap_get(soap, "ns1:SendToClassResponse", 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);
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__DeleteClass(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__DeleteClass *ns1__DeleteClass, _ns1__DeleteClassResponse &ns1__DeleteClassResponse)
|
|
{ if (soap_send___ns1__DeleteClass(soap, soap_endpoint, soap_action, ns1__DeleteClass) || soap_recv___ns1__DeleteClass(soap, ns1__DeleteClassResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__DeleteClass(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__DeleteClass *ns1__DeleteClass)
|
|
{ struct __ns1__DeleteClass soap_tmp___ns1__DeleteClass;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/DeleteClass";
|
|
soap_tmp___ns1__DeleteClass.ns1__DeleteClass = ns1__DeleteClass;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__DeleteClass(soap, &soap_tmp___ns1__DeleteClass);
|
|
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__DeleteClass(soap, &soap_tmp___ns1__DeleteClass, "-ns1:DeleteClass", "")
|
|
|| 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__DeleteClass(soap, &soap_tmp___ns1__DeleteClass, "-ns1:DeleteClass", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__DeleteClass(struct soap *soap, _ns1__DeleteClassResponse &ns1__DeleteClassResponse)
|
|
{
|
|
ns1__DeleteClassResponse.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__DeleteClassResponse.soap_get(soap, "ns1:DeleteClassResponse", 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);
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SetMaterialStatusS_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SetMaterialStatusS *ns1__SetMaterialStatusS, _ns1__SetMaterialStatusSResponse &ns1__SetMaterialStatusSResponse)
|
|
{ if (soap_send___ns1__SetMaterialStatusS_(soap, soap_endpoint, soap_action, ns1__SetMaterialStatusS) || soap_recv___ns1__SetMaterialStatusS_(soap, ns1__SetMaterialStatusSResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__SetMaterialStatusS_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SetMaterialStatusS *ns1__SetMaterialStatusS)
|
|
{ struct __ns1__SetMaterialStatusS_ soap_tmp___ns1__SetMaterialStatusS_;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/SetMaterialStatusS";
|
|
soap_tmp___ns1__SetMaterialStatusS_.ns1__SetMaterialStatusS = ns1__SetMaterialStatusS;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__SetMaterialStatusS_(soap, &soap_tmp___ns1__SetMaterialStatusS_);
|
|
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__SetMaterialStatusS_(soap, &soap_tmp___ns1__SetMaterialStatusS_, "-ns1:SetMaterialStatusS", "")
|
|
|| 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__SetMaterialStatusS_(soap, &soap_tmp___ns1__SetMaterialStatusS_, "-ns1:SetMaterialStatusS", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__SetMaterialStatusS_(struct soap *soap, _ns1__SetMaterialStatusSResponse &ns1__SetMaterialStatusSResponse)
|
|
{
|
|
ns1__SetMaterialStatusSResponse.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__SetMaterialStatusSResponse.soap_get(soap, "ns1:SetMaterialStatusSResponse", 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);
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__CreateProject_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__CreateProject *ns1__CreateProject, _ns1__CreateProjectResponse &ns1__CreateProjectResponse)
|
|
{ if (soap_send___ns1__CreateProject_(soap, soap_endpoint, soap_action, ns1__CreateProject) || soap_recv___ns1__CreateProject_(soap, ns1__CreateProjectResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__CreateProject_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__CreateProject *ns1__CreateProject)
|
|
{ struct __ns1__CreateProject_ soap_tmp___ns1__CreateProject_;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/CreateProject";
|
|
soap_tmp___ns1__CreateProject_.ns1__CreateProject = ns1__CreateProject;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__CreateProject_(soap, &soap_tmp___ns1__CreateProject_);
|
|
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__CreateProject_(soap, &soap_tmp___ns1__CreateProject_, "-ns1:CreateProject", "")
|
|
|| 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__CreateProject_(soap, &soap_tmp___ns1__CreateProject_, "-ns1:CreateProject", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__CreateProject_(struct soap *soap, _ns1__CreateProjectResponse &ns1__CreateProjectResponse)
|
|
{
|
|
ns1__CreateProjectResponse.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__CreateProjectResponse.soap_get(soap, "ns1:CreateProjectResponse", 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);
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__SendToClass_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SendToClass *ns1__SendToClass, _ns1__SendToClassResponse &ns1__SendToClassResponse)
|
|
{ if (soap_send___ns1__SendToClass_(soap, soap_endpoint, soap_action, ns1__SendToClass) || soap_recv___ns1__SendToClass_(soap, ns1__SendToClassResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__SendToClass_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__SendToClass *ns1__SendToClass)
|
|
{ struct __ns1__SendToClass_ soap_tmp___ns1__SendToClass_;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/SendToClass";
|
|
soap_tmp___ns1__SendToClass_.ns1__SendToClass = ns1__SendToClass;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__SendToClass_(soap, &soap_tmp___ns1__SendToClass_);
|
|
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__SendToClass_(soap, &soap_tmp___ns1__SendToClass_, "-ns1:SendToClass", "")
|
|
|| 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__SendToClass_(soap, &soap_tmp___ns1__SendToClass_, "-ns1:SendToClass", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__SendToClass_(struct soap *soap, _ns1__SendToClassResponse &ns1__SendToClassResponse)
|
|
{
|
|
ns1__SendToClassResponse.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__SendToClassResponse.soap_get(soap, "ns1:SendToClassResponse", 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);
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__DeleteClass_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__DeleteClass *ns1__DeleteClass, _ns1__DeleteClassResponse &ns1__DeleteClassResponse)
|
|
{ if (soap_send___ns1__DeleteClass_(soap, soap_endpoint, soap_action, ns1__DeleteClass) || soap_recv___ns1__DeleteClass_(soap, ns1__DeleteClassResponse))
|
|
return soap->error;
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__DeleteClass_(struct soap *soap, const char *soap_endpoint, const char *soap_action, _ns1__DeleteClass *ns1__DeleteClass)
|
|
{ struct __ns1__DeleteClass_ soap_tmp___ns1__DeleteClass_;
|
|
if (soap_endpoint == NULL)
|
|
soap_endpoint = "http://192.168.1.137:8090/ErpWebService.asmx";
|
|
if (soap_action == NULL)
|
|
soap_action = "http://tempuri.org/DeleteClass";
|
|
soap_tmp___ns1__DeleteClass_.ns1__DeleteClass = ns1__DeleteClass;
|
|
soap_begin(soap);
|
|
soap->encodingStyle = NULL; /* use SOAP literal style */
|
|
soap_serializeheader(soap);
|
|
soap_serialize___ns1__DeleteClass_(soap, &soap_tmp___ns1__DeleteClass_);
|
|
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__DeleteClass_(soap, &soap_tmp___ns1__DeleteClass_, "-ns1:DeleteClass", "")
|
|
|| 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__DeleteClass_(soap, &soap_tmp___ns1__DeleteClass_, "-ns1:DeleteClass", "")
|
|
|| soap_body_end_out(soap)
|
|
|| soap_envelope_end_out(soap)
|
|
|| soap_end_send(soap))
|
|
return soap_closesock(soap);
|
|
return SOAP_OK;
|
|
}
|
|
|
|
SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__DeleteClass_(struct soap *soap, _ns1__DeleteClassResponse &ns1__DeleteClassResponse)
|
|
{
|
|
ns1__DeleteClassResponse.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__DeleteClassResponse.soap_get(soap, "ns1:DeleteClassResponse", 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);
|
|
}
|
|
|
|
#if defined(__BORLANDC__)
|
|
#pragma option pop
|
|
#pragma option pop
|
|
#endif
|
|
|
|
/* End of soapClient.cpp */
|