/* soapStub.h Generated by gSOAP 2.8.126 for calcc.h gSOAP XML Web services tools Copyright (C) 2000-2023, 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 -------------------------------------------------------------------------------- */ #define SOAP_NAMESPACE_OF_ns1 "urn:calc" #ifndef soapStub_H #define soapStub_H #include "stdsoap2.h" #if GSOAP_VERSION != 208126 # error "GSOAP VERSION 208126 MISMATCH IN GENERATED CODE VERSUS LIBRARY CODE: PLEASE REINSTALL PACKAGE" #endif /******************************************************************************\ * * * Enumeration Types * * * \******************************************************************************/ /* calcc.h:155 */ #ifndef SOAP_TYPE_ns1__Op #define SOAP_TYPE_ns1__Op (7) /* ns1:Op */ enum ns1__Op { ns1__Op__add = 0, ns1__Op__sub = 1, ns1__Op__mul = 2, ns1__Op__div = 3 }; #endif /******************************************************************************\ * * * Types with Custom Serializers * * * \******************************************************************************/ /******************************************************************************\ * * * Structs and Unions * * * \******************************************************************************/ struct ns1__Operands; /* calcc.h:180 */ struct _ns1__calcRequest; /* calcc.h:198 */ struct _ns1__calcResponse; /* calcc.h:216 */ struct _ns1__listRequest; /* calcc.h:234 */ struct _ns1__listResponse; /* calcc.h:252 */ struct __ns1__calc; /* calcc.h:387 */ struct __ns1__sum; /* calcc.h:445 */ /* calcc.h:180 */ #ifndef SOAP_TYPE_ns1__Operands #define SOAP_TYPE_ns1__Operands (8) /* complex XML schema type 'ns1:Operands': */ struct ns1__Operands { /** Required element 'ns1:a' of XML schema type 'xsd:double' */ double a; /** Required element 'ns1:b' of XML schema type 'xsd:double' */ double b; }; #endif /* calcc.h:198 */ #ifndef SOAP_TYPE__ns1__calcRequest #define SOAP_TYPE__ns1__calcRequest (10) /* complex XML schema type 'ns1:calcRequest': */ struct _ns1__calcRequest { /** Required element 'ns1:op' of XML schema type 'ns1:Op' */ enum ns1__Op op; /** Required element 'ns1:operands' of XML schema type 'ns1:Operands' */ struct ns1__Operands *operands; }; #endif /* calcc.h:216 */ #ifndef SOAP_TYPE__ns1__calcResponse #define SOAP_TYPE__ns1__calcResponse (12) /* complex XML schema type 'ns1:calcResponse': */ struct _ns1__calcResponse { /** Required element 'ns1:result' of XML schema type 'xsd:double' */ double result; /** Optional element 'ns1:note' of XML schema type 'xsd:string' */ char *note; }; #endif /* calcc.h:234 */ #ifndef SOAP_TYPE__ns1__listRequest #define SOAP_TYPE__ns1__listRequest (13) /* complex XML schema type 'ns1:listRequest': */ struct _ns1__listRequest { /** Sequence of elements 'ns1:value' of XML schema type 'xsd:int' stored in dynamic array value of length __sizevalue */ int __sizevalue; int *value; }; #endif /* calcc.h:252 */ #ifndef SOAP_TYPE__ns1__listResponse #define SOAP_TYPE__ns1__listResponse (15) /* complex XML schema type 'ns1:listResponse': */ struct _ns1__listResponse { /** Required element 'ns1:total' of XML schema type 'xsd:long' */ LONG64 total; }; #endif /* calcc.h:387 */ #ifndef SOAP_TYPE___ns1__calc #define SOAP_TYPE___ns1__calc (20) /* Wrapper: */ struct __ns1__calc { /** Optional element 'ns1:calcRequest' of XML schema type 'ns1:calcRequest' */ struct _ns1__calcRequest *ns1__calcRequest; }; #endif /* calcc.h:445 */ #ifndef SOAP_TYPE___ns1__sum #define SOAP_TYPE___ns1__sum (24) /* Wrapper: */ struct __ns1__sum { /** Optional element 'ns1:listRequest' of XML schema type 'ns1:listRequest' */ struct _ns1__listRequest *ns1__listRequest; }; #endif /* calcc.h:566 */ #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Header #define SOAP_TYPE_SOAP_ENV__Header (25) /* SOAP_ENV__Header: */ struct SOAP_ENV__Header { #ifdef WITH_NOEMPTYSTRUCT char dummy; /* empty struct is a GNU extension */ #endif }; #endif #endif /* calcc.h:566 */ #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Code #define SOAP_TYPE_SOAP_ENV__Code (26) /* Type SOAP_ENV__Code is a recursive data type, (in)directly referencing itself through its (base or derived class) members */ /* SOAP_ENV__Code: */ struct SOAP_ENV__Code { /** Optional element 'SOAP-ENV:Value' of XML schema type 'xsd:QName' */ char *SOAP_ENV__Value; /** Optional element 'SOAP-ENV:Subcode' of XML schema type 'SOAP-ENV:Code' */ struct SOAP_ENV__Code *SOAP_ENV__Subcode; }; #endif #endif /* calcc.h:566 */ #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Detail #define SOAP_TYPE_SOAP_ENV__Detail (28) /* SOAP_ENV__Detail: */ struct SOAP_ENV__Detail { char *__any; /** Any type of element 'fault' assigned to fault with its SOAP_TYPE_ assigned to __type */ /** Do not create a cyclic data structure through this member unless SOAP encoding or SOAP_XML_GRAPH are used for id-ref serialization */ int __type; void *fault; }; #endif #endif /* calcc.h:566 */ #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Reason #define SOAP_TYPE_SOAP_ENV__Reason (31) /* SOAP_ENV__Reason: */ struct SOAP_ENV__Reason { /** Optional element 'SOAP-ENV:Text' of XML schema type 'xsd:string' */ char *SOAP_ENV__Text; }; #endif #endif /* calcc.h:566 */ #ifndef WITH_NOGLOBAL #ifndef SOAP_TYPE_SOAP_ENV__Fault #define SOAP_TYPE_SOAP_ENV__Fault (32) /* SOAP_ENV__Fault: */ struct SOAP_ENV__Fault { /** Optional element 'faultcode' of XML schema type 'xsd:QName' */ char *faultcode; /** Optional element 'faultstring' of XML schema type 'xsd:string' */ char *faultstring; /** Optional element 'faultactor' of XML schema type 'xsd:string' */ char *faultactor; /** Optional element 'detail' of XML schema type 'SOAP-ENV:Detail' */ struct SOAP_ENV__Detail *detail; /** Optional element 'SOAP-ENV:Code' of XML schema type 'SOAP-ENV:Code' */ struct SOAP_ENV__Code *SOAP_ENV__Code; /** Optional element 'SOAP-ENV:Reason' of XML schema type 'SOAP-ENV:Reason' */ struct SOAP_ENV__Reason *SOAP_ENV__Reason; /** Optional element 'SOAP-ENV:Node' of XML schema type 'xsd:string' */ char *SOAP_ENV__Node; /** Optional element 'SOAP-ENV:Role' of XML schema type 'xsd:string' */ char *SOAP_ENV__Role; /** Optional element 'SOAP-ENV:Detail' of XML schema type 'SOAP-ENV:Detail' */ struct SOAP_ENV__Detail *SOAP_ENV__Detail; }; #endif #endif /******************************************************************************\ * * * Typedefs * * * \******************************************************************************/ /* (built-in):0 */ #ifndef SOAP_TYPE__XML #define SOAP_TYPE__XML (5) typedef char *_XML; #endif /* (built-in):0 */ #ifndef SOAP_TYPE__QName #define SOAP_TYPE__QName (6) typedef char *_QName; #endif /******************************************************************************\ * * * Serializable Types * * * \******************************************************************************/ /* char has binding name 'byte' for type 'xsd:byte' */ #ifndef SOAP_TYPE_byte #define SOAP_TYPE_byte (3) #endif /* int has binding name 'int' for type 'xsd:int' */ #ifndef SOAP_TYPE_int #define SOAP_TYPE_int (1) #endif /* LONG64 has binding name 'LONG64' for type 'xsd:long' */ #ifndef SOAP_TYPE_LONG64 #define SOAP_TYPE_LONG64 (16) #endif /* double has binding name 'double' for type 'xsd:double' */ #ifndef SOAP_TYPE_double #define SOAP_TYPE_double (9) #endif /* enum ns1__Op has binding name 'ns1__Op' for type 'ns1:Op' */ #ifndef SOAP_TYPE_ns1__Op #define SOAP_TYPE_ns1__Op (7) #endif /* struct SOAP_ENV__Fault has binding name 'SOAP_ENV__Fault' for type '' */ #ifndef SOAP_TYPE_SOAP_ENV__Fault #define SOAP_TYPE_SOAP_ENV__Fault (32) #endif /* struct SOAP_ENV__Reason has binding name 'SOAP_ENV__Reason' for type '' */ #ifndef SOAP_TYPE_SOAP_ENV__Reason #define SOAP_TYPE_SOAP_ENV__Reason (31) #endif /* struct SOAP_ENV__Detail has binding name 'SOAP_ENV__Detail' for type '' */ #ifndef SOAP_TYPE_SOAP_ENV__Detail #define SOAP_TYPE_SOAP_ENV__Detail (28) #endif /* struct SOAP_ENV__Code has binding name 'SOAP_ENV__Code' for type '' */ #ifndef SOAP_TYPE_SOAP_ENV__Code #define SOAP_TYPE_SOAP_ENV__Code (26) #endif /* struct SOAP_ENV__Header has binding name 'SOAP_ENV__Header' for type '' */ #ifndef SOAP_TYPE_SOAP_ENV__Header #define SOAP_TYPE_SOAP_ENV__Header (25) #endif /* struct _ns1__listResponse has binding name '_ns1__listResponse' for type '' */ #ifndef SOAP_TYPE__ns1__listResponse #define SOAP_TYPE__ns1__listResponse (15) #endif /* struct _ns1__listRequest has binding name '_ns1__listRequest' for type '' */ #ifndef SOAP_TYPE__ns1__listRequest #define SOAP_TYPE__ns1__listRequest (13) #endif /* struct _ns1__calcResponse has binding name '_ns1__calcResponse' for type '' */ #ifndef SOAP_TYPE__ns1__calcResponse #define SOAP_TYPE__ns1__calcResponse (12) #endif /* struct _ns1__calcRequest has binding name '_ns1__calcRequest' for type '' */ #ifndef SOAP_TYPE__ns1__calcRequest #define SOAP_TYPE__ns1__calcRequest (10) #endif /* struct ns1__Operands has binding name 'ns1__Operands' for type 'ns1:Operands' */ #ifndef SOAP_TYPE_ns1__Operands #define SOAP_TYPE_ns1__Operands (8) #endif /* struct SOAP_ENV__Reason * has binding name 'PointerToSOAP_ENV__Reason' for type '' */ #ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason #define SOAP_TYPE_PointerToSOAP_ENV__Reason (34) #endif /* struct SOAP_ENV__Detail * has binding name 'PointerToSOAP_ENV__Detail' for type '' */ #ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail #define SOAP_TYPE_PointerToSOAP_ENV__Detail (33) #endif /* struct SOAP_ENV__Code * has binding name 'PointerToSOAP_ENV__Code' for type '' */ #ifndef SOAP_TYPE_PointerToSOAP_ENV__Code #define SOAP_TYPE_PointerToSOAP_ENV__Code (27) #endif /* struct _ns1__listResponse * has binding name 'PointerTo_ns1__listResponse' for type '' */ #ifndef SOAP_TYPE_PointerTo_ns1__listResponse #define SOAP_TYPE_PointerTo_ns1__listResponse (22) #endif /* struct _ns1__listRequest * has binding name 'PointerTo_ns1__listRequest' for type '' */ #ifndef SOAP_TYPE_PointerTo_ns1__listRequest #define SOAP_TYPE_PointerTo_ns1__listRequest (21) #endif /* struct _ns1__calcResponse * has binding name 'PointerTo_ns1__calcResponse' for type '' */ #ifndef SOAP_TYPE_PointerTo_ns1__calcResponse #define SOAP_TYPE_PointerTo_ns1__calcResponse (18) #endif /* struct _ns1__calcRequest * has binding name 'PointerTo_ns1__calcRequest' for type '' */ #ifndef SOAP_TYPE_PointerTo_ns1__calcRequest #define SOAP_TYPE_PointerTo_ns1__calcRequest (17) #endif /* int * has binding name 'PointerToint' for type 'xsd:int' */ #ifndef SOAP_TYPE_PointerToint #define SOAP_TYPE_PointerToint (14) #endif /* struct ns1__Operands * has binding name 'PointerTons1__Operands' for type 'ns1:Operands' */ #ifndef SOAP_TYPE_PointerTons1__Operands #define SOAP_TYPE_PointerTons1__Operands (11) #endif /* _QName has binding name '_QName' for type 'xsd:QName' */ #ifndef SOAP_TYPE__QName #define SOAP_TYPE__QName (6) #endif /* _XML has binding name '_XML' for type '' */ #ifndef SOAP_TYPE__XML #define SOAP_TYPE__XML (5) #endif /* char * has binding name 'string' for type 'xsd:string' */ #ifndef SOAP_TYPE_string #define SOAP_TYPE_string (4) #endif /******************************************************************************\ * * * Externals * * * \******************************************************************************/ /******************************************************************************\ * * * Client-Side Call Stub Functions * * * \******************************************************************************/ /** Web service synchronous operation 'soap_call___ns1__calc' to the specified endpoint and SOAP Action header, returns SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__calc(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__calcRequest *ns1__calcRequest, struct _ns1__calcResponse *ns1__calcResponse); /** Web service asynchronous operation 'soap_send___ns1__calc' to send a request message to the specified endpoint and SOAP Action header, returns SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__calc(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__calcRequest *ns1__calcRequest); /** Web service asynchronous operation 'soap_recv___ns1__calc' to receive a response message from the connected endpoint, returns SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__calc(struct soap *soap, struct _ns1__calcResponse *ns1__calcResponse); /** Web service synchronous operation 'soap_call___ns1__sum' to the specified endpoint and SOAP Action header, returns SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__sum(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__listRequest *ns1__listRequest, struct _ns1__listResponse *ns1__listResponse); /** Web service asynchronous operation 'soap_send___ns1__sum' to send a request message to the specified endpoint and SOAP Action header, returns SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 soap_send___ns1__sum(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__listRequest *ns1__listRequest); /** Web service asynchronous operation 'soap_recv___ns1__sum' to receive a response message from the connected endpoint, returns SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 soap_recv___ns1__sum(struct soap *soap, struct _ns1__listResponse *ns1__listResponse); /******************************************************************************\ * * * Server-Side Operations * * * \******************************************************************************/ /** Web service operation '__ns1__calc' implementation, should return SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 __ns1__calc(struct soap*, struct _ns1__calcRequest *ns1__calcRequest, struct _ns1__calcResponse *ns1__calcResponse); /** Web service operation '__ns1__sum' implementation, should return SOAP_OK or error code */ SOAP_FMAC5 int SOAP_FMAC6 __ns1__sum(struct soap*, struct _ns1__listRequest *ns1__listRequest, struct _ns1__listResponse *ns1__listResponse); /******************************************************************************\ * * * Server-Side Skeletons to Invoke Service Operations * * * \******************************************************************************/ SOAP_FMAC5 int SOAP_FMAC6 soap_serve(struct soap*); SOAP_FMAC5 int SOAP_FMAC6 soap_serve_request(struct soap*); SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__calc(struct soap*); SOAP_FMAC5 int SOAP_FMAC6 soap_serve___ns1__sum(struct soap*); #endif /* End of soapStub.h */