gsoap_2.8.86

gSOAP编译工具提供了一个SOAP/XML 关于C/C++ 语言的实现,从而让C/C++语言开发web服务或客户端程序的工作变得轻松了很多。绝大多数的C++web服务工具包提供一组API函数类库来处理特定的SOAP数据结构,这样就使得用户必须改变程序结构来适应相关的类库。与之相反,gSOAP利用编译器技术提供了一组透明化的SOAP API,并将与开发无关的SOAP实现细节相关的内容对用户隐藏起来。

 

SOAP_FMAC5 int SOAP_FMAC6 soap_recv___wsdd__ResolveMatches(struct soap *soap, struct __wsdd__ResolveMatches *_param_7)

{

soap_default___wsdd__ResolveMatches(soap, _param_7);

soap_begin(soap);

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___wsdd__ResolveMatches(soap, _param_7, "-wsdd:ResolveMatches", NULL);

if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)

soap->error = SOAP_OK;

if (soap->error

|| 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_send_SOAP_ENV__Fault_bak(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *faultcode, char *faultstring, char *faultactor, struct SOAP_ENV__Detail *detail, struct SOAP_ENV__Code *SOAP_ENV__Code, struct SOAP_ENV__Reason *SOAP_ENV__Reason, char *SOAP_ENV__Node, char *SOAP_ENV__Role, struct SOAP_ENV__Detail *SOAP_ENV__Detail)

{ struct SOAP_ENV__Fault_bak soap_tmp_SOAP_ENV__Fault_bak;

soap_begin(soap);

soap->encodingStyle = NULL;

soap_tmp_SOAP_ENV__Fault_bak.faultcode = faultcode;

soap_tmp_SOAP_ENV__Fault_bak.faultstring = faultstring;

soap_tmp_SOAP_ENV__Fault_bak.faultactor = faultactor;

soap_tmp_SOAP_ENV__Fault_bak.detail = detail;

soap_tmp_SOAP_ENV__Fault_bak.SOAP_ENV__Code = SOAP_ENV__Code;

soap_tmp_SOAP_ENV__Fault_bak.SOAP_ENV__Reason = SOAP_ENV__Reason;

soap_tmp_SOAP_ENV__Fault_bak.SOAP_ENV__Node = SOAP_ENV__Node;

soap_tmp_SOAP_ENV__Fault_bak.SOAP_ENV__Role = SOAP_ENV__Role;

soap_tmp_SOAP_ENV__Fault_bak.SOAP_ENV__Detail = SOAP_ENV__Detail;

soap_serializeheader(soap);

soap_serialize_SOAP_ENV__Fault_bak(soap, &soap_tmp_SOAP_ENV__Fault_bak);

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_SOAP_ENV__Fault_bak(soap, &soap_tmp_SOAP_ENV__Fault_bak, "SOAP-ENV:Fault-bak", 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_SOAP_ENV__Fault_bak(soap, &soap_tmp_SOAP_ENV__Fault_bak, "SOAP-ENV:Fault-bak", NULL)

|| 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_SOAP_ENV__Fault_bak(struct soap *soap, struct SOAP_ENV__Fault_bak *_param_8)

{

soap_default_SOAP_ENV__Fault_bak(soap, _param_8);

soap_begin(soap);

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_SOAP_ENV__Fault_bak(soap, _param_8, "SOAP-ENV:Fault-bak", NULL);

if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)

soap->error = SOAP_OK;

if (soap->error

|| soap_body_end_in(soap)

|| soap_envelope_end_in(soap)

|| soap_end_recv(soap))

return soap_closesock(soap);

return soap_closesock(soap);

}


评论(0)
  • fonda
    • 活跃于:2019-08-07 08:49:31
    • 发布于:2019-08-06 17:30:01
1178 次浏览
1 次下载