soapServer
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
if (soap->error)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__ProbeMatches(struct soap *soap)
{ struct __wsdd__ProbeMatches soap_tmp___wsdd__ProbeMatches;
if (soap->error)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Resolve(struct soap *soap)
{ struct __wsdd__Resolve soap_tmp___wsdd__Resolve;
return soap_serve___ns1__Bye(soap);
if (!soap_match_tag(soap, soap->tag, "tdn:Probe"))
return soap_serve___ns2__Probe(soap);
return soap->error = SOAP_NO_METHOD;
1) GPL or 2) Genivia's license for commercial use.
This program is released under the GPL with the additional exemption that
compiling, linking, and/or using OpenSSL is allowed.
{
soap_peek_element(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Hello"))
return soap_serve___wsdd__Hello(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Bye"))
printf("soap_serve___wsdd__ProbeMatches\n");
soap_default___wsdd__ProbeMatches(soap, &soap_tmp___wsdd__ProbeMatches);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__ProbeMatches(soap, &soap_tmp___wsdd__ProbeMatches, "-wsdd:ProbeMatches", NULL))
return soap_serve___wsdd__ProbeMatches(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Resolve"))
return soap_serve___wsdd__Resolve(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:ResolveMatches"))
}
#endif
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Hello(struct soap *soap)
{ struct __wsdd__Hello soap_tmp___wsdd__Hello;
soap_default___wsdd__Hello(soap, &soap_tmp___wsdd__Hello);
soap_default___wsdd__Probe(soap, &soap_tmp___wsdd__Probe);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Probe(soap, &soap_tmp___wsdd__Probe, "-wsdd:Probe", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Bye(soap, soap_tmp___wsdd__Bye.wsdd__Bye);
soap_default___wsdd__Resolve(soap, &soap_tmp___wsdd__Resolve);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Resolve(soap, &soap_tmp___wsdd__Resolve, "-wsdd:Resolve", NULL))
/* soapServer.c
Generated by gSOAP 2.8.8 from onvif.h
Copyright(C) 2000-2012, Robert van Engelen, Genivia Inc. All Rights Reserved.
The generated code is released under one of the following licenses:
return soap_serve___wsdd__ResolveMatches(soap);
if (!soap_match_tag(soap, soap->tag, "tdn:Hello"))
return soap_serve___ns1__Hello(soap);
if (!soap_match_tag(soap, soap->tag, "tdn:Bye"))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Resolve(soap, soap_tmp___wsdd__Resolve.wsdd__Resolve);
soap->keep_alive = 0;
#endif
if (soap_begin_serve(soap))
{ if (soap->error >= SOAP_STOP)
continue;
return soap->error;
}
if (soap_serve_request(soap) || (soap->fserveloop && soap->fserveloop(soap)))
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Hello(soap, &soap_tmp___wsdd__Hello, "-wsdd:Hello", NULL))
return soap->error;
if (soap_body_end_in(soap)
if (soap->error)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Probe(struct soap *soap)
{ struct __wsdd__Probe soap_tmp___wsdd__Probe;
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Hello(soap, soap_tmp___wsdd__Hello.wsdd__Hello);
if (soap->error)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Bye(struct soap *soap)ห้องสมุดไป่ตู้
{ struct __wsdd__Bye soap_tmp___wsdd__Bye;
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Probe(soap, soap_tmp___wsdd__Probe.wsdd__Probe);
{
#ifdef WITH_FASTCGI
soap_send_fault(soap);
#else
return soap_send_fault(soap);
#endif
}
#ifdef WITH_FASTCGI
soap_destroy(soap);
soap_end(soap);
if (soap->error)
soap_default___wsdd__Bye(soap, &soap_tmp___wsdd__Bye);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Bye(soap, &soap_tmp___wsdd__Bye, "-wsdd:Bye", NULL))
*/
#if defined(__BORLANDC__)
#pragma option push -w-8060
#pragma option push -w-8004
#endif
#include "soapH.h"
#ifdef __cplusplus
extern "C" {
#endif
SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.8.8 2012-11-11 03:45:17 GMT")
} while (1);
#else
} while (soap->keep_alive);
#endif
return SOAP_OK;
}
#ifndef WITH_NOSERVEREQUEST
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap)
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__ProbeMatches(soap, soap_tmp___wsdd__ProbeMatches.wsdd__ProbeMatches);
return soap_serve___wsdd__Bye(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Probe"))
return soap_serve___wsdd__Probe(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:ProbeMatches"))
SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap)
{
#ifndef WITH_FASTCGI
unsigned int k = soap->max_keep_alive;
#endif
do
{
#ifndef WITH_FASTCGI
if (soap->max_keep_alive > 0 && !--k)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__ProbeMatches(struct soap *soap)
{ struct __wsdd__ProbeMatches soap_tmp___wsdd__ProbeMatches;
if (soap->error)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Resolve(struct soap *soap)
{ struct __wsdd__Resolve soap_tmp___wsdd__Resolve;
return soap_serve___ns1__Bye(soap);
if (!soap_match_tag(soap, soap->tag, "tdn:Probe"))
return soap_serve___ns2__Probe(soap);
return soap->error = SOAP_NO_METHOD;
1) GPL or 2) Genivia's license for commercial use.
This program is released under the GPL with the additional exemption that
compiling, linking, and/or using OpenSSL is allowed.
{
soap_peek_element(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Hello"))
return soap_serve___wsdd__Hello(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Bye"))
printf("soap_serve___wsdd__ProbeMatches\n");
soap_default___wsdd__ProbeMatches(soap, &soap_tmp___wsdd__ProbeMatches);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__ProbeMatches(soap, &soap_tmp___wsdd__ProbeMatches, "-wsdd:ProbeMatches", NULL))
return soap_serve___wsdd__ProbeMatches(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Resolve"))
return soap_serve___wsdd__Resolve(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:ResolveMatches"))
}
#endif
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Hello(struct soap *soap)
{ struct __wsdd__Hello soap_tmp___wsdd__Hello;
soap_default___wsdd__Hello(soap, &soap_tmp___wsdd__Hello);
soap_default___wsdd__Probe(soap, &soap_tmp___wsdd__Probe);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Probe(soap, &soap_tmp___wsdd__Probe, "-wsdd:Probe", NULL))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Bye(soap, soap_tmp___wsdd__Bye.wsdd__Bye);
soap_default___wsdd__Resolve(soap, &soap_tmp___wsdd__Resolve);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Resolve(soap, &soap_tmp___wsdd__Resolve, "-wsdd:Resolve", NULL))
/* soapServer.c
Generated by gSOAP 2.8.8 from onvif.h
Copyright(C) 2000-2012, Robert van Engelen, Genivia Inc. All Rights Reserved.
The generated code is released under one of the following licenses:
return soap_serve___wsdd__ResolveMatches(soap);
if (!soap_match_tag(soap, soap->tag, "tdn:Hello"))
return soap_serve___ns1__Hello(soap);
if (!soap_match_tag(soap, soap->tag, "tdn:Bye"))
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Resolve(soap, soap_tmp___wsdd__Resolve.wsdd__Resolve);
soap->keep_alive = 0;
#endif
if (soap_begin_serve(soap))
{ if (soap->error >= SOAP_STOP)
continue;
return soap->error;
}
if (soap_serve_request(soap) || (soap->fserveloop && soap->fserveloop(soap)))
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Hello(soap, &soap_tmp___wsdd__Hello, "-wsdd:Hello", NULL))
return soap->error;
if (soap_body_end_in(soap)
if (soap->error)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Probe(struct soap *soap)
{ struct __wsdd__Probe soap_tmp___wsdd__Probe;
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Hello(soap, soap_tmp___wsdd__Hello.wsdd__Hello);
if (soap->error)
return soap->error;
return soap_closesock(soap);
}
SOAP_FMAC5 int SOAP_FMAC6 soap_serve___wsdd__Bye(struct soap *soap)ห้องสมุดไป่ตู้
{ struct __wsdd__Bye soap_tmp___wsdd__Bye;
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__Probe(soap, soap_tmp___wsdd__Probe.wsdd__Probe);
{
#ifdef WITH_FASTCGI
soap_send_fault(soap);
#else
return soap_send_fault(soap);
#endif
}
#ifdef WITH_FASTCGI
soap_destroy(soap);
soap_end(soap);
if (soap->error)
soap_default___wsdd__Bye(soap, &soap_tmp___wsdd__Bye);
soap->encodingStyle = NULL;
if (!soap_get___wsdd__Bye(soap, &soap_tmp___wsdd__Bye, "-wsdd:Bye", NULL))
*/
#if defined(__BORLANDC__)
#pragma option push -w-8060
#pragma option push -w-8004
#endif
#include "soapH.h"
#ifdef __cplusplus
extern "C" {
#endif
SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.8.8 2012-11-11 03:45:17 GMT")
} while (1);
#else
} while (soap->keep_alive);
#endif
return SOAP_OK;
}
#ifndef WITH_NOSERVEREQUEST
SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap *soap)
return soap->error;
if (soap_body_end_in(soap)
|| soap_envelope_end_in(soap)
|| soap_end_recv(soap))
return soap->error;
soap->error = __wsdd__ProbeMatches(soap, soap_tmp___wsdd__ProbeMatches.wsdd__ProbeMatches);
return soap_serve___wsdd__Bye(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:Probe"))
return soap_serve___wsdd__Probe(soap);
if (!soap_match_tag(soap, soap->tag, "wsdd:ProbeMatches"))
SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap *soap)
{
#ifndef WITH_FASTCGI
unsigned int k = soap->max_keep_alive;
#endif
do
{
#ifndef WITH_FASTCGI
if (soap->max_keep_alive > 0 && !--k)