diff --git a/Code/Mantid/Framework/ICat/CMakeLists.txt b/Code/Mantid/Framework/ICat/CMakeLists.txt index 66daff8b0375..73a83a8cb50c 100644 --- a/Code/Mantid/Framework/ICat/CMakeLists.txt +++ b/Code/Mantid/Framework/ICat/CMakeLists.txt @@ -13,6 +13,7 @@ set ( SRC_FILES src/CatalogSearch.cpp src/CatalogSearchParam.cpp src/GSoap.cpp + src/ICatDOI/ICatDOIGSoapGenerated.cpp src/ICat3/ICat3GSoapGenerated.cpp src/ICat3/ICat3ErrorHandling.cpp src/ICat3/ICat3Catalog.cpp @@ -41,6 +42,9 @@ set ( INC_FILES inc/MantidICat/GSoap/soapserializersH.h inc/MantidICat/GSoap/soapserializersStub.h inc/MantidICat/GSoap/stdsoap2.h + inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIH.h + inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.h + inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIStub.h inc/MantidICat/ICat3/GSoapGenerated/ICat3H.h inc/MantidICat/ICat3/GSoapGenerated/ICat3ICATPortBindingProxy.h inc/MantidICat/ICat3/GSoapGenerated/ICat3Stub.h diff --git a/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.h b/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.h new file mode 100644 index 000000000000..89478e72c455 --- /dev/null +++ b/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.h @@ -0,0 +1,82 @@ +/* ICatDOIDOIPortBindingProxy.h + Generated by gSOAP 2.8.15 from ICatDOI.h + +Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved. +The generated code is released under ONE of the following licenses: +GPL or 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. +*/ + +#ifndef ICatDOIDOIPortBindingProxy_H +#define ICatDOIDOIPortBindingProxy_H +#include "ICatDOIH.h" + +namespace ICatDOI { + +class SOAP_CMAC DOIPortBindingProxy : public soap +{ public: + /// Endpoint URL of service 'DOIPortBindingProxy' (change as needed) + const char *soap_endpoint; + /// Constructor + DOIPortBindingProxy(); + /// Construct from another engine state + DOIPortBindingProxy(const struct soap&); + /// Constructor with endpoint URL + DOIPortBindingProxy(const char *url); + /// Constructor with engine input+output mode control + DOIPortBindingProxy(soap_mode iomode); + /// Constructor with URL and input+output mode control + DOIPortBindingProxy(const char *url, soap_mode iomode); + /// Constructor with engine input and output mode control + DOIPortBindingProxy(soap_mode imode, soap_mode omode); + /// Destructor frees deserialized data + virtual ~DOIPortBindingProxy(); + /// Initializer used by constructors + virtual void DOIPortBindingProxy_init(soap_mode imode, soap_mode omode); + /// Delete all deserialized data (with soap_destroy and soap_end) + virtual void destroy(); + /// Delete all deserialized data and reset to default + virtual void reset(); + /// Disables and removes SOAP Header from message + virtual void soap_noheader(); + /// Get SOAP Header structure (NULL when absent) + virtual const SOAP_ENV__Header *soap_header(); + /// Get SOAP Fault structure (NULL when absent) + virtual const SOAP_ENV__Fault *soap_fault(); + /// Get SOAP Fault string (NULL when absent) + virtual const char *soap_fault_string(); + /// Get SOAP Fault detail as string (NULL when absent) + virtual const char *soap_fault_detail(); + /// Close connection (normally automatic, except for send_X ops) + virtual int soap_close_socket(); + /// Force close connection (can kill a thread blocked on IO) + virtual int soap_force_close_socket(); + /// Print fault + virtual void soap_print_fault(FILE*); +#ifndef WITH_LEAN + /// Print fault to stream +#ifndef WITH_COMPAT + virtual void soap_stream_fault(std::ostream&); +#endif + + /// Put fault into buffer + virtual char *soap_sprint_fault(char *buf, size_t len); +#endif + + /// Web service operation 'registerInvestigationDOI' (returns error code or SOAP_OK) + virtual int registerInvestigationDOI(ns1__registerInvestigationDOI *ns1__registerInvestigationDOI_, ns1__registerInvestigationDOIResponse *ns1__registerInvestigationDOIResponse_) { return this->registerInvestigationDOI(NULL, NULL, ns1__registerInvestigationDOI_, ns1__registerInvestigationDOIResponse_); } + virtual int registerInvestigationDOI(const char *endpoint, const char *soap_action, ns1__registerInvestigationDOI *ns1__registerInvestigationDOI_, ns1__registerInvestigationDOIResponse *ns1__registerInvestigationDOIResponse_); + + /// Web service operation 'registerDatafileDOI' (returns error code or SOAP_OK) + virtual int registerDatafileDOI(ns1__registerDatafileDOI *ns1__registerDatafileDOI_, ns1__registerDatafileDOIResponse *ns1__registerDatafileDOIResponse_) { return this->registerDatafileDOI(NULL, NULL, ns1__registerDatafileDOI_, ns1__registerDatafileDOIResponse_); } + virtual int registerDatafileDOI(const char *endpoint, const char *soap_action, ns1__registerDatafileDOI *ns1__registerDatafileDOI_, ns1__registerDatafileDOIResponse *ns1__registerDatafileDOIResponse_); + + /// Web service operation 'registerDatasetDOI' (returns error code or SOAP_OK) + virtual int registerDatasetDOI(ns1__registerDatasetDOI *ns1__registerDatasetDOI_, ns1__registerDatasetDOIResponse *ns1__registerDatasetDOIResponse_) { return this->registerDatasetDOI(NULL, NULL, ns1__registerDatasetDOI_, ns1__registerDatasetDOIResponse_); } + virtual int registerDatasetDOI(const char *endpoint, const char *soap_action, ns1__registerDatasetDOI *ns1__registerDatasetDOI_, ns1__registerDatasetDOIResponse *ns1__registerDatasetDOIResponse_); +}; + +} // namespace ICatDOI + +#endif diff --git a/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIH.h b/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIH.h new file mode 100644 index 000000000000..62ad13488e3f --- /dev/null +++ b/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIH.h @@ -0,0 +1,1018 @@ +/* ICatDOIH.h + Generated by gSOAP 2.8.15 from ICatDOI.h + +Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved. +The generated code is released under ONE of the following licenses: +GPL or 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. +*/ + +#ifndef ICatDOIH_H +#define ICatDOIH_H +#include "ICatDOIStub.h" + +namespace ICatDOI { +#ifndef WITH_NOIDREF +SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap*, const void*, int); +SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap*); +SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap*); +#endif +SOAP_FMAC3 void *SOAP_FMAC4 soap_getelement(struct soap*, int*); +SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap*, const void*, const char*, int, int); +SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap*); + +SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap); + +SOAP_FMAC3 void * SOAP_FMAC4 ICatDOI_instantiate(struct soap*, int, const char*, const char*, size_t*); +SOAP_FMAC3 int SOAP_FMAC4 ICatDOI_fdelete(struct soap_clist*); +SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap*, const char*, void*, int, size_t, const char*, const char*); + +SOAP_FMAC3 void* SOAP_FMAC4 soap_container_id_forward(struct soap*, const char*, void*, size_t, int, int, size_t, unsigned int); + +SOAP_FMAC3 void SOAP_FMAC4 ICatDOI_container_insert(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_byte +#define SOAP_TYPE_ICatDOI_byte (3) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap*, char *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap*, const char*, int, const char *, const char*); +SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap*, const char*, char *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap*, const char *, const char*, const char*); + +#ifndef soap_write_byte +#define soap_write_byte(soap, data) ( ICatDOI::soap_serialize_byte(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_byte(soap, data, "byte", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap*, char *, const char*, const char*); + +#ifndef soap_read_byte +#define soap_read_byte(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_byte(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_int +#define SOAP_TYPE_ICatDOI_int (1) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap*, int *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap*, const char*, int, const int *, const char*); +SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap*, const char*, int *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap*, const int *, const char*, const char*); + +#ifndef soap_write_int +#define soap_write_int(soap, data) ( ICatDOI::soap_serialize_int(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_int(soap, data, "int", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap*, int *, const char*, const char*); + +#ifndef soap_read_int +#define soap_read_int(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_int(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_LONG64 +#define SOAP_TYPE_ICatDOI_LONG64 (20) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_LONG64(struct soap*, LONG64 *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_LONG64(struct soap*, const char*, int, const LONG64 *, const char*); +SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_in_LONG64(struct soap*, const char*, LONG64 *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_LONG64(struct soap*, const LONG64 *, const char*, const char*); + +#ifndef soap_write_LONG64 +#define soap_write_LONG64(soap, data) ( ICatDOI::soap_serialize_LONG64(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_LONG64(soap, data, "long", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_get_LONG64(struct soap*, LONG64 *, const char*, const char*); + +#ifndef soap_read_LONG64 +#define soap_read_LONG64(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_LONG64(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_std__string +#define SOAP_TYPE_ICatDOI_std__string (18) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__string(struct soap*, std::string *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__string(struct soap*, const std::string *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__string(struct soap*, const char*, int, const std::string*, const char*); +SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_std__string(struct soap*, const char*, std::string*, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_std__string(struct soap*, const std::string *, const char*, const char*); + +#ifndef soap_write_std__string +#define soap_write_std__string(soap, data) ( soap_serialize_std__string(soap, data), soap_begin_send(soap) || soap_put_std__string(soap, data, "string", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_std__string(struct soap*, std::string *, const char*, const char*); + +#ifndef soap_read_std__string +#define soap_read_std__string(soap, data) ( soap_begin_recv(soap) || !soap_get_std__string(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 std::string * SOAP_FMAC2 soap_instantiate_std__string(struct soap*, int, const char*, const char*, size_t*); + +inline std::string * soap_new_std__string(struct soap *soap, int n = -1) { return soap_instantiate_std__string(soap, n, NULL, NULL, NULL); } + +inline std::string * soap_new_req_std__string(struct soap *soap) { std::string *_p = soap_instantiate_std__string(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_std__string(soap, _p); } return _p; } + +inline std::string * soap_new_set_std__string(struct soap *soap) { std::string *_p = soap_instantiate_std__string(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_std__string(soap, _p); } return _p; } + +inline void soap_delete_std__string(struct soap *soap, std::string *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__string(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse +#define SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse (17) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatafileDOIResponse(struct soap*, const char*, int, const ns1__registerDatafileDOIResponse *, const char*); +SOAP_FMAC3 ns1__registerDatafileDOIResponse * SOAP_FMAC4 soap_in_ns1__registerDatafileDOIResponse(struct soap*, const char*, ns1__registerDatafileDOIResponse *, const char*); + +#ifndef soap_write_ns1__registerDatafileDOIResponse +#define soap_write_ns1__registerDatafileDOIResponse(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:registerDatafileDOIResponse", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatafileDOIResponse * SOAP_FMAC4 soap_get_ns1__registerDatafileDOIResponse(struct soap*, ns1__registerDatafileDOIResponse *, const char*, const char*); + +#ifndef soap_read_ns1__registerDatafileDOIResponse +#define soap_read_ns1__registerDatafileDOIResponse(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__registerDatafileDOIResponse(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__registerDatafileDOIResponse * SOAP_FMAC2 soap_instantiate_ns1__registerDatafileDOIResponse(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__registerDatafileDOIResponse * soap_new_ns1__registerDatafileDOIResponse(struct soap *soap, int n = -1) { return soap_instantiate_ns1__registerDatafileDOIResponse(soap, n, NULL, NULL, NULL); } + +inline ns1__registerDatafileDOIResponse * soap_new_req_ns1__registerDatafileDOIResponse(struct soap *soap) { ns1__registerDatafileDOIResponse *_p = soap_instantiate_ns1__registerDatafileDOIResponse(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); } return _p; } + +inline ns1__registerDatafileDOIResponse * soap_new_set_ns1__registerDatafileDOIResponse(struct soap *soap, std::string *return_) { ns1__registerDatafileDOIResponse *_p = soap_instantiate_ns1__registerDatafileDOIResponse(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerDatafileDOIResponse::return_ = return_; } return _p; } + +inline void soap_delete_ns1__registerDatafileDOIResponse(struct soap *soap, ns1__registerDatafileDOIResponse *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatafileDOIResponse(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI +#define SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI (16) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatafileDOI(struct soap*, const char*, int, const ns1__registerDatafileDOI *, const char*); +SOAP_FMAC3 ns1__registerDatafileDOI * SOAP_FMAC4 soap_in_ns1__registerDatafileDOI(struct soap*, const char*, ns1__registerDatafileDOI *, const char*); + +#ifndef soap_write_ns1__registerDatafileDOI +#define soap_write_ns1__registerDatafileDOI(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:registerDatafileDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatafileDOI * SOAP_FMAC4 soap_get_ns1__registerDatafileDOI(struct soap*, ns1__registerDatafileDOI *, const char*, const char*); + +#ifndef soap_read_ns1__registerDatafileDOI +#define soap_read_ns1__registerDatafileDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__registerDatafileDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__registerDatafileDOI * SOAP_FMAC2 soap_instantiate_ns1__registerDatafileDOI(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__registerDatafileDOI * soap_new_ns1__registerDatafileDOI(struct soap *soap, int n = -1) { return soap_instantiate_ns1__registerDatafileDOI(soap, n, NULL, NULL, NULL); } + +inline ns1__registerDatafileDOI * soap_new_req_ns1__registerDatafileDOI(struct soap *soap, LONG64 arg1) { ns1__registerDatafileDOI *_p = soap_instantiate_ns1__registerDatafileDOI(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerDatafileDOI::arg1 = arg1; } return _p; } + +inline ns1__registerDatafileDOI * soap_new_set_ns1__registerDatafileDOI(struct soap *soap, std::string *arg0, LONG64 arg1) { ns1__registerDatafileDOI *_p = soap_instantiate_ns1__registerDatafileDOI(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerDatafileDOI::arg0 = arg0; _p->ns1__registerDatafileDOI::arg1 = arg1; } return _p; } + +inline void soap_delete_ns1__registerDatafileDOI(struct soap *soap, ns1__registerDatafileDOI *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatafileDOI(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse +#define SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse (15) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerInvestigationDOIResponse(struct soap*, const char*, int, const ns1__registerInvestigationDOIResponse *, const char*); +SOAP_FMAC3 ns1__registerInvestigationDOIResponse * SOAP_FMAC4 soap_in_ns1__registerInvestigationDOIResponse(struct soap*, const char*, ns1__registerInvestigationDOIResponse *, const char*); + +#ifndef soap_write_ns1__registerInvestigationDOIResponse +#define soap_write_ns1__registerInvestigationDOIResponse(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:registerInvestigationDOIResponse", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerInvestigationDOIResponse * SOAP_FMAC4 soap_get_ns1__registerInvestigationDOIResponse(struct soap*, ns1__registerInvestigationDOIResponse *, const char*, const char*); + +#ifndef soap_read_ns1__registerInvestigationDOIResponse +#define soap_read_ns1__registerInvestigationDOIResponse(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__registerInvestigationDOIResponse(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__registerInvestigationDOIResponse * SOAP_FMAC2 soap_instantiate_ns1__registerInvestigationDOIResponse(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__registerInvestigationDOIResponse * soap_new_ns1__registerInvestigationDOIResponse(struct soap *soap, int n = -1) { return soap_instantiate_ns1__registerInvestigationDOIResponse(soap, n, NULL, NULL, NULL); } + +inline ns1__registerInvestigationDOIResponse * soap_new_req_ns1__registerInvestigationDOIResponse(struct soap *soap) { ns1__registerInvestigationDOIResponse *_p = soap_instantiate_ns1__registerInvestigationDOIResponse(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); } return _p; } + +inline ns1__registerInvestigationDOIResponse * soap_new_set_ns1__registerInvestigationDOIResponse(struct soap *soap, std::string *return_) { ns1__registerInvestigationDOIResponse *_p = soap_instantiate_ns1__registerInvestigationDOIResponse(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerInvestigationDOIResponse::return_ = return_; } return _p; } + +inline void soap_delete_ns1__registerInvestigationDOIResponse(struct soap *soap, ns1__registerInvestigationDOIResponse *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerInvestigationDOIResponse(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI +#define SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI (14) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerInvestigationDOI(struct soap*, const char*, int, const ns1__registerInvestigationDOI *, const char*); +SOAP_FMAC3 ns1__registerInvestigationDOI * SOAP_FMAC4 soap_in_ns1__registerInvestigationDOI(struct soap*, const char*, ns1__registerInvestigationDOI *, const char*); + +#ifndef soap_write_ns1__registerInvestigationDOI +#define soap_write_ns1__registerInvestigationDOI(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:registerInvestigationDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerInvestigationDOI * SOAP_FMAC4 soap_get_ns1__registerInvestigationDOI(struct soap*, ns1__registerInvestigationDOI *, const char*, const char*); + +#ifndef soap_read_ns1__registerInvestigationDOI +#define soap_read_ns1__registerInvestigationDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__registerInvestigationDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__registerInvestigationDOI * SOAP_FMAC2 soap_instantiate_ns1__registerInvestigationDOI(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__registerInvestigationDOI * soap_new_ns1__registerInvestigationDOI(struct soap *soap, int n = -1) { return soap_instantiate_ns1__registerInvestigationDOI(soap, n, NULL, NULL, NULL); } + +inline ns1__registerInvestigationDOI * soap_new_req_ns1__registerInvestigationDOI(struct soap *soap, LONG64 arg1) { ns1__registerInvestigationDOI *_p = soap_instantiate_ns1__registerInvestigationDOI(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerInvestigationDOI::arg1 = arg1; } return _p; } + +inline ns1__registerInvestigationDOI * soap_new_set_ns1__registerInvestigationDOI(struct soap *soap, std::string *arg0, LONG64 arg1) { ns1__registerInvestigationDOI *_p = soap_instantiate_ns1__registerInvestigationDOI(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerInvestigationDOI::arg0 = arg0; _p->ns1__registerInvestigationDOI::arg1 = arg1; } return _p; } + +inline void soap_delete_ns1__registerInvestigationDOI(struct soap *soap, ns1__registerInvestigationDOI *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerInvestigationDOI(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__ICATException +#define SOAP_TYPE_ICatDOI_ns1__ICATException (13) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__ICATException(struct soap*, const char*, int, const ns1__ICATException *, const char*); +SOAP_FMAC3 ns1__ICATException * SOAP_FMAC4 soap_in_ns1__ICATException(struct soap*, const char*, ns1__ICATException *, const char*); + +#ifndef soap_write_ns1__ICATException +#define soap_write_ns1__ICATException(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:ICATException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__ICATException * SOAP_FMAC4 soap_get_ns1__ICATException(struct soap*, ns1__ICATException *, const char*, const char*); + +#ifndef soap_read_ns1__ICATException +#define soap_read_ns1__ICATException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__ICATException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__ICATException * SOAP_FMAC2 soap_instantiate_ns1__ICATException(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__ICATException * soap_new_ns1__ICATException(struct soap *soap, int n = -1) { return soap_instantiate_ns1__ICATException(soap, n, NULL, NULL, NULL); } + +inline ns1__ICATException * soap_new_req_ns1__ICATException(struct soap *soap) { ns1__ICATException *_p = soap_instantiate_ns1__ICATException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); } return _p; } + +inline ns1__ICATException * soap_new_set_ns1__ICATException(struct soap *soap, std::string *message) { ns1__ICATException *_p = soap_instantiate_ns1__ICATException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__ICATException::message = message; } return _p; } + +inline void soap_delete_ns1__ICATException(struct soap *soap, ns1__ICATException *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__ICATException(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__InternalException +#define SOAP_TYPE_ICatDOI_ns1__InternalException (12) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__InternalException(struct soap*, const char*, int, const ns1__InternalException *, const char*); +SOAP_FMAC3 ns1__InternalException * SOAP_FMAC4 soap_in_ns1__InternalException(struct soap*, const char*, ns1__InternalException *, const char*); + +#ifndef soap_write_ns1__InternalException +#define soap_write_ns1__InternalException(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:InternalException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__InternalException * SOAP_FMAC4 soap_get_ns1__InternalException(struct soap*, ns1__InternalException *, const char*, const char*); + +#ifndef soap_read_ns1__InternalException +#define soap_read_ns1__InternalException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__InternalException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__InternalException * SOAP_FMAC2 soap_instantiate_ns1__InternalException(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__InternalException * soap_new_ns1__InternalException(struct soap *soap, int n = -1) { return soap_instantiate_ns1__InternalException(soap, n, NULL, NULL, NULL); } + +inline ns1__InternalException * soap_new_req_ns1__InternalException(struct soap *soap) { ns1__InternalException *_p = soap_instantiate_ns1__InternalException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); } return _p; } + +inline ns1__InternalException * soap_new_set_ns1__InternalException(struct soap *soap, std::string *message) { ns1__InternalException *_p = soap_instantiate_ns1__InternalException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__InternalException::message = message; } return _p; } + +inline void soap_delete_ns1__InternalException(struct soap *soap, ns1__InternalException *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__InternalException(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__DoiException +#define SOAP_TYPE_ICatDOI_ns1__DoiException (11) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__DoiException(struct soap*, const char*, int, const ns1__DoiException *, const char*); +SOAP_FMAC3 ns1__DoiException * SOAP_FMAC4 soap_in_ns1__DoiException(struct soap*, const char*, ns1__DoiException *, const char*); + +#ifndef soap_write_ns1__DoiException +#define soap_write_ns1__DoiException(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:DoiException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__DoiException * SOAP_FMAC4 soap_get_ns1__DoiException(struct soap*, ns1__DoiException *, const char*, const char*); + +#ifndef soap_read_ns1__DoiException +#define soap_read_ns1__DoiException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__DoiException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__DoiException * SOAP_FMAC2 soap_instantiate_ns1__DoiException(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__DoiException * soap_new_ns1__DoiException(struct soap *soap, int n = -1) { return soap_instantiate_ns1__DoiException(soap, n, NULL, NULL, NULL); } + +inline ns1__DoiException * soap_new_req_ns1__DoiException(struct soap *soap) { ns1__DoiException *_p = soap_instantiate_ns1__DoiException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); } return _p; } + +inline ns1__DoiException * soap_new_set_ns1__DoiException(struct soap *soap, std::string *message) { ns1__DoiException *_p = soap_instantiate_ns1__DoiException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__DoiException::message = message; } return _p; } + +inline void soap_delete_ns1__DoiException(struct soap *soap, ns1__DoiException *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__DoiException(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__DataNotFoundException +#define SOAP_TYPE_ICatDOI_ns1__DataNotFoundException (10) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__DataNotFoundException(struct soap*, const char*, int, const ns1__DataNotFoundException *, const char*); +SOAP_FMAC3 ns1__DataNotFoundException * SOAP_FMAC4 soap_in_ns1__DataNotFoundException(struct soap*, const char*, ns1__DataNotFoundException *, const char*); + +#ifndef soap_write_ns1__DataNotFoundException +#define soap_write_ns1__DataNotFoundException(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:DataNotFoundException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__DataNotFoundException * SOAP_FMAC4 soap_get_ns1__DataNotFoundException(struct soap*, ns1__DataNotFoundException *, const char*, const char*); + +#ifndef soap_read_ns1__DataNotFoundException +#define soap_read_ns1__DataNotFoundException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__DataNotFoundException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__DataNotFoundException * SOAP_FMAC2 soap_instantiate_ns1__DataNotFoundException(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__DataNotFoundException * soap_new_ns1__DataNotFoundException(struct soap *soap, int n = -1) { return soap_instantiate_ns1__DataNotFoundException(soap, n, NULL, NULL, NULL); } + +inline ns1__DataNotFoundException * soap_new_req_ns1__DataNotFoundException(struct soap *soap) { ns1__DataNotFoundException *_p = soap_instantiate_ns1__DataNotFoundException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); } return _p; } + +inline ns1__DataNotFoundException * soap_new_set_ns1__DataNotFoundException(struct soap *soap, std::string *message) { ns1__DataNotFoundException *_p = soap_instantiate_ns1__DataNotFoundException(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__DataNotFoundException::message = message; } return _p; } + +inline void soap_delete_ns1__DataNotFoundException(struct soap *soap, ns1__DataNotFoundException *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__DataNotFoundException(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse +#define SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse (9) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatasetDOIResponse(struct soap*, const char*, int, const ns1__registerDatasetDOIResponse *, const char*); +SOAP_FMAC3 ns1__registerDatasetDOIResponse * SOAP_FMAC4 soap_in_ns1__registerDatasetDOIResponse(struct soap*, const char*, ns1__registerDatasetDOIResponse *, const char*); + +#ifndef soap_write_ns1__registerDatasetDOIResponse +#define soap_write_ns1__registerDatasetDOIResponse(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:registerDatasetDOIResponse", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatasetDOIResponse * SOAP_FMAC4 soap_get_ns1__registerDatasetDOIResponse(struct soap*, ns1__registerDatasetDOIResponse *, const char*, const char*); + +#ifndef soap_read_ns1__registerDatasetDOIResponse +#define soap_read_ns1__registerDatasetDOIResponse(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__registerDatasetDOIResponse(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__registerDatasetDOIResponse * SOAP_FMAC2 soap_instantiate_ns1__registerDatasetDOIResponse(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__registerDatasetDOIResponse * soap_new_ns1__registerDatasetDOIResponse(struct soap *soap, int n = -1) { return soap_instantiate_ns1__registerDatasetDOIResponse(soap, n, NULL, NULL, NULL); } + +inline ns1__registerDatasetDOIResponse * soap_new_req_ns1__registerDatasetDOIResponse(struct soap *soap) { ns1__registerDatasetDOIResponse *_p = soap_instantiate_ns1__registerDatasetDOIResponse(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); } return _p; } + +inline ns1__registerDatasetDOIResponse * soap_new_set_ns1__registerDatasetDOIResponse(struct soap *soap, std::string *return_) { ns1__registerDatasetDOIResponse *_p = soap_instantiate_ns1__registerDatasetDOIResponse(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerDatasetDOIResponse::return_ = return_; } return _p; } + +inline void soap_delete_ns1__registerDatasetDOIResponse(struct soap *soap, ns1__registerDatasetDOIResponse *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatasetDOIResponse(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI +#define SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI (8) +#endif + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatasetDOI(struct soap*, const char*, int, const ns1__registerDatasetDOI *, const char*); +SOAP_FMAC3 ns1__registerDatasetDOI * SOAP_FMAC4 soap_in_ns1__registerDatasetDOI(struct soap*, const char*, ns1__registerDatasetDOI *, const char*); + +#ifndef soap_write_ns1__registerDatasetDOI +#define soap_write_ns1__registerDatasetDOI(soap, data) ( (data)->soap_serialize(soap), soap_begin_send(soap) || (data)->soap_put(soap, "ns1:registerDatasetDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatasetDOI * SOAP_FMAC4 soap_get_ns1__registerDatasetDOI(struct soap*, ns1__registerDatasetDOI *, const char*, const char*); + +#ifndef soap_read_ns1__registerDatasetDOI +#define soap_read_ns1__registerDatasetDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_ns1__registerDatasetDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 ns1__registerDatasetDOI * SOAP_FMAC2 soap_instantiate_ns1__registerDatasetDOI(struct soap*, int, const char*, const char*, size_t*); + +inline ns1__registerDatasetDOI * soap_new_ns1__registerDatasetDOI(struct soap *soap, int n = -1) { return soap_instantiate_ns1__registerDatasetDOI(soap, n, NULL, NULL, NULL); } + +inline ns1__registerDatasetDOI * soap_new_req_ns1__registerDatasetDOI(struct soap *soap, LONG64 arg1) { ns1__registerDatasetDOI *_p = soap_instantiate_ns1__registerDatasetDOI(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerDatasetDOI::arg1 = arg1; } return _p; } + +inline ns1__registerDatasetDOI * soap_new_set_ns1__registerDatasetDOI(struct soap *soap, std::string *arg0, LONG64 arg1) { ns1__registerDatasetDOI *_p = soap_instantiate_ns1__registerDatasetDOI(soap, -1, NULL, NULL, NULL); if (_p) { _p->soap_default(soap); _p->ns1__registerDatasetDOI::arg0 = arg0; _p->ns1__registerDatasetDOI::arg1 = arg1; } return _p; } + +inline void soap_delete_ns1__registerDatasetDOI(struct soap *soap, ns1__registerDatasetDOI *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatasetDOI(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Fault +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Fault (45) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap*, const char*, int, const struct SOAP_ENV__Fault *, const char*); +SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap*, const char*, struct SOAP_ENV__Fault *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap*, const struct SOAP_ENV__Fault *, const char*, const char*); + +#ifndef soap_write_SOAP_ENV__Fault +#define soap_write_SOAP_ENV__Fault(soap, data) ( ICatDOI::soap_serialize_SOAP_ENV__Fault(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_SOAP_ENV__Fault(soap, data, "SOAP-ENV:Fault", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *, const char*, const char*); + +#ifndef soap_read_SOAP_ENV__Fault +#define soap_read_SOAP_ENV__Fault(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_SOAP_ENV__Fault(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct SOAP_ENV__Fault * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Fault(struct soap*, int, const char*, const char*, size_t*); + +inline struct SOAP_ENV__Fault * soap_new_SOAP_ENV__Fault(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Fault(soap, n, NULL, NULL, NULL); } + +inline struct SOAP_ENV__Fault * soap_new_req_SOAP_ENV__Fault(struct soap *soap) { struct SOAP_ENV__Fault *_p = soap_instantiate_SOAP_ENV__Fault(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Fault(soap, _p); } return _p; } + +inline struct SOAP_ENV__Fault * soap_new_set_SOAP_ENV__Fault(struct soap *soap, 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 *_p = soap_instantiate_SOAP_ENV__Fault(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Fault(soap, _p); _p->faultcode = faultcode; _p->faultstring = faultstring; _p->faultactor = faultactor; _p->detail = detail; _p->SOAP_ENV__Code = SOAP_ENV__Code; _p->SOAP_ENV__Reason = SOAP_ENV__Reason; _p->SOAP_ENV__Node = SOAP_ENV__Node; _p->SOAP_ENV__Role = SOAP_ENV__Role; _p->SOAP_ENV__Detail = SOAP_ENV__Detail; } return _p; } + +inline void soap_delete_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap*, int, int, void*, size_t, const void*, size_t); + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Reason +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Reason (44) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap*, const char*, int, const struct SOAP_ENV__Reason *, const char*); +SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap*, const struct SOAP_ENV__Reason *, const char*, const char*); + +#ifndef soap_write_SOAP_ENV__Reason +#define soap_write_SOAP_ENV__Reason(soap, data) ( ICatDOI::soap_serialize_SOAP_ENV__Reason(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_SOAP_ENV__Reason(soap, data, "SOAP-ENV:Reason", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *, const char*, const char*); + +#ifndef soap_read_SOAP_ENV__Reason +#define soap_read_SOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_SOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct SOAP_ENV__Reason * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Reason(struct soap*, int, const char*, const char*, size_t*); + +inline struct SOAP_ENV__Reason * soap_new_SOAP_ENV__Reason(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Reason(soap, n, NULL, NULL, NULL); } + +inline struct SOAP_ENV__Reason * soap_new_req_SOAP_ENV__Reason(struct soap *soap) { struct SOAP_ENV__Reason *_p = soap_instantiate_SOAP_ENV__Reason(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Reason(soap, _p); } return _p; } + +inline struct SOAP_ENV__Reason * soap_new_set_SOAP_ENV__Reason(struct soap *soap, char *SOAP_ENV__Text) { struct SOAP_ENV__Reason *_p = soap_instantiate_SOAP_ENV__Reason(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Reason(soap, _p); _p->SOAP_ENV__Text = SOAP_ENV__Text; } return _p; } + +inline void soap_delete_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap*, int, int, void*, size_t, const void*, size_t); + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Code +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Code (42) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap*, const char*, int, const struct SOAP_ENV__Code *, const char*); +SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap*, const struct SOAP_ENV__Code *, const char*, const char*); + +#ifndef soap_write_SOAP_ENV__Code +#define soap_write_SOAP_ENV__Code(soap, data) ( ICatDOI::soap_serialize_SOAP_ENV__Code(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_SOAP_ENV__Code(soap, data, "SOAP-ENV:Code", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *, const char*, const char*); + +#ifndef soap_read_SOAP_ENV__Code +#define soap_read_SOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_SOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct SOAP_ENV__Code * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Code(struct soap*, int, const char*, const char*, size_t*); + +inline struct SOAP_ENV__Code * soap_new_SOAP_ENV__Code(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Code(soap, n, NULL, NULL, NULL); } + +inline struct SOAP_ENV__Code * soap_new_req_SOAP_ENV__Code(struct soap *soap) { struct SOAP_ENV__Code *_p = soap_instantiate_SOAP_ENV__Code(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Code(soap, _p); } return _p; } + +inline struct SOAP_ENV__Code * soap_new_set_SOAP_ENV__Code(struct soap *soap, char *SOAP_ENV__Value, struct SOAP_ENV__Code *SOAP_ENV__Subcode) { struct SOAP_ENV__Code *_p = soap_instantiate_SOAP_ENV__Code(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Code(soap, _p); _p->SOAP_ENV__Value = SOAP_ENV__Value; _p->SOAP_ENV__Subcode = SOAP_ENV__Subcode; } return _p; } + +inline void soap_delete_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap*, int, int, void*, size_t, const void*, size_t); + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Header +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Header (41) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap*, const char*, int, const struct SOAP_ENV__Header *, const char*); +SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap*, const char*, struct SOAP_ENV__Header *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap*, const struct SOAP_ENV__Header *, const char*, const char*); + +#ifndef soap_write_SOAP_ENV__Header +#define soap_write_SOAP_ENV__Header(soap, data) ( ICatDOI::soap_serialize_SOAP_ENV__Header(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_SOAP_ENV__Header(soap, data, "SOAP-ENV:Header", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *, const char*, const char*); + +#ifndef soap_read_SOAP_ENV__Header +#define soap_read_SOAP_ENV__Header(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_SOAP_ENV__Header(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct SOAP_ENV__Header * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Header(struct soap*, int, const char*, const char*, size_t*); + +inline struct SOAP_ENV__Header * soap_new_SOAP_ENV__Header(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Header(soap, n, NULL, NULL, NULL); } + +inline struct SOAP_ENV__Header * soap_new_req_SOAP_ENV__Header(struct soap *soap) { struct SOAP_ENV__Header *_p = soap_instantiate_SOAP_ENV__Header(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Header(soap, _p); } return _p; } + +inline struct SOAP_ENV__Header * soap_new_set_SOAP_ENV__Header(struct soap *soap) { struct SOAP_ENV__Header *_p = soap_instantiate_SOAP_ENV__Header(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Header(soap, _p); } return _p; } + +inline void soap_delete_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap*, int, int, void*, size_t, const void*, size_t); + +#endif + +#ifndef SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI +#define SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI (40) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns1__registerDatasetDOI(struct soap*, struct __ns1__registerDatasetDOI *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns1__registerDatasetDOI(struct soap*, const struct __ns1__registerDatasetDOI *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns1__registerDatasetDOI(struct soap*, const char*, int, const struct __ns1__registerDatasetDOI *, const char*); +SOAP_FMAC3 struct __ns1__registerDatasetDOI * SOAP_FMAC4 soap_in___ns1__registerDatasetDOI(struct soap*, const char*, struct __ns1__registerDatasetDOI *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns1__registerDatasetDOI(struct soap*, const struct __ns1__registerDatasetDOI *, const char*, const char*); + +#ifndef soap_write___ns1__registerDatasetDOI +#define soap_write___ns1__registerDatasetDOI(soap, data) ( ICatDOI::soap_serialize___ns1__registerDatasetDOI(soap, data), soap_begin_send(soap) || ICatDOI::soap_put___ns1__registerDatasetDOI(soap, data, "-ns1:registerDatasetDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct __ns1__registerDatasetDOI * SOAP_FMAC4 soap_get___ns1__registerDatasetDOI(struct soap*, struct __ns1__registerDatasetDOI *, const char*, const char*); + +#ifndef soap_read___ns1__registerDatasetDOI +#define soap_read___ns1__registerDatasetDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get___ns1__registerDatasetDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct __ns1__registerDatasetDOI * SOAP_FMAC2 soap_instantiate___ns1__registerDatasetDOI(struct soap*, int, const char*, const char*, size_t*); + +inline struct __ns1__registerDatasetDOI * soap_new___ns1__registerDatasetDOI(struct soap *soap, int n = -1) { return soap_instantiate___ns1__registerDatasetDOI(soap, n, NULL, NULL, NULL); } + +inline struct __ns1__registerDatasetDOI * soap_new_req___ns1__registerDatasetDOI(struct soap *soap) { struct __ns1__registerDatasetDOI *_p = soap_instantiate___ns1__registerDatasetDOI(soap, -1, NULL, NULL, NULL); if (_p) { soap_default___ns1__registerDatasetDOI(soap, _p); } return _p; } + +inline struct __ns1__registerDatasetDOI * soap_new_set___ns1__registerDatasetDOI(struct soap *soap, ns1__registerDatasetDOI *ns1__registerDatasetDOI_) { struct __ns1__registerDatasetDOI *_p = soap_instantiate___ns1__registerDatasetDOI(soap, -1, NULL, NULL, NULL); if (_p) { soap_default___ns1__registerDatasetDOI(soap, _p); _p->ns1__registerDatasetDOI_ = ns1__registerDatasetDOI_; } return _p; } + +inline void soap_delete___ns1__registerDatasetDOI(struct soap *soap, struct __ns1__registerDatasetDOI *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns1__registerDatasetDOI(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI +#define SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI (36) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns1__registerDatafileDOI(struct soap*, struct __ns1__registerDatafileDOI *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns1__registerDatafileDOI(struct soap*, const struct __ns1__registerDatafileDOI *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns1__registerDatafileDOI(struct soap*, const char*, int, const struct __ns1__registerDatafileDOI *, const char*); +SOAP_FMAC3 struct __ns1__registerDatafileDOI * SOAP_FMAC4 soap_in___ns1__registerDatafileDOI(struct soap*, const char*, struct __ns1__registerDatafileDOI *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns1__registerDatafileDOI(struct soap*, const struct __ns1__registerDatafileDOI *, const char*, const char*); + +#ifndef soap_write___ns1__registerDatafileDOI +#define soap_write___ns1__registerDatafileDOI(soap, data) ( ICatDOI::soap_serialize___ns1__registerDatafileDOI(soap, data), soap_begin_send(soap) || ICatDOI::soap_put___ns1__registerDatafileDOI(soap, data, "-ns1:registerDatafileDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct __ns1__registerDatafileDOI * SOAP_FMAC4 soap_get___ns1__registerDatafileDOI(struct soap*, struct __ns1__registerDatafileDOI *, const char*, const char*); + +#ifndef soap_read___ns1__registerDatafileDOI +#define soap_read___ns1__registerDatafileDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get___ns1__registerDatafileDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct __ns1__registerDatafileDOI * SOAP_FMAC2 soap_instantiate___ns1__registerDatafileDOI(struct soap*, int, const char*, const char*, size_t*); + +inline struct __ns1__registerDatafileDOI * soap_new___ns1__registerDatafileDOI(struct soap *soap, int n = -1) { return soap_instantiate___ns1__registerDatafileDOI(soap, n, NULL, NULL, NULL); } + +inline struct __ns1__registerDatafileDOI * soap_new_req___ns1__registerDatafileDOI(struct soap *soap) { struct __ns1__registerDatafileDOI *_p = soap_instantiate___ns1__registerDatafileDOI(soap, -1, NULL, NULL, NULL); if (_p) { soap_default___ns1__registerDatafileDOI(soap, _p); } return _p; } + +inline struct __ns1__registerDatafileDOI * soap_new_set___ns1__registerDatafileDOI(struct soap *soap, ns1__registerDatafileDOI *ns1__registerDatafileDOI_) { struct __ns1__registerDatafileDOI *_p = soap_instantiate___ns1__registerDatafileDOI(soap, -1, NULL, NULL, NULL); if (_p) { soap_default___ns1__registerDatafileDOI(soap, _p); _p->ns1__registerDatafileDOI_ = ns1__registerDatafileDOI_; } return _p; } + +inline void soap_delete___ns1__registerDatafileDOI(struct soap *soap, struct __ns1__registerDatafileDOI *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns1__registerDatafileDOI(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI +#define SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI (32) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns1__registerInvestigationDOI(struct soap*, struct __ns1__registerInvestigationDOI *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns1__registerInvestigationDOI(struct soap*, const struct __ns1__registerInvestigationDOI *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns1__registerInvestigationDOI(struct soap*, const char*, int, const struct __ns1__registerInvestigationDOI *, const char*); +SOAP_FMAC3 struct __ns1__registerInvestigationDOI * SOAP_FMAC4 soap_in___ns1__registerInvestigationDOI(struct soap*, const char*, struct __ns1__registerInvestigationDOI *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns1__registerInvestigationDOI(struct soap*, const struct __ns1__registerInvestigationDOI *, const char*, const char*); + +#ifndef soap_write___ns1__registerInvestigationDOI +#define soap_write___ns1__registerInvestigationDOI(soap, data) ( ICatDOI::soap_serialize___ns1__registerInvestigationDOI(soap, data), soap_begin_send(soap) || ICatDOI::soap_put___ns1__registerInvestigationDOI(soap, data, "-ns1:registerInvestigationDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct __ns1__registerInvestigationDOI * SOAP_FMAC4 soap_get___ns1__registerInvestigationDOI(struct soap*, struct __ns1__registerInvestigationDOI *, const char*, const char*); + +#ifndef soap_read___ns1__registerInvestigationDOI +#define soap_read___ns1__registerInvestigationDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get___ns1__registerInvestigationDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct __ns1__registerInvestigationDOI * SOAP_FMAC2 soap_instantiate___ns1__registerInvestigationDOI(struct soap*, int, const char*, const char*, size_t*); + +inline struct __ns1__registerInvestigationDOI * soap_new___ns1__registerInvestigationDOI(struct soap *soap, int n = -1) { return soap_instantiate___ns1__registerInvestigationDOI(soap, n, NULL, NULL, NULL); } + +inline struct __ns1__registerInvestigationDOI * soap_new_req___ns1__registerInvestigationDOI(struct soap *soap) { struct __ns1__registerInvestigationDOI *_p = soap_instantiate___ns1__registerInvestigationDOI(soap, -1, NULL, NULL, NULL); if (_p) { soap_default___ns1__registerInvestigationDOI(soap, _p); } return _p; } + +inline struct __ns1__registerInvestigationDOI * soap_new_set___ns1__registerInvestigationDOI(struct soap *soap, ns1__registerInvestigationDOI *ns1__registerInvestigationDOI_) { struct __ns1__registerInvestigationDOI *_p = soap_instantiate___ns1__registerInvestigationDOI(soap, -1, NULL, NULL, NULL); if (_p) { soap_default___ns1__registerInvestigationDOI(soap, _p); _p->ns1__registerInvestigationDOI_ = ns1__registerInvestigationDOI_; } return _p; } + +inline void soap_delete___ns1__registerInvestigationDOI(struct soap *soap, struct __ns1__registerInvestigationDOI *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns1__registerInvestigationDOI(struct soap*, int, int, void*, size_t, const void*, size_t); + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Detail +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Detail (22) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap*, const char*, int, const struct SOAP_ENV__Detail *, const char*); +SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail *, const char*); + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap*, const struct SOAP_ENV__Detail *, const char*, const char*); + +#ifndef soap_write_SOAP_ENV__Detail +#define soap_write_SOAP_ENV__Detail(soap, data) ( ICatDOI::soap_serialize_SOAP_ENV__Detail(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_SOAP_ENV__Detail(soap, data, "SOAP-ENV:Detail", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *, const char*, const char*); + +#ifndef soap_read_SOAP_ENV__Detail +#define soap_read_SOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_SOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + +SOAP_FMAC1 struct SOAP_ENV__Detail * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Detail(struct soap*, int, const char*, const char*, size_t*); + +inline struct SOAP_ENV__Detail * soap_new_SOAP_ENV__Detail(struct soap *soap, int n = -1) { return soap_instantiate_SOAP_ENV__Detail(soap, n, NULL, NULL, NULL); } + +inline struct SOAP_ENV__Detail * soap_new_req_SOAP_ENV__Detail(struct soap *soap, int __type, void *fault) { struct SOAP_ENV__Detail *_p = soap_instantiate_SOAP_ENV__Detail(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Detail(soap, _p); _p->__type = __type; _p->fault = fault; } return _p; } + +inline struct SOAP_ENV__Detail * soap_new_set_SOAP_ENV__Detail(struct soap *soap, char *__any, ns1__DataNotFoundException *ns1__DataNotFoundException_, ns1__DoiException *ns1__DoiException_, ns1__ICATException *ns1__ICATException_, ns1__InternalException *ns1__InternalException_, int __type, void *fault) { struct SOAP_ENV__Detail *_p = soap_instantiate_SOAP_ENV__Detail(soap, -1, NULL, NULL, NULL); if (_p) { soap_default_SOAP_ENV__Detail(soap, _p); _p->__any = __any; _p->ns1__DataNotFoundException_ = ns1__DataNotFoundException_; _p->ns1__DoiException_ = ns1__DoiException_; _p->ns1__ICATException_ = ns1__ICATException_; _p->ns1__InternalException_ = ns1__InternalException_; _p->__type = __type; _p->fault = fault; } return _p; } + +inline void soap_delete_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p) { soap_delete(soap, p); } + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap*, int, int, void*, size_t, const void*, size_t); + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Reason +#define SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Reason (47) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap*, const char *, int, struct SOAP_ENV__Reason *const*, const char *); +SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap*, const char*, struct SOAP_ENV__Reason **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*, const char*, const char*); + +#ifndef soap_write_PointerToSOAP_ENV__Reason +#define soap_write_PointerToSOAP_ENV__Reason(soap, data) ( ICatDOI::soap_serialize_PointerToSOAP_ENV__Reason(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerToSOAP_ENV__Reason(soap, data, "SOAP-ENV:Reason", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason **, const char*, const char*); + +#ifndef soap_read_PointerToSOAP_ENV__Reason +#define soap_read_PointerToSOAP_ENV__Reason(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerToSOAP_ENV__Reason(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Detail +#define SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Detail (46) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap*, const char *, int, struct SOAP_ENV__Detail *const*, const char *); +SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap*, const char*, struct SOAP_ENV__Detail **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*, const char*, const char*); + +#ifndef soap_write_PointerToSOAP_ENV__Detail +#define soap_write_PointerToSOAP_ENV__Detail(soap, data) ( ICatDOI::soap_serialize_PointerToSOAP_ENV__Detail(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerToSOAP_ENV__Detail(soap, data, "SOAP-ENV:Detail", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail **, const char*, const char*); + +#ifndef soap_read_PointerToSOAP_ENV__Detail +#define soap_read_PointerToSOAP_ENV__Detail(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerToSOAP_ENV__Detail(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Code +#define SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Code (43) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap*, const char *, int, struct SOAP_ENV__Code *const*, const char *); +SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap*, const char*, struct SOAP_ENV__Code **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*, const char*, const char*); + +#ifndef soap_write_PointerToSOAP_ENV__Code +#define soap_write_PointerToSOAP_ENV__Code(soap, data) ( ICatDOI::soap_serialize_PointerToSOAP_ENV__Code(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerToSOAP_ENV__Code(soap, data, "SOAP-ENV:Code", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code **, const char*, const char*); + +#ifndef soap_read_PointerToSOAP_ENV__Code +#define soap_read_PointerToSOAP_ENV__Code(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerToSOAP_ENV__Code(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#endif + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOIResponse +#define SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOIResponse (38) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatasetDOIResponse(struct soap*, ns1__registerDatasetDOIResponse *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatasetDOIResponse(struct soap*, const char *, int, ns1__registerDatasetDOIResponse *const*, const char *); +SOAP_FMAC3 ns1__registerDatasetDOIResponse ** SOAP_FMAC4 soap_in_PointerTons1__registerDatasetDOIResponse(struct soap*, const char*, ns1__registerDatasetDOIResponse **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatasetDOIResponse(struct soap*, ns1__registerDatasetDOIResponse *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__registerDatasetDOIResponse +#define soap_write_PointerTons1__registerDatasetDOIResponse(soap, data) ( ICatDOI::soap_serialize_PointerTons1__registerDatasetDOIResponse(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__registerDatasetDOIResponse(soap, data, "ns1:registerDatasetDOIResponse", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatasetDOIResponse ** SOAP_FMAC4 soap_get_PointerTons1__registerDatasetDOIResponse(struct soap*, ns1__registerDatasetDOIResponse **, const char*, const char*); + +#ifndef soap_read_PointerTons1__registerDatasetDOIResponse +#define soap_read_PointerTons1__registerDatasetDOIResponse(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__registerDatasetDOIResponse(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOI +#define SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOI (37) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatasetDOI(struct soap*, ns1__registerDatasetDOI *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatasetDOI(struct soap*, const char *, int, ns1__registerDatasetDOI *const*, const char *); +SOAP_FMAC3 ns1__registerDatasetDOI ** SOAP_FMAC4 soap_in_PointerTons1__registerDatasetDOI(struct soap*, const char*, ns1__registerDatasetDOI **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatasetDOI(struct soap*, ns1__registerDatasetDOI *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__registerDatasetDOI +#define soap_write_PointerTons1__registerDatasetDOI(soap, data) ( ICatDOI::soap_serialize_PointerTons1__registerDatasetDOI(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__registerDatasetDOI(soap, data, "ns1:registerDatasetDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatasetDOI ** SOAP_FMAC4 soap_get_PointerTons1__registerDatasetDOI(struct soap*, ns1__registerDatasetDOI **, const char*, const char*); + +#ifndef soap_read_PointerTons1__registerDatasetDOI +#define soap_read_PointerTons1__registerDatasetDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__registerDatasetDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOIResponse +#define SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOIResponse (34) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatafileDOIResponse(struct soap*, ns1__registerDatafileDOIResponse *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatafileDOIResponse(struct soap*, const char *, int, ns1__registerDatafileDOIResponse *const*, const char *); +SOAP_FMAC3 ns1__registerDatafileDOIResponse ** SOAP_FMAC4 soap_in_PointerTons1__registerDatafileDOIResponse(struct soap*, const char*, ns1__registerDatafileDOIResponse **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatafileDOIResponse(struct soap*, ns1__registerDatafileDOIResponse *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__registerDatafileDOIResponse +#define soap_write_PointerTons1__registerDatafileDOIResponse(soap, data) ( ICatDOI::soap_serialize_PointerTons1__registerDatafileDOIResponse(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__registerDatafileDOIResponse(soap, data, "ns1:registerDatafileDOIResponse", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatafileDOIResponse ** SOAP_FMAC4 soap_get_PointerTons1__registerDatafileDOIResponse(struct soap*, ns1__registerDatafileDOIResponse **, const char*, const char*); + +#ifndef soap_read_PointerTons1__registerDatafileDOIResponse +#define soap_read_PointerTons1__registerDatafileDOIResponse(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__registerDatafileDOIResponse(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOI +#define SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOI (33) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatafileDOI(struct soap*, ns1__registerDatafileDOI *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatafileDOI(struct soap*, const char *, int, ns1__registerDatafileDOI *const*, const char *); +SOAP_FMAC3 ns1__registerDatafileDOI ** SOAP_FMAC4 soap_in_PointerTons1__registerDatafileDOI(struct soap*, const char*, ns1__registerDatafileDOI **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatafileDOI(struct soap*, ns1__registerDatafileDOI *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__registerDatafileDOI +#define soap_write_PointerTons1__registerDatafileDOI(soap, data) ( ICatDOI::soap_serialize_PointerTons1__registerDatafileDOI(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__registerDatafileDOI(soap, data, "ns1:registerDatafileDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerDatafileDOI ** SOAP_FMAC4 soap_get_PointerTons1__registerDatafileDOI(struct soap*, ns1__registerDatafileDOI **, const char*, const char*); + +#ifndef soap_read_PointerTons1__registerDatafileDOI +#define soap_read_PointerTons1__registerDatafileDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__registerDatafileDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOIResponse +#define SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOIResponse (30) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerInvestigationDOIResponse(struct soap*, ns1__registerInvestigationDOIResponse *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerInvestigationDOIResponse(struct soap*, const char *, int, ns1__registerInvestigationDOIResponse *const*, const char *); +SOAP_FMAC3 ns1__registerInvestigationDOIResponse ** SOAP_FMAC4 soap_in_PointerTons1__registerInvestigationDOIResponse(struct soap*, const char*, ns1__registerInvestigationDOIResponse **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerInvestigationDOIResponse(struct soap*, ns1__registerInvestigationDOIResponse *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__registerInvestigationDOIResponse +#define soap_write_PointerTons1__registerInvestigationDOIResponse(soap, data) ( ICatDOI::soap_serialize_PointerTons1__registerInvestigationDOIResponse(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__registerInvestigationDOIResponse(soap, data, "ns1:registerInvestigationDOIResponse", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerInvestigationDOIResponse ** SOAP_FMAC4 soap_get_PointerTons1__registerInvestigationDOIResponse(struct soap*, ns1__registerInvestigationDOIResponse **, const char*, const char*); + +#ifndef soap_read_PointerTons1__registerInvestigationDOIResponse +#define soap_read_PointerTons1__registerInvestigationDOIResponse(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__registerInvestigationDOIResponse(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOI +#define SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOI (29) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerInvestigationDOI(struct soap*, ns1__registerInvestigationDOI *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerInvestigationDOI(struct soap*, const char *, int, ns1__registerInvestigationDOI *const*, const char *); +SOAP_FMAC3 ns1__registerInvestigationDOI ** SOAP_FMAC4 soap_in_PointerTons1__registerInvestigationDOI(struct soap*, const char*, ns1__registerInvestigationDOI **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerInvestigationDOI(struct soap*, ns1__registerInvestigationDOI *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__registerInvestigationDOI +#define soap_write_PointerTons1__registerInvestigationDOI(soap, data) ( ICatDOI::soap_serialize_PointerTons1__registerInvestigationDOI(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__registerInvestigationDOI(soap, data, "ns1:registerInvestigationDOI", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__registerInvestigationDOI ** SOAP_FMAC4 soap_get_PointerTons1__registerInvestigationDOI(struct soap*, ns1__registerInvestigationDOI **, const char*, const char*); + +#ifndef soap_read_PointerTons1__registerInvestigationDOI +#define soap_read_PointerTons1__registerInvestigationDOI(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__registerInvestigationDOI(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__InternalException +#define SOAP_TYPE_ICatDOI_PointerTons1__InternalException (26) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__InternalException(struct soap*, ns1__InternalException *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__InternalException(struct soap*, const char *, int, ns1__InternalException *const*, const char *); +SOAP_FMAC3 ns1__InternalException ** SOAP_FMAC4 soap_in_PointerTons1__InternalException(struct soap*, const char*, ns1__InternalException **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__InternalException(struct soap*, ns1__InternalException *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__InternalException +#define soap_write_PointerTons1__InternalException(soap, data) ( ICatDOI::soap_serialize_PointerTons1__InternalException(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__InternalException(soap, data, "ns1:InternalException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__InternalException ** SOAP_FMAC4 soap_get_PointerTons1__InternalException(struct soap*, ns1__InternalException **, const char*, const char*); + +#ifndef soap_read_PointerTons1__InternalException +#define soap_read_PointerTons1__InternalException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__InternalException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__ICATException +#define SOAP_TYPE_ICatDOI_PointerTons1__ICATException (25) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__ICATException(struct soap*, ns1__ICATException *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__ICATException(struct soap*, const char *, int, ns1__ICATException *const*, const char *); +SOAP_FMAC3 ns1__ICATException ** SOAP_FMAC4 soap_in_PointerTons1__ICATException(struct soap*, const char*, ns1__ICATException **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__ICATException(struct soap*, ns1__ICATException *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__ICATException +#define soap_write_PointerTons1__ICATException(soap, data) ( ICatDOI::soap_serialize_PointerTons1__ICATException(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__ICATException(soap, data, "ns1:ICATException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__ICATException ** SOAP_FMAC4 soap_get_PointerTons1__ICATException(struct soap*, ns1__ICATException **, const char*, const char*); + +#ifndef soap_read_PointerTons1__ICATException +#define soap_read_PointerTons1__ICATException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__ICATException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__DoiException +#define SOAP_TYPE_ICatDOI_PointerTons1__DoiException (24) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__DoiException(struct soap*, ns1__DoiException *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__DoiException(struct soap*, const char *, int, ns1__DoiException *const*, const char *); +SOAP_FMAC3 ns1__DoiException ** SOAP_FMAC4 soap_in_PointerTons1__DoiException(struct soap*, const char*, ns1__DoiException **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__DoiException(struct soap*, ns1__DoiException *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__DoiException +#define soap_write_PointerTons1__DoiException(soap, data) ( ICatDOI::soap_serialize_PointerTons1__DoiException(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__DoiException(soap, data, "ns1:DoiException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__DoiException ** SOAP_FMAC4 soap_get_PointerTons1__DoiException(struct soap*, ns1__DoiException **, const char*, const char*); + +#ifndef soap_read_PointerTons1__DoiException +#define soap_read_PointerTons1__DoiException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__DoiException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTons1__DataNotFoundException +#define SOAP_TYPE_ICatDOI_PointerTons1__DataNotFoundException (23) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__DataNotFoundException(struct soap*, ns1__DataNotFoundException *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__DataNotFoundException(struct soap*, const char *, int, ns1__DataNotFoundException *const*, const char *); +SOAP_FMAC3 ns1__DataNotFoundException ** SOAP_FMAC4 soap_in_PointerTons1__DataNotFoundException(struct soap*, const char*, ns1__DataNotFoundException **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__DataNotFoundException(struct soap*, ns1__DataNotFoundException *const*, const char*, const char*); + +#ifndef soap_write_PointerTons1__DataNotFoundException +#define soap_write_PointerTons1__DataNotFoundException(soap, data) ( ICatDOI::soap_serialize_PointerTons1__DataNotFoundException(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTons1__DataNotFoundException(soap, data, "ns1:DataNotFoundException", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 ns1__DataNotFoundException ** SOAP_FMAC4 soap_get_PointerTons1__DataNotFoundException(struct soap*, ns1__DataNotFoundException **, const char*, const char*); + +#ifndef soap_read_PointerTons1__DataNotFoundException +#define soap_read_PointerTons1__DataNotFoundException(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTons1__DataNotFoundException(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_PointerTostd__string +#define SOAP_TYPE_ICatDOI_PointerTostd__string (19) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTostd__string(struct soap*, std::string *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTostd__string(struct soap*, const char *, int, std::string *const*, const char *); +SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTostd__string(struct soap*, const char*, std::string **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTostd__string(struct soap*, std::string *const*, const char*, const char*); + +#ifndef soap_write_PointerTostd__string +#define soap_write_PointerTostd__string(soap, data) ( ICatDOI::soap_serialize_PointerTostd__string(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_PointerTostd__string(soap, data, "string", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTostd__string(struct soap*, std::string **, const char*, const char*); + +#ifndef soap_read_PointerTostd__string +#define soap_read_PointerTostd__string(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_PointerTostd__string(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI__QName +#define SOAP_TYPE_ICatDOI__QName (5) +#endif + +#define soap_default__QName(soap, a) soap_default_string(soap, a) + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap*, char *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap*, const char*, int, char*const*, const char*); +SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap*, const char*, char **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap*, char *const*, const char*, const char*); + +#ifndef soap_write__QName +#define soap_write__QName(soap, data) ( ICatDOI::soap_serialize__QName(soap, data), soap_begin_send(soap) || ICatDOI::soap_put__QName(soap, data, "byte", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap*, char **, const char*, const char*); + +#ifndef soap_read__QName +#define soap_read__QName(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get__QName(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +#ifndef SOAP_TYPE_ICatDOI_string +#define SOAP_TYPE_ICatDOI_string (4) +#endif +SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap*, char **); +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap*, char *const*); +SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap*, const char*, int, char*const*, const char*); +SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap*, const char*, char **, const char*); +SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap*, char *const*, const char*, const char*); + +#ifndef soap_write_string +#define soap_write_string(soap, data) ( ICatDOI::soap_serialize_string(soap, data), soap_begin_send(soap) || ICatDOI::soap_put_string(soap, data, "byte", NULL) || soap_end_send(soap), soap->error ) +#endif + +SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap*, char **, const char*, const char*); + +#ifndef soap_read_string +#define soap_read_string(soap, data) ( soap_begin_recv(soap) || !ICatDOI::soap_get_string(soap, data, NULL, NULL) || soap_end_recv(soap), soap->error ) +#endif + + +} // namespace ICatDOI + + +#endif + +/* End of ICatDOIH.h */ diff --git a/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIStub.h b/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIStub.h new file mode 100644 index 000000000000..2171deca0f93 --- /dev/null +++ b/Code/Mantid/Framework/ICat/inc/MantidICat/ICatDOI/GSoapGenerated/ICatDOIStub.h @@ -0,0 +1,431 @@ +/* ICatDOIStub.h + Generated by gSOAP 2.8.15 from ICatDOI.h + +Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved. +The generated code is released under ONE of the following licenses: +GPL or 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. +*/ + +#ifndef ICatDOIStub_H +#define ICatDOIStub_H +#include +#define SOAP_NAMESPACE_OF_ns2 "" +#define SOAP_NAMESPACE_OF_ns1 "http://webservice.doi.stfc.ac.uk/" +#ifndef WITH_NOGLOBAL +#define WITH_NOGLOBAL +#endif +#include "stdsoap2.h" +#if GSOAP_VERSION != 20815 +# error "GSOAP VERSION MISMATCH IN GENERATED CODE: PLEASE REINSTALL PACKAGE" +#endif + + +namespace ICatDOI { + +/******************************************************************************\ + * * + * Enumerations * + * * +\******************************************************************************/ + + +/******************************************************************************\ + * * + * Types with Custom Serializers * + * * +\******************************************************************************/ + + +/******************************************************************************\ + * * + * Classes and Structs * + * * +\******************************************************************************/ + + +#if 0 /* volatile type: do not declare here, declared elsewhere */ + +#endif + +#if 0 /* volatile type: do not declare here, declared elsewhere */ + +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI +#define SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI (8) +/* ns1:registerDatasetDOI */ +class SOAP_CMAC ns1__registerDatasetDOI +{ +public: + std::string *arg0; /* optional element of type xsd:string */ + LONG64 arg1; /* required element of type xsd:long */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 8; } /* = unique id SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__registerDatasetDOI() { ns1__registerDatasetDOI::soap_default(NULL); } + virtual ~ns1__registerDatasetDOI() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse +#define SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse (9) +/* ns1:registerDatasetDOIResponse */ +class SOAP_CMAC ns1__registerDatasetDOIResponse +{ +public: + std::string *return_; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 9; } /* = unique id SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__registerDatasetDOIResponse() { ns1__registerDatasetDOIResponse::soap_default(NULL); } + virtual ~ns1__registerDatasetDOIResponse() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__DataNotFoundException +#define SOAP_TYPE_ICatDOI_ns1__DataNotFoundException (10) +/* ns1:DataNotFoundException */ +class SOAP_CMAC ns1__DataNotFoundException +{ +public: + std::string *message; /* optional element of type xsd:string */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 10; } /* = unique id SOAP_TYPE_ICatDOI_ns1__DataNotFoundException */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__DataNotFoundException() { ns1__DataNotFoundException::soap_default(NULL); } + virtual ~ns1__DataNotFoundException() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__DoiException +#define SOAP_TYPE_ICatDOI_ns1__DoiException (11) +/* ns1:DoiException */ +class SOAP_CMAC ns1__DoiException +{ +public: + std::string *message; /* optional element of type xsd:string */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 11; } /* = unique id SOAP_TYPE_ICatDOI_ns1__DoiException */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__DoiException() { ns1__DoiException::soap_default(NULL); } + virtual ~ns1__DoiException() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__InternalException +#define SOAP_TYPE_ICatDOI_ns1__InternalException (12) +/* ns1:InternalException */ +class SOAP_CMAC ns1__InternalException +{ +public: + std::string *message; /* optional element of type xsd:string */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 12; } /* = unique id SOAP_TYPE_ICatDOI_ns1__InternalException */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__InternalException() { ns1__InternalException::soap_default(NULL); } + virtual ~ns1__InternalException() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__ICATException +#define SOAP_TYPE_ICatDOI_ns1__ICATException (13) +/* ns1:ICATException */ +class SOAP_CMAC ns1__ICATException +{ +public: + std::string *message; /* optional element of type xsd:string */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 13; } /* = unique id SOAP_TYPE_ICatDOI_ns1__ICATException */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__ICATException() { ns1__ICATException::soap_default(NULL); } + virtual ~ns1__ICATException() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI +#define SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI (14) +/* ns1:registerInvestigationDOI */ +class SOAP_CMAC ns1__registerInvestigationDOI +{ +public: + std::string *arg0; /* optional element of type xsd:string */ + LONG64 arg1; /* required element of type xsd:long */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 14; } /* = unique id SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__registerInvestigationDOI() { ns1__registerInvestigationDOI::soap_default(NULL); } + virtual ~ns1__registerInvestigationDOI() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse +#define SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse (15) +/* ns1:registerInvestigationDOIResponse */ +class SOAP_CMAC ns1__registerInvestigationDOIResponse +{ +public: + std::string *return_; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 15; } /* = unique id SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__registerInvestigationDOIResponse() { ns1__registerInvestigationDOIResponse::soap_default(NULL); } + virtual ~ns1__registerInvestigationDOIResponse() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI +#define SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI (16) +/* ns1:registerDatafileDOI */ +class SOAP_CMAC ns1__registerDatafileDOI +{ +public: + std::string *arg0; /* optional element of type xsd:string */ + LONG64 arg1; /* required element of type xsd:long */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 16; } /* = unique id SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__registerDatafileDOI() { ns1__registerDatafileDOI::soap_default(NULL); } + virtual ~ns1__registerDatafileDOI() { } +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse +#define SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse (17) +/* ns1:registerDatafileDOIResponse */ +class SOAP_CMAC ns1__registerDatafileDOIResponse +{ +public: + std::string *return_; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ + struct soap *soap; /* transient */ +public: + virtual int soap_type() const { return 17; } /* = unique id SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse */ + virtual void soap_default(struct soap*); + virtual void soap_serialize(struct soap*) const; + virtual int soap_put(struct soap*, const char*, const char*) const; + virtual int soap_out(struct soap*, const char*, int, const char*) const; + virtual void *soap_get(struct soap*, const char*, const char*); + virtual void *soap_in(struct soap*, const char*, const char*); + ns1__registerDatafileDOIResponse() { ns1__registerDatafileDOIResponse::soap_default(NULL); } + virtual ~ns1__registerDatafileDOIResponse() { } +}; +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Detail +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Detail (22) +/* SOAP-ENV:Detail */ +struct SOAP_ENV__Detail +{ +public: + char *__any; + ns1__DataNotFoundException *ns1__DataNotFoundException_; /* optional element of type ns1:DataNotFoundException */ + ns1__DoiException *ns1__DoiException_; /* optional element of type ns1:DoiException */ + ns1__ICATException *ns1__ICATException_; /* optional element of type ns1:ICATException */ + ns1__InternalException *ns1__InternalException_; /* optional element of type ns1:InternalException */ + int __type; /* any type of element (defined below) */ + void *fault; /* transient */ +public: + int soap_type() const { return 22; } /* = unique id SOAP_TYPE_ICatDOI_SOAP_ENV__Detail */ +}; +#endif + +#endif + +#ifndef SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI +#define SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI (32) +/* Operation wrapper: */ +struct __ns1__registerInvestigationDOI +{ +public: + ns1__registerInvestigationDOI *ns1__registerInvestigationDOI_; /* optional element of type ns1:registerInvestigationDOI */ +public: + int soap_type() const { return 32; } /* = unique id SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI */ +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI +#define SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI (36) +/* Operation wrapper: */ +struct __ns1__registerDatafileDOI +{ +public: + ns1__registerDatafileDOI *ns1__registerDatafileDOI_; /* optional element of type ns1:registerDatafileDOI */ +public: + int soap_type() const { return 36; } /* = unique id SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI */ +}; +#endif + +#ifndef SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI +#define SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI (40) +/* Operation wrapper: */ +struct __ns1__registerDatasetDOI +{ +public: + ns1__registerDatasetDOI *ns1__registerDatasetDOI_; /* optional element of type ns1:registerDatasetDOI */ +public: + int soap_type() const { return 40; } /* = unique id SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI */ +}; +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Header +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Header (41) +/* SOAP Header: */ +struct SOAP_ENV__Header +{ +public: + int soap_type() const { return 41; } /* = unique id SOAP_TYPE_ICatDOI_SOAP_ENV__Header */ +#ifdef WITH_NOEMPTYSTRUCT +private: + char dummy; /* dummy member to enable compilation */ +#endif +}; +#endif + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Code +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Code (42) +/* SOAP Fault Code: */ +struct SOAP_ENV__Code +{ +public: + char *SOAP_ENV__Value; /* optional element of type xsd:QName */ + struct SOAP_ENV__Code *SOAP_ENV__Subcode; /* optional element of type SOAP-ENV:Code */ +public: + int soap_type() const { return 42; } /* = unique id SOAP_TYPE_ICatDOI_SOAP_ENV__Code */ +}; +#endif + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Reason +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Reason (44) +/* SOAP-ENV:Reason */ +struct SOAP_ENV__Reason +{ +public: + char *SOAP_ENV__Text; /* optional element of type xsd:string */ +public: + int soap_type() const { return 44; } /* = unique id SOAP_TYPE_ICatDOI_SOAP_ENV__Reason */ +}; +#endif + +#endif + +#ifndef WITH_NOGLOBAL + +#ifndef SOAP_TYPE_ICatDOI_SOAP_ENV__Fault +#define SOAP_TYPE_ICatDOI_SOAP_ENV__Fault (45) +/* SOAP Fault: */ +struct SOAP_ENV__Fault +{ +public: + char *faultcode; /* optional element of type xsd:QName */ + char *faultstring; /* optional element of type xsd:string */ + char *faultactor; /* optional element of type xsd:string */ + struct SOAP_ENV__Detail *detail; /* optional element of type SOAP-ENV:Detail */ + struct SOAP_ENV__Code *SOAP_ENV__Code; /* optional element of type SOAP-ENV:Code */ + struct SOAP_ENV__Reason *SOAP_ENV__Reason; /* optional element of type SOAP-ENV:Reason */ + char *SOAP_ENV__Node; /* optional element of type xsd:string */ + char *SOAP_ENV__Role; /* optional element of type xsd:string */ + struct SOAP_ENV__Detail *SOAP_ENV__Detail; /* optional element of type SOAP-ENV:Detail */ +public: + int soap_type() const { return 45; } /* = unique id SOAP_TYPE_ICatDOI_SOAP_ENV__Fault */ +}; +#endif + +#endif + +/******************************************************************************\ + * * + * Typedefs * + * * +\******************************************************************************/ + +#ifndef SOAP_TYPE_ICatDOI__QName +#define SOAP_TYPE_ICatDOI__QName (5) +typedef char *_QName; +#endif + +#ifndef SOAP_TYPE_ICatDOI__XML +#define SOAP_TYPE_ICatDOI__XML (6) +typedef char *_XML; +#endif + + +/******************************************************************************\ + * * + * Externals * + * * +\******************************************************************************/ + + +} // namespace ICatDOI + + +#endif + +/* End of ICatDOIStub.h */ diff --git a/Code/Mantid/Framework/ICat/src/ICatDOI/GSoapGenerated/ICatDOIC.cpp b/Code/Mantid/Framework/ICat/src/ICatDOI/GSoapGenerated/ICatDOIC.cpp new file mode 100644 index 000000000000..ff5fcfb89f95 --- /dev/null +++ b/Code/Mantid/Framework/ICat/src/ICatDOI/GSoapGenerated/ICatDOIC.cpp @@ -0,0 +1,4186 @@ +/* ICatDOIC.cpp + Generated by gSOAP 2.8.15 from ICatDOI.h + +Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved. +The generated code is released under ONE of the following licenses: +GPL or 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. +*/ + +#if defined(__BORLANDC__) +#pragma option push -w-8060 +#pragma option push -w-8004 +#endif + +#include "MantidICat/ICatDOI/GSoapGenerated/ICatDOIH.h" + +namespace ICatDOI { + +SOAP_SOURCE_STAMP("@(#) ICatDOIC.cpp ver 2.8.15 2014-04-03 14:52:07 GMT") + + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 int SOAP_FMAC4 soap_getheader(struct soap *soap) +{ + soap->part = SOAP_IN_HEADER; + soap->header = soap_in_SOAP_ENV__Header(soap, "SOAP-ENV:Header", soap->header, NULL); + soap->part = SOAP_END_HEADER; + return soap->header == NULL; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_putheader(struct soap *soap) +{ + if (soap->version && soap->header) + { soap->part = SOAP_IN_HEADER; + if (soap_out_SOAP_ENV__Header(soap, "SOAP-ENV:Header", 0, soap->header, NULL)) + return soap->error; + soap->part = SOAP_END_HEADER; + } + return SOAP_OK; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serializeheader(struct soap *soap) +{ + if (soap->version && soap->header) + soap_serialize_SOAP_ENV__Header(soap, soap->header); +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_header(struct soap *soap) +{ + if (soap->header == NULL) + { if ((soap->header = soap_new_SOAP_ENV__Header(soap, -1))) + soap_default_SOAP_ENV__Header(soap, soap->header); + } +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_fault(struct soap *soap) +{ + if (soap->fault == NULL) + { soap->fault = soap_new_SOAP_ENV__Fault(soap, -1); + if (soap->fault == NULL) + return; + soap_default_SOAP_ENV__Fault(soap, soap->fault); + } + if (soap->version == 2 && !soap->fault->SOAP_ENV__Code) + { soap->fault->SOAP_ENV__Code = soap_new_SOAP_ENV__Code(soap, -1); + soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code); + } + if (soap->version == 2 && !soap->fault->SOAP_ENV__Reason) + { soap->fault->SOAP_ENV__Reason = soap_new_SOAP_ENV__Reason(soap, -1); + soap_default_SOAP_ENV__Reason(soap, soap->fault->SOAP_ENV__Reason); + } +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap *soap) +{ + soap_fault(soap); + if (soap->fault) + soap_serialize_SOAP_ENV__Fault(soap, soap->fault); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_putfault(struct soap *soap) +{ + if (soap->fault) + return soap_put_SOAP_ENV__Fault(soap, soap->fault, "SOAP-ENV:Fault", NULL); + return SOAP_OK; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_getfault(struct soap *soap) +{ + return (soap->fault = soap_get_SOAP_ENV__Fault(soap, NULL, "SOAP-ENV:Fault", NULL)) == NULL; +} + +SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap) +{ + soap_fault(soap); + if (soap->version == 2 && soap->fault->SOAP_ENV__Code) + return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Value; + return (const char**)&soap->fault->faultcode; +} + +SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultsubcode(struct soap *soap) +{ + soap_fault(soap); + if (soap->version == 2) + { if (soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode == NULL) + { soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode = soap_new_SOAP_ENV__Code(soap, -1); + soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode); + } + return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value; + } + return (const char**)&soap->fault->faultcode; +} + +SOAP_FMAC3 const char * SOAP_FMAC4 soap_check_faultsubcode(struct soap *soap) +{ + soap_fault(soap); + if (soap->version == 2) + { if (soap->fault->SOAP_ENV__Code && soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode && soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode) + return soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value; + return NULL; + } + return soap->fault->faultcode; +} + +SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultstring(struct soap *soap) +{ + soap_fault(soap); + if (soap->version == 2) + return (const char**)&soap->fault->SOAP_ENV__Reason->SOAP_ENV__Text; + return (const char**)&soap->fault->faultstring; +} + +SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultdetail(struct soap *soap) +{ + soap_fault(soap); + if (soap->version == 2) + { if (soap->fault->SOAP_ENV__Detail == NULL) + { soap->fault->SOAP_ENV__Detail = soap_new_SOAP_ENV__Detail(soap, -1); + soap_default_SOAP_ENV__Detail(soap, soap->fault->SOAP_ENV__Detail); + } + return (const char**)&soap->fault->SOAP_ENV__Detail->__any; + } + if (soap->fault->detail == NULL) + { soap->fault->detail = soap_new_SOAP_ENV__Detail(soap, -1); + soap_default_SOAP_ENV__Detail(soap, soap->fault->detail); + } + return (const char**)&soap->fault->detail->__any; +} + +SOAP_FMAC3 const char * SOAP_FMAC4 soap_check_faultdetail(struct soap *soap) +{ + soap_fault(soap); + if (soap->version == 2 && soap->fault->SOAP_ENV__Detail) + return soap->fault->SOAP_ENV__Detail->__any; + if (soap->fault->detail) + return soap->fault->detail->__any; + return NULL; +} + +#endif + +#ifndef WITH_NOIDREF +SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap *soap) +{ + int t; + if (soap->version == 1) + { for (;;) + { if (!soap_getelement(soap, &t)) + if (soap->error || soap_ignore_element(soap)) + break; + } + } + if (soap->error == SOAP_NO_TAG || soap->error == SOAP_EOF) + soap->error = SOAP_OK; + return soap->error; +} +#endif +SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type) +{ (void)type; + if (soap_peek_element(soap)) + return NULL; +#ifndef WITH_NOIDREF + if (!*soap->id || !(*type = soap_lookup_type(soap, soap->id))) + *type = soap_lookup_type(soap, soap->href); + switch (*type) + { + case SOAP_TYPE_ICatDOI_byte: + return soap_in_byte(soap, NULL, NULL, "xsd:byte"); + case SOAP_TYPE_ICatDOI_int: + return soap_in_int(soap, NULL, NULL, "xsd:int"); + case SOAP_TYPE_ICatDOI_LONG64: + return soap_in_LONG64(soap, NULL, NULL, "xsd:long"); + case SOAP_TYPE_ICatDOI_std__string: + return soap_in_std__string(soap, NULL, NULL, "xsd:string"); + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse: + return soap_in_ns1__registerDatafileDOIResponse(soap, NULL, NULL, "ns1:registerDatafileDOIResponse"); + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI: + return soap_in_ns1__registerDatafileDOI(soap, NULL, NULL, "ns1:registerDatafileDOI"); + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse: + return soap_in_ns1__registerInvestigationDOIResponse(soap, NULL, NULL, "ns1:registerInvestigationDOIResponse"); + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI: + return soap_in_ns1__registerInvestigationDOI(soap, NULL, NULL, "ns1:registerInvestigationDOI"); + case SOAP_TYPE_ICatDOI_ns1__ICATException: + return soap_in_ns1__ICATException(soap, NULL, NULL, "ns1:ICATException"); + case SOAP_TYPE_ICatDOI_ns1__InternalException: + return soap_in_ns1__InternalException(soap, NULL, NULL, "ns1:InternalException"); + case SOAP_TYPE_ICatDOI_ns1__DoiException: + return soap_in_ns1__DoiException(soap, NULL, NULL, "ns1:DoiException"); + case SOAP_TYPE_ICatDOI_ns1__DataNotFoundException: + return soap_in_ns1__DataNotFoundException(soap, NULL, NULL, "ns1:DataNotFoundException"); + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse: + return soap_in_ns1__registerDatasetDOIResponse(soap, NULL, NULL, "ns1:registerDatasetDOIResponse"); + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI: + return soap_in_ns1__registerDatasetDOI(soap, NULL, NULL, "ns1:registerDatasetDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOIResponse: + return soap_in_PointerTons1__registerDatasetDOIResponse(soap, NULL, NULL, "ns1:registerDatasetDOIResponse"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOI: + return soap_in_PointerTons1__registerDatasetDOI(soap, NULL, NULL, "ns1:registerDatasetDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOIResponse: + return soap_in_PointerTons1__registerDatafileDOIResponse(soap, NULL, NULL, "ns1:registerDatafileDOIResponse"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOI: + return soap_in_PointerTons1__registerDatafileDOI(soap, NULL, NULL, "ns1:registerDatafileDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOIResponse: + return soap_in_PointerTons1__registerInvestigationDOIResponse(soap, NULL, NULL, "ns1:registerInvestigationDOIResponse"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOI: + return soap_in_PointerTons1__registerInvestigationDOI(soap, NULL, NULL, "ns1:registerInvestigationDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__InternalException: + return soap_in_PointerTons1__InternalException(soap, NULL, NULL, "ns1:InternalException"); + case SOAP_TYPE_ICatDOI_PointerTons1__ICATException: + return soap_in_PointerTons1__ICATException(soap, NULL, NULL, "ns1:ICATException"); + case SOAP_TYPE_ICatDOI_PointerTons1__DoiException: + return soap_in_PointerTons1__DoiException(soap, NULL, NULL, "ns1:DoiException"); + case SOAP_TYPE_ICatDOI_PointerTons1__DataNotFoundException: + return soap_in_PointerTons1__DataNotFoundException(soap, NULL, NULL, "ns1:DataNotFoundException"); + case SOAP_TYPE_ICatDOI_PointerTostd__string: + return soap_in_PointerTostd__string(soap, NULL, NULL, "xsd:string"); + case SOAP_TYPE_ICatDOI__QName: + { char **s; + s = soap_in__QName(soap, NULL, NULL, "xsd:QName"); + return s ? *s : NULL; + } + case SOAP_TYPE_ICatDOI_string: + { char **s; + s = soap_in_string(soap, NULL, NULL, "xsd:string"); + return s ? *s : NULL; + } + default: +#endif + { const char *t = soap->type; + if (!*t) + t = soap->tag; + if (!soap_match_tag(soap, t, "xsd:string")) + { *type = SOAP_TYPE_ICatDOI_std__string; + return soap_in_std__string(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:registerDatafileDOIResponse")) + { *type = SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse; + return soap_in_ns1__registerDatafileDOIResponse(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:registerDatafileDOI")) + { *type = SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI; + return soap_in_ns1__registerDatafileDOI(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:registerInvestigationDOIResponse")) + { *type = SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse; + return soap_in_ns1__registerInvestigationDOIResponse(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:registerInvestigationDOI")) + { *type = SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI; + return soap_in_ns1__registerInvestigationDOI(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:ICATException")) + { *type = SOAP_TYPE_ICatDOI_ns1__ICATException; + return soap_in_ns1__ICATException(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:InternalException")) + { *type = SOAP_TYPE_ICatDOI_ns1__InternalException; + return soap_in_ns1__InternalException(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:DoiException")) + { *type = SOAP_TYPE_ICatDOI_ns1__DoiException; + return soap_in_ns1__DoiException(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:DataNotFoundException")) + { *type = SOAP_TYPE_ICatDOI_ns1__DataNotFoundException; + return soap_in_ns1__DataNotFoundException(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:registerDatasetDOIResponse")) + { *type = SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse; + return soap_in_ns1__registerDatasetDOIResponse(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "ns1:registerDatasetDOI")) + { *type = SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI; + return soap_in_ns1__registerDatasetDOI(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "xsd:byte")) + { *type = SOAP_TYPE_ICatDOI_byte; + return soap_in_byte(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "xsd:int")) + { *type = SOAP_TYPE_ICatDOI_int; + return soap_in_int(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "xsd:long")) + { *type = SOAP_TYPE_ICatDOI_LONG64; + return soap_in_LONG64(soap, NULL, NULL, NULL); + } + if (!soap_match_tag(soap, t, "xsd:QName")) + { char **s; + *type = SOAP_TYPE_ICatDOI__QName; + s = soap_in__QName(soap, NULL, NULL, NULL); + return s ? *s : NULL; + } + if (!soap_match_tag(soap, t, "xsd:string")) + { char **s; + *type = SOAP_TYPE_ICatDOI_string; + s = soap_in_string(soap, NULL, NULL, NULL); + return s ? *s : NULL; + } + t = soap->tag; +#ifndef WITH_NOIDREF + } +#endif + } + soap->error = SOAP_TAG_MISMATCH; + return NULL; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap *soap) +{ + if (!soap_peek_element(soap)) + { int t; + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unexpected element '%s' in input (level=%u, %d)\n", soap->tag, soap->level, soap->body)); + if (soap->mustUnderstand && !soap->other) + return soap->error = SOAP_MUSTUNDERSTAND; + if (((soap->mode & SOAP_XML_STRICT) && soap->part != SOAP_IN_HEADER) || !soap_match_tag(soap, soap->tag, "SOAP-ENV:")) + { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "REJECTING element '%s'\n", soap->tag)); + return soap->error = SOAP_TAG_MISMATCH; + } + if (!*soap->id || !soap_getelement(soap, &t)) + { soap->peeked = 0; + if (soap->fignore) + soap->error = soap->fignore(soap, soap->tag); + else + soap->error = SOAP_OK; + DBGLOG(TEST, if (!soap->error) SOAP_MESSAGE(fdebug, "IGNORING element '%s'\n", soap->tag)); + if (!soap->error && soap->body) + { soap->level++; + while (!soap_ignore_element(soap)) + ; + if (soap->error == SOAP_NO_TAG) + soap->error = soap_element_end_in(soap, NULL); + } + } + } + return soap->error; +} + +#ifndef WITH_NOIDREF +SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap *soap) +{ + int i; + struct soap_plist *pp; + if (soap->version == 1 && soap->encodingStyle && !(soap->mode & (SOAP_XML_TREE | SOAP_XML_GRAPH))) + for (i = 0; i < SOAP_PTRHASH; i++) + for (pp = soap->pht[i]; pp; pp = pp->next) + if (pp->mark1 == 2 || pp->mark2 == 2) + if (soap_putelement(soap, pp->ptr, "id", pp->id, pp->type)) + return soap->error; + return SOAP_OK; +} +#endif +SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, const char *tag, int id, int type) +{ (void)tag; + switch (type) + { + case SOAP_TYPE_ICatDOI_byte: + return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte"); + case SOAP_TYPE_ICatDOI_int: + return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int"); + case SOAP_TYPE_ICatDOI_LONG64: + return soap_out_LONG64(soap, tag, id, (const LONG64 *)ptr, "xsd:long"); + case SOAP_TYPE_ICatDOI_std__string: + return soap_out_std__string(soap, tag, id, (const std::string *)ptr, "xsd:string"); + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse: + return ((ns1__registerDatafileDOIResponse *)ptr)->soap_out(soap, tag, id, "ns1:registerDatafileDOIResponse"); + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI: + return ((ns1__registerDatafileDOI *)ptr)->soap_out(soap, tag, id, "ns1:registerDatafileDOI"); + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse: + return ((ns1__registerInvestigationDOIResponse *)ptr)->soap_out(soap, tag, id, "ns1:registerInvestigationDOIResponse"); + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI: + return ((ns1__registerInvestigationDOI *)ptr)->soap_out(soap, tag, id, "ns1:registerInvestigationDOI"); + case SOAP_TYPE_ICatDOI_ns1__ICATException: + return ((ns1__ICATException *)ptr)->soap_out(soap, tag, id, "ns1:ICATException"); + case SOAP_TYPE_ICatDOI_ns1__InternalException: + return ((ns1__InternalException *)ptr)->soap_out(soap, tag, id, "ns1:InternalException"); + case SOAP_TYPE_ICatDOI_ns1__DoiException: + return ((ns1__DoiException *)ptr)->soap_out(soap, tag, id, "ns1:DoiException"); + case SOAP_TYPE_ICatDOI_ns1__DataNotFoundException: + return ((ns1__DataNotFoundException *)ptr)->soap_out(soap, tag, id, "ns1:DataNotFoundException"); + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse: + return ((ns1__registerDatasetDOIResponse *)ptr)->soap_out(soap, tag, id, "ns1:registerDatasetDOIResponse"); + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI: + return ((ns1__registerDatasetDOI *)ptr)->soap_out(soap, tag, id, "ns1:registerDatasetDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOIResponse: + return soap_out_PointerTons1__registerDatasetDOIResponse(soap, tag, id, (ns1__registerDatasetDOIResponse *const*)ptr, "ns1:registerDatasetDOIResponse"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOI: + return soap_out_PointerTons1__registerDatasetDOI(soap, tag, id, (ns1__registerDatasetDOI *const*)ptr, "ns1:registerDatasetDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOIResponse: + return soap_out_PointerTons1__registerDatafileDOIResponse(soap, tag, id, (ns1__registerDatafileDOIResponse *const*)ptr, "ns1:registerDatafileDOIResponse"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOI: + return soap_out_PointerTons1__registerDatafileDOI(soap, tag, id, (ns1__registerDatafileDOI *const*)ptr, "ns1:registerDatafileDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOIResponse: + return soap_out_PointerTons1__registerInvestigationDOIResponse(soap, tag, id, (ns1__registerInvestigationDOIResponse *const*)ptr, "ns1:registerInvestigationDOIResponse"); + case SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOI: + return soap_out_PointerTons1__registerInvestigationDOI(soap, tag, id, (ns1__registerInvestigationDOI *const*)ptr, "ns1:registerInvestigationDOI"); + case SOAP_TYPE_ICatDOI_PointerTons1__InternalException: + return soap_out_PointerTons1__InternalException(soap, tag, id, (ns1__InternalException *const*)ptr, "ns1:InternalException"); + case SOAP_TYPE_ICatDOI_PointerTons1__ICATException: + return soap_out_PointerTons1__ICATException(soap, tag, id, (ns1__ICATException *const*)ptr, "ns1:ICATException"); + case SOAP_TYPE_ICatDOI_PointerTons1__DoiException: + return soap_out_PointerTons1__DoiException(soap, tag, id, (ns1__DoiException *const*)ptr, "ns1:DoiException"); + case SOAP_TYPE_ICatDOI_PointerTons1__DataNotFoundException: + return soap_out_PointerTons1__DataNotFoundException(soap, tag, id, (ns1__DataNotFoundException *const*)ptr, "ns1:DataNotFoundException"); + case SOAP_TYPE_ICatDOI_PointerTostd__string: + return soap_out_PointerTostd__string(soap, tag, id, (std::string *const*)ptr, "xsd:string"); + case SOAP_TYPE_ICatDOI__QName: + return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:QName"); + case SOAP_TYPE_ICatDOI_string: + return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:string"); + } + return SOAP_OK; +} + +#ifndef WITH_NOIDREF +SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr, int type) +{ + (void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */ + switch (type) + { + case SOAP_TYPE_ICatDOI_std__string: + soap_serialize_std__string(soap, (const std::string *)ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse: + ((ns1__registerDatafileDOIResponse *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI: + ((ns1__registerDatafileDOI *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse: + ((ns1__registerInvestigationDOIResponse *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI: + ((ns1__registerInvestigationDOI *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__ICATException: + ((ns1__ICATException *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__InternalException: + ((ns1__InternalException *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__DoiException: + ((ns1__DoiException *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__DataNotFoundException: + ((ns1__DataNotFoundException *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse: + ((ns1__registerDatasetDOIResponse *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI: + ((ns1__registerDatasetDOI *)ptr)->soap_serialize(soap); + break; + case SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI: + soap_serialize___ns1__registerDatasetDOI(soap, (const struct __ns1__registerDatasetDOI *)ptr); + break; + case SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI: + soap_serialize___ns1__registerDatafileDOI(soap, (const struct __ns1__registerDatafileDOI *)ptr); + break; + case SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI: + soap_serialize___ns1__registerInvestigationDOI(soap, (const struct __ns1__registerInvestigationDOI *)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOIResponse: + soap_serialize_PointerTons1__registerDatasetDOIResponse(soap, (ns1__registerDatasetDOIResponse *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOI: + soap_serialize_PointerTons1__registerDatasetDOI(soap, (ns1__registerDatasetDOI *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOIResponse: + soap_serialize_PointerTons1__registerDatafileDOIResponse(soap, (ns1__registerDatafileDOIResponse *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOI: + soap_serialize_PointerTons1__registerDatafileDOI(soap, (ns1__registerDatafileDOI *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOIResponse: + soap_serialize_PointerTons1__registerInvestigationDOIResponse(soap, (ns1__registerInvestigationDOIResponse *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOI: + soap_serialize_PointerTons1__registerInvestigationDOI(soap, (ns1__registerInvestigationDOI *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__InternalException: + soap_serialize_PointerTons1__InternalException(soap, (ns1__InternalException *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__ICATException: + soap_serialize_PointerTons1__ICATException(soap, (ns1__ICATException *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__DoiException: + soap_serialize_PointerTons1__DoiException(soap, (ns1__DoiException *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTons1__DataNotFoundException: + soap_serialize_PointerTons1__DataNotFoundException(soap, (ns1__DataNotFoundException *const*)ptr); + break; + case SOAP_TYPE_ICatDOI_PointerTostd__string: + soap_serialize_PointerTostd__string(soap, (std::string *const*)ptr); + break; + case SOAP_TYPE_ICatDOI__QName: + soap_serialize_string(soap, (char*const*)&ptr); + break; + case SOAP_TYPE_ICatDOI_string: + soap_serialize_string(soap, (char*const*)&ptr); + break; + } +} +#endif + +SOAP_FMAC3 void * SOAP_FMAC4 ICatDOI_instantiate(struct soap *soap, int t, const char *type, const char *arrayType, size_t *n) +{ (void)type; + switch (t) + { + case SOAP_TYPE_ICatDOI_std__string: + return (void*)soap_instantiate_std__string(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI: + return (void*)soap_instantiate_ns1__registerDatasetDOI(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse: + return (void*)soap_instantiate_ns1__registerDatasetDOIResponse(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__DataNotFoundException: + return (void*)soap_instantiate_ns1__DataNotFoundException(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__DoiException: + return (void*)soap_instantiate_ns1__DoiException(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__InternalException: + return (void*)soap_instantiate_ns1__InternalException(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__ICATException: + return (void*)soap_instantiate_ns1__ICATException(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI: + return (void*)soap_instantiate_ns1__registerInvestigationDOI(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse: + return (void*)soap_instantiate_ns1__registerInvestigationDOIResponse(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI: + return (void*)soap_instantiate_ns1__registerDatafileDOI(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse: + return (void*)soap_instantiate_ns1__registerDatafileDOIResponse(soap, -1, type, arrayType, n); +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Detail: + return (void*)soap_instantiate_SOAP_ENV__Detail(soap, -1, type, arrayType, n); +#endif + case SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI: + return (void*)soap_instantiate___ns1__registerInvestigationDOI(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI: + return (void*)soap_instantiate___ns1__registerDatafileDOI(soap, -1, type, arrayType, n); + case SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI: + return (void*)soap_instantiate___ns1__registerDatasetDOI(soap, -1, type, arrayType, n); +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Header: + return (void*)soap_instantiate_SOAP_ENV__Header(soap, -1, type, arrayType, n); +#endif +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Code: + return (void*)soap_instantiate_SOAP_ENV__Code(soap, -1, type, arrayType, n); +#endif +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Reason: + return (void*)soap_instantiate_SOAP_ENV__Reason(soap, -1, type, arrayType, n); +#endif +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Fault: + return (void*)soap_instantiate_SOAP_ENV__Fault(soap, -1, type, arrayType, n); +#endif + } + return NULL; +} + +SOAP_FMAC3 int SOAP_FMAC4 ICatDOI_fdelete(struct soap_clist *p) +{ switch (p->type) + { + case SOAP_TYPE_ICatDOI_std__string: + if (p->size < 0) + SOAP_DELETE((std::string*)p->ptr); + else + SOAP_DELETE_ARRAY((std::string*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI: + if (p->size < 0) + SOAP_DELETE((ns1__registerDatasetDOI*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__registerDatasetDOI*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse: + if (p->size < 0) + SOAP_DELETE((ns1__registerDatasetDOIResponse*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__registerDatasetDOIResponse*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__DataNotFoundException: + if (p->size < 0) + SOAP_DELETE((ns1__DataNotFoundException*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__DataNotFoundException*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__DoiException: + if (p->size < 0) + SOAP_DELETE((ns1__DoiException*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__DoiException*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__InternalException: + if (p->size < 0) + SOAP_DELETE((ns1__InternalException*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__InternalException*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__ICATException: + if (p->size < 0) + SOAP_DELETE((ns1__ICATException*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__ICATException*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI: + if (p->size < 0) + SOAP_DELETE((ns1__registerInvestigationDOI*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__registerInvestigationDOI*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse: + if (p->size < 0) + SOAP_DELETE((ns1__registerInvestigationDOIResponse*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__registerInvestigationDOIResponse*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI: + if (p->size < 0) + SOAP_DELETE((ns1__registerDatafileDOI*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__registerDatafileDOI*)p->ptr); + break; + case SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse: + if (p->size < 0) + SOAP_DELETE((ns1__registerDatafileDOIResponse*)p->ptr); + else + SOAP_DELETE_ARRAY((ns1__registerDatafileDOIResponse*)p->ptr); + break; +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Detail: + if (p->size < 0) + SOAP_DELETE((struct SOAP_ENV__Detail*)p->ptr); + else + SOAP_DELETE_ARRAY((struct SOAP_ENV__Detail*)p->ptr); + break; +#endif + case SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI: + if (p->size < 0) + SOAP_DELETE((struct __ns1__registerInvestigationDOI*)p->ptr); + else + SOAP_DELETE_ARRAY((struct __ns1__registerInvestigationDOI*)p->ptr); + break; + case SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI: + if (p->size < 0) + SOAP_DELETE((struct __ns1__registerDatafileDOI*)p->ptr); + else + SOAP_DELETE_ARRAY((struct __ns1__registerDatafileDOI*)p->ptr); + break; + case SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI: + if (p->size < 0) + SOAP_DELETE((struct __ns1__registerDatasetDOI*)p->ptr); + else + SOAP_DELETE_ARRAY((struct __ns1__registerDatasetDOI*)p->ptr); + break; +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Header: + if (p->size < 0) + SOAP_DELETE((struct SOAP_ENV__Header*)p->ptr); + else + SOAP_DELETE_ARRAY((struct SOAP_ENV__Header*)p->ptr); + break; +#endif +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Code: + if (p->size < 0) + SOAP_DELETE((struct SOAP_ENV__Code*)p->ptr); + else + SOAP_DELETE_ARRAY((struct SOAP_ENV__Code*)p->ptr); + break; +#endif +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Reason: + if (p->size < 0) + SOAP_DELETE((struct SOAP_ENV__Reason*)p->ptr); + else + SOAP_DELETE_ARRAY((struct SOAP_ENV__Reason*)p->ptr); + break; +#endif +#ifndef WITH_NOGLOBAL + case SOAP_TYPE_ICatDOI_SOAP_ENV__Fault: + if (p->size < 0) + SOAP_DELETE((struct SOAP_ENV__Fault*)p->ptr); + else + SOAP_DELETE_ARRAY((struct SOAP_ENV__Fault*)p->ptr); + break; +#endif + default: return SOAP_ERR; + } + return SOAP_OK; +} + +SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap *soap, const char *id, void *p, int t, size_t n, const char *type, const char *arrayType) +{ return soap_id_enter(soap, id, p, t, n, 0, type, arrayType, ICatDOI_instantiate); +} + +SOAP_FMAC3 void* SOAP_FMAC4 soap_container_id_forward(struct soap *soap, const char *href, void *p, size_t len, int st, int tt, size_t n, unsigned int k) +{ return soap_id_forward(soap, href, p, len, st, tt, n, k, ICatDOI_container_insert); +} + +SOAP_FMAC3 void SOAP_FMAC4 ICatDOI_container_insert(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +#ifdef WIN32 +#pragma warning(push) +#pragma warning(disable:4065) +#endif +{ + (void)soap; (void)st; (void)p; (void)len; (void)q; (void)n; /* appease -Wall -Werror */ + switch (tt) + { + default: + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Could not insert type=%d in %d\n", st, tt)); + } +#ifdef WIN32 +#pragma warning(pop) +#endif +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap *soap, char *a) +{ + (void)soap; /* appease -Wall -Werror */ +#ifdef SOAP_DEFAULT_byte + *a = SOAP_DEFAULT_byte; +#else + *a = (char)0; +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap *soap, const char *tag, int id, const char *a, const char *type) +{ (void)soap; (void)type; (void)tag; (void)id; + return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_ICatDOI_byte); +} + +SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type) +{ char *p; + p = soap_inbyte(soap, tag, a, type, SOAP_TYPE_ICatDOI_byte); + return p; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap *soap, const char *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_byte); + if (soap_out_byte(soap, tag?tag:"byte", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap *soap, char *p, const char *tag, const char *type) +{ + if ((p = soap_in_byte(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap *soap, int *a) +{ + (void)soap; /* appease -Wall -Werror */ +#ifdef SOAP_DEFAULT_int + *a = SOAP_DEFAULT_int; +#else + *a = (int)0; +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap *soap, const char *tag, int id, const int *a, const char *type) +{ (void)soap; (void)type; (void)tag; (void)id; + return soap_outint(soap, tag, id, a, type, SOAP_TYPE_ICatDOI_int); +} + +SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type) +{ int *p; + p = soap_inint(soap, tag, a, type, SOAP_TYPE_ICatDOI_int); + return p; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap *soap, const int *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_int); + if (soap_out_int(soap, tag?tag:"int", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap *soap, int *p, const char *tag, const char *type) +{ + if ((p = soap_in_int(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_LONG64(struct soap *soap, LONG64 *a) +{ + (void)soap; /* appease -Wall -Werror */ +#ifdef SOAP_DEFAULT_LONG64 + *a = SOAP_DEFAULT_LONG64; +#else + *a = (LONG64)0; +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_LONG64(struct soap *soap, const char *tag, int id, const LONG64 *a, const char *type) +{ (void)soap; (void)type; (void)tag; (void)id; + return soap_outLONG64(soap, tag, id, a, type, SOAP_TYPE_ICatDOI_LONG64); +} + +SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_in_LONG64(struct soap *soap, const char *tag, LONG64 *a, const char *type) +{ LONG64 *p; + p = soap_inLONG64(soap, tag, a, type, SOAP_TYPE_ICatDOI_LONG64); + return p; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_LONG64(struct soap *soap, const LONG64 *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_LONG64); + if (soap_out_LONG64(soap, tag?tag:"long", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_get_LONG64(struct soap *soap, LONG64 *p, const char *tag, const char *type) +{ + if ((p = soap_in_LONG64(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__string(struct soap *soap, std::string *p) +{ + (void)soap; /* appease -Wall -Werror */ + p->erase(); +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__string(struct soap *soap, const std::string *a) +{ (void)soap; (void)a; /* appease -Wall -Werror */ +} +SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__string(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) +{ + if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) + return soap_element_null(soap, tag, id, type); + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_ICatDOI_std__string), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) + return soap->error; + return SOAP_OK; +} + +SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_std__string(struct soap *soap, const char *tag, std::string *s, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!s) + s = soap_new_std__string(soap, -1); + if (soap->null) + if (s) + s->erase(); + if (soap->body && !*soap->href) + { char *t; + s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_ICatDOI_std__string, sizeof(std::string), soap->type, soap->arrayType); + if (s) + { if (!(t = soap_string_in(soap, 1, 0, -1))) + return NULL; + s->assign(t); + } + } + else + s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_ICatDOI_std__string, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_ICatDOI_std__string, 0, sizeof(std::string), 0, soap_copy_std__string); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + return s; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_std__string(struct soap *soap, const std::string *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_std__string); + if (soap_out_std__string(soap, tag?tag:"string", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_std__string(struct soap *soap, std::string *p, const char *tag, const char *type) +{ + if ((p = soap_in_std__string(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 std::string * SOAP_FMAC2 soap_instantiate_std__string(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__string(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_std__string, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(std::string); + if (size) + *size = sizeof(std::string); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(std::string, n); + if (size) + *size = n * sizeof(std::string); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (std::string*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__string(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); + *(std::string*)p = *(std::string*)q; +} + +void ns1__registerDatafileDOIResponse::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__registerDatafileDOIResponse::return_ = NULL; + /* transient soap skipped */ +} + +void ns1__registerDatafileDOIResponse::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__registerDatafileDOIResponse::return_); + /* transient soap skipped */ +#endif +} + +int ns1__registerDatafileDOIResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__registerDatafileDOIResponse(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatafileDOIResponse(struct soap *soap, const char *tag, int id, const ns1__registerDatafileDOIResponse *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "return", -1, &(a->ns1__registerDatafileDOIResponse::return_), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__registerDatafileDOIResponse::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__registerDatafileDOIResponse(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__registerDatafileDOIResponse * SOAP_FMAC4 soap_in_ns1__registerDatafileDOIResponse(struct soap *soap, const char *tag, ns1__registerDatafileDOIResponse *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__registerDatafileDOIResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse, sizeof(ns1__registerDatafileDOIResponse), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__registerDatafileDOIResponse *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_return_1 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_return_1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "return", &(a->ns1__registerDatafileDOIResponse::return_), "xsd:string")) + { soap_flag_return_1--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__registerDatafileDOIResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse, 0, sizeof(ns1__registerDatafileDOIResponse), 0, soap_copy_ns1__registerDatafileDOIResponse); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +int ns1__registerDatafileDOIResponse::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse); + if (this->soap_out(soap, tag?tag:"ns1:registerDatafileDOIResponse", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__registerDatafileDOIResponse::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__registerDatafileDOIResponse(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__registerDatafileDOIResponse * SOAP_FMAC4 soap_get_ns1__registerDatafileDOIResponse(struct soap *soap, ns1__registerDatafileDOIResponse *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__registerDatafileDOIResponse(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__registerDatafileDOIResponse * SOAP_FMAC2 soap_instantiate_ns1__registerDatafileDOIResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__registerDatafileDOIResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__registerDatafileDOIResponse); + if (size) + *size = sizeof(ns1__registerDatafileDOIResponse); + ((ns1__registerDatafileDOIResponse*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__registerDatafileDOIResponse, n); + if (size) + *size = n * sizeof(ns1__registerDatafileDOIResponse); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__registerDatafileDOIResponse*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__registerDatafileDOIResponse*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatafileDOIResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__registerDatafileDOIResponse %p -> %p\n", q, p)); + *(ns1__registerDatafileDOIResponse*)p = *(ns1__registerDatafileDOIResponse*)q; +} + +void ns1__registerDatafileDOI::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__registerDatafileDOI::arg0 = NULL; + soap_default_LONG64(soap, &this->ns1__registerDatafileDOI::arg1); + /* transient soap skipped */ +} + +void ns1__registerDatafileDOI::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__registerDatafileDOI::arg0); + /* transient soap skipped */ +#endif +} + +int ns1__registerDatafileDOI::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__registerDatafileDOI(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatafileDOI(struct soap *soap, const char *tag, int id, const ns1__registerDatafileDOI *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "arg0", -1, &(a->ns1__registerDatafileDOI::arg0), "")) + return soap->error; + if (soap_out_LONG64(soap, "arg1", -1, &(a->ns1__registerDatafileDOI::arg1), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__registerDatafileDOI::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__registerDatafileDOI(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__registerDatafileDOI * SOAP_FMAC4 soap_in_ns1__registerDatafileDOI(struct soap *soap, const char *tag, ns1__registerDatafileDOI *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__registerDatafileDOI *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI, sizeof(ns1__registerDatafileDOI), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__registerDatafileDOI *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_arg01 = 1; + size_t soap_flag_arg11 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_arg01 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "arg0", &(a->ns1__registerDatafileDOI::arg0), "xsd:string")) + { soap_flag_arg01--; + continue; + } + if (soap_flag_arg11 && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_LONG64(soap, "arg1", &(a->ns1__registerDatafileDOI::arg1), "xsd:long")) + { soap_flag_arg11--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__registerDatafileDOI *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI, 0, sizeof(ns1__registerDatafileDOI), 0, soap_copy_ns1__registerDatafileDOI); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_arg11 > 0)) + { soap->error = SOAP_OCCURS; + return NULL; + } + return a; +} + +int ns1__registerDatafileDOI::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI); + if (this->soap_out(soap, tag?tag:"ns1:registerDatafileDOI", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__registerDatafileDOI::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__registerDatafileDOI(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__registerDatafileDOI * SOAP_FMAC4 soap_get_ns1__registerDatafileDOI(struct soap *soap, ns1__registerDatafileDOI *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__registerDatafileDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__registerDatafileDOI * SOAP_FMAC2 soap_instantiate_ns1__registerDatafileDOI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__registerDatafileDOI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__registerDatafileDOI); + if (size) + *size = sizeof(ns1__registerDatafileDOI); + ((ns1__registerDatafileDOI*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__registerDatafileDOI, n); + if (size) + *size = n * sizeof(ns1__registerDatafileDOI); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__registerDatafileDOI*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__registerDatafileDOI*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatafileDOI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__registerDatafileDOI %p -> %p\n", q, p)); + *(ns1__registerDatafileDOI*)p = *(ns1__registerDatafileDOI*)q; +} + +void ns1__registerInvestigationDOIResponse::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__registerInvestigationDOIResponse::return_ = NULL; + /* transient soap skipped */ +} + +void ns1__registerInvestigationDOIResponse::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__registerInvestigationDOIResponse::return_); + /* transient soap skipped */ +#endif +} + +int ns1__registerInvestigationDOIResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__registerInvestigationDOIResponse(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerInvestigationDOIResponse(struct soap *soap, const char *tag, int id, const ns1__registerInvestigationDOIResponse *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "return", -1, &(a->ns1__registerInvestigationDOIResponse::return_), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__registerInvestigationDOIResponse::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__registerInvestigationDOIResponse(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__registerInvestigationDOIResponse * SOAP_FMAC4 soap_in_ns1__registerInvestigationDOIResponse(struct soap *soap, const char *tag, ns1__registerInvestigationDOIResponse *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__registerInvestigationDOIResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse, sizeof(ns1__registerInvestigationDOIResponse), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__registerInvestigationDOIResponse *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_return_1 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_return_1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "return", &(a->ns1__registerInvestigationDOIResponse::return_), "xsd:string")) + { soap_flag_return_1--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__registerInvestigationDOIResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse, 0, sizeof(ns1__registerInvestigationDOIResponse), 0, soap_copy_ns1__registerInvestigationDOIResponse); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +int ns1__registerInvestigationDOIResponse::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse); + if (this->soap_out(soap, tag?tag:"ns1:registerInvestigationDOIResponse", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__registerInvestigationDOIResponse::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__registerInvestigationDOIResponse(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__registerInvestigationDOIResponse * SOAP_FMAC4 soap_get_ns1__registerInvestigationDOIResponse(struct soap *soap, ns1__registerInvestigationDOIResponse *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__registerInvestigationDOIResponse(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__registerInvestigationDOIResponse * SOAP_FMAC2 soap_instantiate_ns1__registerInvestigationDOIResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__registerInvestigationDOIResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__registerInvestigationDOIResponse); + if (size) + *size = sizeof(ns1__registerInvestigationDOIResponse); + ((ns1__registerInvestigationDOIResponse*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__registerInvestigationDOIResponse, n); + if (size) + *size = n * sizeof(ns1__registerInvestigationDOIResponse); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__registerInvestigationDOIResponse*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__registerInvestigationDOIResponse*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerInvestigationDOIResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__registerInvestigationDOIResponse %p -> %p\n", q, p)); + *(ns1__registerInvestigationDOIResponse*)p = *(ns1__registerInvestigationDOIResponse*)q; +} + +void ns1__registerInvestigationDOI::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__registerInvestigationDOI::arg0 = NULL; + soap_default_LONG64(soap, &this->ns1__registerInvestigationDOI::arg1); + /* transient soap skipped */ +} + +void ns1__registerInvestigationDOI::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__registerInvestigationDOI::arg0); + /* transient soap skipped */ +#endif +} + +int ns1__registerInvestigationDOI::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__registerInvestigationDOI(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerInvestigationDOI(struct soap *soap, const char *tag, int id, const ns1__registerInvestigationDOI *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "arg0", -1, &(a->ns1__registerInvestigationDOI::arg0), "")) + return soap->error; + if (soap_out_LONG64(soap, "arg1", -1, &(a->ns1__registerInvestigationDOI::arg1), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__registerInvestigationDOI::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__registerInvestigationDOI(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__registerInvestigationDOI * SOAP_FMAC4 soap_in_ns1__registerInvestigationDOI(struct soap *soap, const char *tag, ns1__registerInvestigationDOI *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__registerInvestigationDOI *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI, sizeof(ns1__registerInvestigationDOI), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__registerInvestigationDOI *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_arg01 = 1; + size_t soap_flag_arg11 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_arg01 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "arg0", &(a->ns1__registerInvestigationDOI::arg0), "xsd:string")) + { soap_flag_arg01--; + continue; + } + if (soap_flag_arg11 && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_LONG64(soap, "arg1", &(a->ns1__registerInvestigationDOI::arg1), "xsd:long")) + { soap_flag_arg11--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__registerInvestigationDOI *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI, 0, sizeof(ns1__registerInvestigationDOI), 0, soap_copy_ns1__registerInvestigationDOI); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_arg11 > 0)) + { soap->error = SOAP_OCCURS; + return NULL; + } + return a; +} + +int ns1__registerInvestigationDOI::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI); + if (this->soap_out(soap, tag?tag:"ns1:registerInvestigationDOI", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__registerInvestigationDOI::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__registerInvestigationDOI(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__registerInvestigationDOI * SOAP_FMAC4 soap_get_ns1__registerInvestigationDOI(struct soap *soap, ns1__registerInvestigationDOI *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__registerInvestigationDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__registerInvestigationDOI * SOAP_FMAC2 soap_instantiate_ns1__registerInvestigationDOI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__registerInvestigationDOI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__registerInvestigationDOI); + if (size) + *size = sizeof(ns1__registerInvestigationDOI); + ((ns1__registerInvestigationDOI*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__registerInvestigationDOI, n); + if (size) + *size = n * sizeof(ns1__registerInvestigationDOI); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__registerInvestigationDOI*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__registerInvestigationDOI*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerInvestigationDOI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__registerInvestigationDOI %p -> %p\n", q, p)); + *(ns1__registerInvestigationDOI*)p = *(ns1__registerInvestigationDOI*)q; +} + +void ns1__ICATException::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__ICATException::message = NULL; + /* transient soap skipped */ +} + +void ns1__ICATException::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__ICATException::message); + /* transient soap skipped */ +#endif +} + +int ns1__ICATException::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__ICATException(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__ICATException(struct soap *soap, const char *tag, int id, const ns1__ICATException *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__ICATException), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "message", -1, &(a->ns1__ICATException::message), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__ICATException::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__ICATException(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__ICATException * SOAP_FMAC4 soap_in_ns1__ICATException(struct soap *soap, const char *tag, ns1__ICATException *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__ICATException *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__ICATException, sizeof(ns1__ICATException), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__ICATException) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__ICATException *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_message1 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_message1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "message", &(a->ns1__ICATException::message), "xsd:string")) + { soap_flag_message1--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__ICATException *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__ICATException, 0, sizeof(ns1__ICATException), 0, soap_copy_ns1__ICATException); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +int ns1__ICATException::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__ICATException); + if (this->soap_out(soap, tag?tag:"ns1:ICATException", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__ICATException::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__ICATException(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__ICATException * SOAP_FMAC4 soap_get_ns1__ICATException(struct soap *soap, ns1__ICATException *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__ICATException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__ICATException * SOAP_FMAC2 soap_instantiate_ns1__ICATException(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__ICATException(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__ICATException, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__ICATException); + if (size) + *size = sizeof(ns1__ICATException); + ((ns1__ICATException*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__ICATException, n); + if (size) + *size = n * sizeof(ns1__ICATException); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__ICATException*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__ICATException*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__ICATException(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__ICATException %p -> %p\n", q, p)); + *(ns1__ICATException*)p = *(ns1__ICATException*)q; +} + +void ns1__InternalException::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__InternalException::message = NULL; + /* transient soap skipped */ +} + +void ns1__InternalException::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__InternalException::message); + /* transient soap skipped */ +#endif +} + +int ns1__InternalException::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__InternalException(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__InternalException(struct soap *soap, const char *tag, int id, const ns1__InternalException *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__InternalException), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "message", -1, &(a->ns1__InternalException::message), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__InternalException::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__InternalException(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__InternalException * SOAP_FMAC4 soap_in_ns1__InternalException(struct soap *soap, const char *tag, ns1__InternalException *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__InternalException *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__InternalException, sizeof(ns1__InternalException), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__InternalException) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__InternalException *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_message1 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_message1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "message", &(a->ns1__InternalException::message), "xsd:string")) + { soap_flag_message1--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__InternalException *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__InternalException, 0, sizeof(ns1__InternalException), 0, soap_copy_ns1__InternalException); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +int ns1__InternalException::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__InternalException); + if (this->soap_out(soap, tag?tag:"ns1:InternalException", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__InternalException::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__InternalException(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__InternalException * SOAP_FMAC4 soap_get_ns1__InternalException(struct soap *soap, ns1__InternalException *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__InternalException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__InternalException * SOAP_FMAC2 soap_instantiate_ns1__InternalException(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__InternalException(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__InternalException, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__InternalException); + if (size) + *size = sizeof(ns1__InternalException); + ((ns1__InternalException*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__InternalException, n); + if (size) + *size = n * sizeof(ns1__InternalException); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__InternalException*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__InternalException*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__InternalException(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__InternalException %p -> %p\n", q, p)); + *(ns1__InternalException*)p = *(ns1__InternalException*)q; +} + +void ns1__DoiException::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__DoiException::message = NULL; + /* transient soap skipped */ +} + +void ns1__DoiException::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__DoiException::message); + /* transient soap skipped */ +#endif +} + +int ns1__DoiException::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__DoiException(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__DoiException(struct soap *soap, const char *tag, int id, const ns1__DoiException *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__DoiException), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "message", -1, &(a->ns1__DoiException::message), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__DoiException::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__DoiException(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__DoiException * SOAP_FMAC4 soap_in_ns1__DoiException(struct soap *soap, const char *tag, ns1__DoiException *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__DoiException *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__DoiException, sizeof(ns1__DoiException), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__DoiException) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__DoiException *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_message1 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_message1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "message", &(a->ns1__DoiException::message), "xsd:string")) + { soap_flag_message1--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__DoiException *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__DoiException, 0, sizeof(ns1__DoiException), 0, soap_copy_ns1__DoiException); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +int ns1__DoiException::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__DoiException); + if (this->soap_out(soap, tag?tag:"ns1:DoiException", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__DoiException::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__DoiException(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__DoiException * SOAP_FMAC4 soap_get_ns1__DoiException(struct soap *soap, ns1__DoiException *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__DoiException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__DoiException * SOAP_FMAC2 soap_instantiate_ns1__DoiException(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__DoiException(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__DoiException, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__DoiException); + if (size) + *size = sizeof(ns1__DoiException); + ((ns1__DoiException*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__DoiException, n); + if (size) + *size = n * sizeof(ns1__DoiException); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__DoiException*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__DoiException*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__DoiException(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__DoiException %p -> %p\n", q, p)); + *(ns1__DoiException*)p = *(ns1__DoiException*)q; +} + +void ns1__DataNotFoundException::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__DataNotFoundException::message = NULL; + /* transient soap skipped */ +} + +void ns1__DataNotFoundException::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__DataNotFoundException::message); + /* transient soap skipped */ +#endif +} + +int ns1__DataNotFoundException::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__DataNotFoundException(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__DataNotFoundException(struct soap *soap, const char *tag, int id, const ns1__DataNotFoundException *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "message", -1, &(a->ns1__DataNotFoundException::message), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__DataNotFoundException::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__DataNotFoundException(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__DataNotFoundException * SOAP_FMAC4 soap_in_ns1__DataNotFoundException(struct soap *soap, const char *tag, ns1__DataNotFoundException *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__DataNotFoundException *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException, sizeof(ns1__DataNotFoundException), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__DataNotFoundException) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__DataNotFoundException *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_message1 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_message1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "message", &(a->ns1__DataNotFoundException::message), "xsd:string")) + { soap_flag_message1--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__DataNotFoundException *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException, 0, sizeof(ns1__DataNotFoundException), 0, soap_copy_ns1__DataNotFoundException); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +int ns1__DataNotFoundException::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException); + if (this->soap_out(soap, tag?tag:"ns1:DataNotFoundException", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__DataNotFoundException::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__DataNotFoundException(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__DataNotFoundException * SOAP_FMAC4 soap_get_ns1__DataNotFoundException(struct soap *soap, ns1__DataNotFoundException *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__DataNotFoundException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__DataNotFoundException * SOAP_FMAC2 soap_instantiate_ns1__DataNotFoundException(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__DataNotFoundException(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__DataNotFoundException); + if (size) + *size = sizeof(ns1__DataNotFoundException); + ((ns1__DataNotFoundException*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__DataNotFoundException, n); + if (size) + *size = n * sizeof(ns1__DataNotFoundException); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__DataNotFoundException*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__DataNotFoundException*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__DataNotFoundException(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__DataNotFoundException %p -> %p\n", q, p)); + *(ns1__DataNotFoundException*)p = *(ns1__DataNotFoundException*)q; +} + +void ns1__registerDatasetDOIResponse::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__registerDatasetDOIResponse::return_ = NULL; + /* transient soap skipped */ +} + +void ns1__registerDatasetDOIResponse::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__registerDatasetDOIResponse::return_); + /* transient soap skipped */ +#endif +} + +int ns1__registerDatasetDOIResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__registerDatasetDOIResponse(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatasetDOIResponse(struct soap *soap, const char *tag, int id, const ns1__registerDatasetDOIResponse *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "return", -1, &(a->ns1__registerDatasetDOIResponse::return_), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__registerDatasetDOIResponse::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__registerDatasetDOIResponse(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__registerDatasetDOIResponse * SOAP_FMAC4 soap_in_ns1__registerDatasetDOIResponse(struct soap *soap, const char *tag, ns1__registerDatasetDOIResponse *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__registerDatasetDOIResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse, sizeof(ns1__registerDatasetDOIResponse), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__registerDatasetDOIResponse *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_return_1 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_return_1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "return", &(a->ns1__registerDatasetDOIResponse::return_), "xsd:string")) + { soap_flag_return_1--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__registerDatasetDOIResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse, 0, sizeof(ns1__registerDatasetDOIResponse), 0, soap_copy_ns1__registerDatasetDOIResponse); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +int ns1__registerDatasetDOIResponse::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse); + if (this->soap_out(soap, tag?tag:"ns1:registerDatasetDOIResponse", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__registerDatasetDOIResponse::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__registerDatasetDOIResponse(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__registerDatasetDOIResponse * SOAP_FMAC4 soap_get_ns1__registerDatasetDOIResponse(struct soap *soap, ns1__registerDatasetDOIResponse *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__registerDatasetDOIResponse(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__registerDatasetDOIResponse * SOAP_FMAC2 soap_instantiate_ns1__registerDatasetDOIResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__registerDatasetDOIResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__registerDatasetDOIResponse); + if (size) + *size = sizeof(ns1__registerDatasetDOIResponse); + ((ns1__registerDatasetDOIResponse*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__registerDatasetDOIResponse, n); + if (size) + *size = n * sizeof(ns1__registerDatasetDOIResponse); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__registerDatasetDOIResponse*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__registerDatasetDOIResponse*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatasetDOIResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__registerDatasetDOIResponse %p -> %p\n", q, p)); + *(ns1__registerDatasetDOIResponse*)p = *(ns1__registerDatasetDOIResponse*)q; +} + +void ns1__registerDatasetDOI::soap_default(struct soap *soap) +{ + this->soap = soap; + this->ns1__registerDatasetDOI::arg0 = NULL; + soap_default_LONG64(soap, &this->ns1__registerDatasetDOI::arg1); + /* transient soap skipped */ +} + +void ns1__registerDatasetDOI::soap_serialize(struct soap *soap) const +{ +#ifndef WITH_NOIDREF + (void)soap; /* appease -Wall -Werror */ + soap_serialize_PointerTostd__string(soap, &this->ns1__registerDatasetDOI::arg0); + /* transient soap skipped */ +#endif +} + +int ns1__registerDatasetDOI::soap_out(struct soap *soap, const char *tag, int id, const char *type) const +{ + return soap_out_ns1__registerDatasetDOI(soap, tag, id, this, type); +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__registerDatasetDOI(struct soap *soap, const char *tag, int id, const ns1__registerDatasetDOI *a, const char *type) +{ + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI), type)) + return soap->error; + if (soap_out_PointerTostd__string(soap, "arg0", -1, &(a->ns1__registerDatasetDOI::arg0), "")) + return soap->error; + if (soap_out_LONG64(soap, "arg1", -1, &(a->ns1__registerDatasetDOI::arg1), "")) + return soap->error; + /* transient soap skipped */ + return soap_element_end_out(soap, tag); +} + +void *ns1__registerDatasetDOI::soap_in(struct soap *soap, const char *tag, const char *type) +{ return soap_in_ns1__registerDatasetDOI(soap, tag, this, type); +} + +SOAP_FMAC3 ns1__registerDatasetDOI * SOAP_FMAC4 soap_in_ns1__registerDatasetDOI(struct soap *soap, const char *tag, ns1__registerDatasetDOI *a, const char *type) +{ + (void)type; /* appease -Wall -Werror */ + if (soap_element_begin_in(soap, tag, 0, NULL)) + return NULL; + a = (ns1__registerDatasetDOI *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI, sizeof(ns1__registerDatasetDOI), soap->type, soap->arrayType); + if (!a) + return NULL; + if (soap->alloced) + { a->soap_default(soap); + if (soap->clist->type != SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI) + { soap_revert(soap); + *soap->id = '\0'; + return (ns1__registerDatasetDOI *)a->soap_in(soap, tag, type); + } + } + size_t soap_flag_arg01 = 1; + size_t soap_flag_arg11 = 1; + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_arg01 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_PointerTostd__string(soap, "arg0", &(a->ns1__registerDatasetDOI::arg0), "xsd:string")) + { soap_flag_arg01--; + continue; + } + if (soap_flag_arg11 && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_LONG64(soap, "arg1", &(a->ns1__registerDatasetDOI::arg1), "xsd:long")) + { soap_flag_arg11--; + continue; + } + /* transient soap skipped */ + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (ns1__registerDatasetDOI *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI, 0, sizeof(ns1__registerDatasetDOI), 0, soap_copy_ns1__registerDatasetDOI); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_arg11 > 0)) + { soap->error = SOAP_OCCURS; + return NULL; + } + return a; +} + +int ns1__registerDatasetDOI::soap_put(struct soap *soap, const char *tag, const char *type) const +{ + register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI); + if (this->soap_out(soap, tag?tag:"ns1:registerDatasetDOI", id, type)) + return soap->error; + return soap_putindependent(soap); +} + +void *ns1__registerDatasetDOI::soap_get(struct soap *soap, const char *tag, const char *type) +{ + return soap_get_ns1__registerDatasetDOI(soap, this, tag, type); +} + +SOAP_FMAC3 ns1__registerDatasetDOI * SOAP_FMAC4 soap_get_ns1__registerDatasetDOI(struct soap *soap, ns1__registerDatasetDOI *p, const char *tag, const char *type) +{ + if ((p = soap_in_ns1__registerDatasetDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 ns1__registerDatasetDOI * SOAP_FMAC2 soap_instantiate_ns1__registerDatasetDOI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns1__registerDatasetDOI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(ns1__registerDatasetDOI); + if (size) + *size = sizeof(ns1__registerDatasetDOI); + ((ns1__registerDatasetDOI*)cp->ptr)->soap = soap; + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(ns1__registerDatasetDOI, n); + if (size) + *size = n * sizeof(ns1__registerDatasetDOI); + if (cp->ptr) + for (int i = 0; i < n; i++) + ((ns1__registerDatasetDOI*)cp->ptr)[i].soap = soap; + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (ns1__registerDatasetDOI*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns1__registerDatasetDOI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns1__registerDatasetDOI %p -> %p\n", q, p)); + *(ns1__registerDatasetDOI*)p = *(ns1__registerDatasetDOI*)q; +} + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_default__QName(soap, &a->faultcode); + soap_default_string(soap, &a->faultstring); + soap_default_string(soap, &a->faultactor); + a->detail = NULL; + a->SOAP_ENV__Code = NULL; + a->SOAP_ENV__Reason = NULL; + soap_default_string(soap, &a->SOAP_ENV__Node); + soap_default_string(soap, &a->SOAP_ENV__Role); + a->SOAP_ENV__Detail = NULL; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_serialize__QName(soap, &a->faultcode); + soap_serialize_string(soap, &a->faultstring); + soap_serialize_string(soap, &a->faultactor); + soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->detail); + soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Code); + soap_serialize_PointerToSOAP_ENV__Reason(soap, &a->SOAP_ENV__Reason); + soap_serialize_string(soap, &a->SOAP_ENV__Node); + soap_serialize_string(soap, &a->SOAP_ENV__Role); + soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->SOAP_ENV__Detail); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Fault *a, const char *type) +{ + const char *soap_tmp_faultcode = soap_QName2s(soap, a->faultcode); + (void)soap; (void)tag; (void)id; (void)type; + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Fault), type)) + return soap->error; + if (soap_out__QName(soap, "faultcode", -1, (char*const*)&soap_tmp_faultcode, "")) + return soap->error; + if (soap_out_string(soap, "faultstring", -1, &a->faultstring, "")) + return soap->error; + if (soap_out_string(soap, "faultactor", -1, &a->faultactor, "")) + return soap->error; + if (soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, "")) + return soap->error; + if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, "")) + return soap->error; + if (soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, "")) + return soap->error; + if (soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, "")) + return soap->error; + if (soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, "")) + return soap->error; + if (soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, "")) + return soap->error; + return soap_element_end_out(soap, tag); +} + +SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap *soap, const char *tag, struct SOAP_ENV__Fault *a, const char *type) +{ + size_t soap_flag_faultcode = 1; + size_t soap_flag_faultstring = 1; + size_t soap_flag_faultactor = 1; + size_t soap_flag_detail = 1; + size_t soap_flag_SOAP_ENV__Code = 1; + size_t soap_flag_SOAP_ENV__Reason = 1; + size_t soap_flag_SOAP_ENV__Node = 1; + size_t soap_flag_SOAP_ENV__Role = 1; + size_t soap_flag_SOAP_ENV__Detail = 1; + if (soap_element_begin_in(soap, tag, 0, type)) + return NULL; + a = (struct SOAP_ENV__Fault *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Fault, sizeof(struct SOAP_ENV__Fault), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default_SOAP_ENV__Fault(soap, a); + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_faultcode && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in__QName(soap, "faultcode", &a->faultcode, "")) + { soap_flag_faultcode--; + continue; + } + if (soap_flag_faultstring && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_string(soap, "faultstring", &a->faultstring, "xsd:string")) + { soap_flag_faultstring--; + continue; + } + if (soap_flag_faultactor && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_string(soap, "faultactor", &a->faultactor, "xsd:string")) + { soap_flag_faultactor--; + continue; + } + if (soap_flag_detail && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerToSOAP_ENV__Detail(soap, "detail", &a->detail, "")) + { soap_flag_detail--; + continue; + } + if (soap_flag_SOAP_ENV__Code && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", &a->SOAP_ENV__Code, "")) + { soap_flag_SOAP_ENV__Code--; + continue; + } + if (soap_flag_SOAP_ENV__Reason && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", &a->SOAP_ENV__Reason, "")) + { soap_flag_SOAP_ENV__Reason--; + continue; + } + if (soap_flag_SOAP_ENV__Node && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_string(soap, "SOAP-ENV:Node", &a->SOAP_ENV__Node, "xsd:string")) + { soap_flag_SOAP_ENV__Node--; + continue; + } + if (soap_flag_SOAP_ENV__Role && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_string(soap, "SOAP-ENV:Role", &a->SOAP_ENV__Role, "xsd:string")) + { soap_flag_SOAP_ENV__Role--; + continue; + } + if (soap_flag_SOAP_ENV__Detail && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", &a->SOAP_ENV__Detail, "")) + { soap_flag_SOAP_ENV__Detail--; + continue; + } + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (struct SOAP_ENV__Fault *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_SOAP_ENV__Fault, 0, sizeof(struct SOAP_ENV__Fault), 0, NULL); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_SOAP_ENV__Fault); + if (soap_out_SOAP_ENV__Fault(soap, tag?tag:"SOAP-ENV:Fault", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p, const char *tag, const char *type) +{ + if ((p = soap_in_SOAP_ENV__Fault(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct SOAP_ENV__Fault * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Fault(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Fault(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_SOAP_ENV__Fault, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Fault); + if (size) + *size = sizeof(struct SOAP_ENV__Fault); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct SOAP_ENV__Fault, n); + if (size) + *size = n * sizeof(struct SOAP_ENV__Fault); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct SOAP_ENV__Fault*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Fault %p -> %p\n", q, p)); + *(struct SOAP_ENV__Fault*)p = *(struct SOAP_ENV__Fault*)q; +} + +#endif + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_default_string(soap, &a->SOAP_ENV__Text); +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_serialize_string(soap, &a->SOAP_ENV__Text); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Reason *a, const char *type) +{ + (void)soap; (void)tag; (void)id; (void)type; + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason), type)) + return soap->error; + if (soap->lang) + soap_set_attr(soap, "xml:lang", soap->lang, 1); + if (soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, "")) + return soap->error; + return soap_element_end_out(soap, tag); +} + +SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason *a, const char *type) +{ + size_t soap_flag_SOAP_ENV__Text = 1; + if (soap_element_begin_in(soap, tag, 0, type)) + return NULL; + a = (struct SOAP_ENV__Reason *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default_SOAP_ENV__Reason(soap, a); + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_SOAP_ENV__Text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in_string(soap, "SOAP-ENV:Text", &a->SOAP_ENV__Text, "xsd:string")) + { soap_flag_SOAP_ENV__Text--; + continue; + } + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (struct SOAP_ENV__Reason *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason, 0, sizeof(struct SOAP_ENV__Reason), 0, NULL); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason); + if (soap_out_SOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p, const char *tag, const char *type) +{ + if ((p = soap_in_SOAP_ENV__Reason(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct SOAP_ENV__Reason * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Reason(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Reason(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Reason); + if (size) + *size = sizeof(struct SOAP_ENV__Reason); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct SOAP_ENV__Reason, n); + if (size) + *size = n * sizeof(struct SOAP_ENV__Reason); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct SOAP_ENV__Reason*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Reason %p -> %p\n", q, p)); + *(struct SOAP_ENV__Reason*)p = *(struct SOAP_ENV__Reason*)q; +} + +#endif + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_default__QName(soap, &a->SOAP_ENV__Value); + a->SOAP_ENV__Subcode = NULL; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_serialize__QName(soap, &a->SOAP_ENV__Value); + soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Subcode); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Code *a, const char *type) +{ + const char *soap_tmp_SOAP_ENV__Value = soap_QName2s(soap, a->SOAP_ENV__Value); + (void)soap; (void)tag; (void)id; (void)type; + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Code), type)) + return soap->error; + if (soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value, "")) + return soap->error; + if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, "")) + return soap->error; + return soap_element_end_out(soap, tag); +} + +SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code *a, const char *type) +{ + size_t soap_flag_SOAP_ENV__Value = 1; + size_t soap_flag_SOAP_ENV__Subcode = 1; + if (soap_element_begin_in(soap, tag, 0, type)) + return NULL; + a = (struct SOAP_ENV__Code *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default_SOAP_ENV__Code(soap, a); + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_SOAP_ENV__Value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_in__QName(soap, "SOAP-ENV:Value", &a->SOAP_ENV__Value, "")) + { soap_flag_SOAP_ENV__Value--; + continue; + } + if (soap_flag_SOAP_ENV__Subcode && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", &a->SOAP_ENV__Subcode, "")) + { soap_flag_SOAP_ENV__Subcode--; + continue; + } + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (struct SOAP_ENV__Code *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_SOAP_ENV__Code, 0, sizeof(struct SOAP_ENV__Code), 0, NULL); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_SOAP_ENV__Code); + if (soap_out_SOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p, const char *tag, const char *type) +{ + if ((p = soap_in_SOAP_ENV__Code(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct SOAP_ENV__Code * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Code(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Code(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_SOAP_ENV__Code, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Code); + if (size) + *size = sizeof(struct SOAP_ENV__Code); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct SOAP_ENV__Code, n); + if (size) + *size = n * sizeof(struct SOAP_ENV__Code); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct SOAP_ENV__Code*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Code %p -> %p\n", q, p)); + *(struct SOAP_ENV__Code*)p = *(struct SOAP_ENV__Code*)q; +} + +#endif + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Header *a, const char *type) +{ + (void)soap; (void)tag; (void)id; (void)type; + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Header), type)) + return soap->error; + return soap_element_end_out(soap, tag); +} + +SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap *soap, const char *tag, struct SOAP_ENV__Header *a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 0, type)) + return NULL; + a = (struct SOAP_ENV__Header *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Header, sizeof(struct SOAP_ENV__Header), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default_SOAP_ENV__Header(soap, a); + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (struct SOAP_ENV__Header *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_SOAP_ENV__Header, 0, sizeof(struct SOAP_ENV__Header), 0, NULL); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_SOAP_ENV__Header); + if (soap_out_SOAP_ENV__Header(soap, tag?tag:"SOAP-ENV:Header", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p, const char *tag, const char *type) +{ + if ((p = soap_in_SOAP_ENV__Header(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct SOAP_ENV__Header * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Header(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Header(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_SOAP_ENV__Header, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Header); + if (size) + *size = sizeof(struct SOAP_ENV__Header); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct SOAP_ENV__Header, n); + if (size) + *size = n * sizeof(struct SOAP_ENV__Header); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct SOAP_ENV__Header*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Header %p -> %p\n", q, p)); + *(struct SOAP_ENV__Header*)p = *(struct SOAP_ENV__Header*)q; +} + +#endif + +SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns1__registerDatasetDOI(struct soap *soap, struct __ns1__registerDatasetDOI *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ + a->ns1__registerDatasetDOI_ = NULL; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns1__registerDatasetDOI(struct soap *soap, const struct __ns1__registerDatasetDOI *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_serialize_PointerTons1__registerDatasetDOI(soap, &a->ns1__registerDatasetDOI_); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns1__registerDatasetDOI(struct soap *soap, const char *tag, int id, const struct __ns1__registerDatasetDOI *a, const char *type) +{ + (void)soap; (void)tag; (void)id; (void)type; + if (soap_out_PointerTons1__registerDatasetDOI(soap, "ns1:registerDatasetDOI", -1, &a->ns1__registerDatasetDOI_, "")) + return soap->error; + return SOAP_OK; +} + +SOAP_FMAC3 struct __ns1__registerDatasetDOI * SOAP_FMAC4 soap_in___ns1__registerDatasetDOI(struct soap *soap, const char *tag, struct __ns1__registerDatasetDOI *a, const char *type) +{ + size_t soap_flag_ns1__registerDatasetDOI_ = 1; + short soap_flag; + a = (struct __ns1__registerDatasetDOI *)soap_id_enter(soap, "", a, SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI, sizeof(struct __ns1__registerDatasetDOI), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default___ns1__registerDatasetDOI(soap, a); + for (soap_flag = 0;; soap_flag = 1) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_ns1__registerDatasetDOI_ && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerTons1__registerDatasetDOI(soap, "ns1:registerDatasetDOI", &a->ns1__registerDatasetDOI_, "ns1:registerDatasetDOI")) + { soap_flag_ns1__registerDatasetDOI_--; + continue; + } + if (soap->error == SOAP_TAG_MISMATCH) + if (soap_flag) + { soap->error = SOAP_OK; + break; + } + if (soap_flag && soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns1__registerDatasetDOI(struct soap *soap, const struct __ns1__registerDatasetDOI *a, const char *tag, const char *type) +{ + register int id = 0; + if (soap_out___ns1__registerDatasetDOI(soap, tag?tag:"-ns1:registerDatasetDOI", id, a, type)) + return soap->error; + return SOAP_OK; +} + +SOAP_FMAC3 struct __ns1__registerDatasetDOI * SOAP_FMAC4 soap_get___ns1__registerDatasetDOI(struct soap *soap, struct __ns1__registerDatasetDOI *p, const char *tag, const char *type) +{ + if ((p = soap_in___ns1__registerDatasetDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct __ns1__registerDatasetDOI * SOAP_FMAC2 soap_instantiate___ns1__registerDatasetDOI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___ns1__registerDatasetDOI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI___ns1__registerDatasetDOI, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct __ns1__registerDatasetDOI); + if (size) + *size = sizeof(struct __ns1__registerDatasetDOI); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct __ns1__registerDatasetDOI, n); + if (size) + *size = n * sizeof(struct __ns1__registerDatasetDOI); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct __ns1__registerDatasetDOI*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns1__registerDatasetDOI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __ns1__registerDatasetDOI %p -> %p\n", q, p)); + *(struct __ns1__registerDatasetDOI*)p = *(struct __ns1__registerDatasetDOI*)q; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns1__registerDatafileDOI(struct soap *soap, struct __ns1__registerDatafileDOI *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ + a->ns1__registerDatafileDOI_ = NULL; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns1__registerDatafileDOI(struct soap *soap, const struct __ns1__registerDatafileDOI *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_serialize_PointerTons1__registerDatafileDOI(soap, &a->ns1__registerDatafileDOI_); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns1__registerDatafileDOI(struct soap *soap, const char *tag, int id, const struct __ns1__registerDatafileDOI *a, const char *type) +{ + (void)soap; (void)tag; (void)id; (void)type; + if (soap_out_PointerTons1__registerDatafileDOI(soap, "ns1:registerDatafileDOI", -1, &a->ns1__registerDatafileDOI_, "")) + return soap->error; + return SOAP_OK; +} + +SOAP_FMAC3 struct __ns1__registerDatafileDOI * SOAP_FMAC4 soap_in___ns1__registerDatafileDOI(struct soap *soap, const char *tag, struct __ns1__registerDatafileDOI *a, const char *type) +{ + size_t soap_flag_ns1__registerDatafileDOI_ = 1; + short soap_flag; + a = (struct __ns1__registerDatafileDOI *)soap_id_enter(soap, "", a, SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI, sizeof(struct __ns1__registerDatafileDOI), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default___ns1__registerDatafileDOI(soap, a); + for (soap_flag = 0;; soap_flag = 1) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_ns1__registerDatafileDOI_ && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerTons1__registerDatafileDOI(soap, "ns1:registerDatafileDOI", &a->ns1__registerDatafileDOI_, "ns1:registerDatafileDOI")) + { soap_flag_ns1__registerDatafileDOI_--; + continue; + } + if (soap->error == SOAP_TAG_MISMATCH) + if (soap_flag) + { soap->error = SOAP_OK; + break; + } + if (soap_flag && soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns1__registerDatafileDOI(struct soap *soap, const struct __ns1__registerDatafileDOI *a, const char *tag, const char *type) +{ + register int id = 0; + if (soap_out___ns1__registerDatafileDOI(soap, tag?tag:"-ns1:registerDatafileDOI", id, a, type)) + return soap->error; + return SOAP_OK; +} + +SOAP_FMAC3 struct __ns1__registerDatafileDOI * SOAP_FMAC4 soap_get___ns1__registerDatafileDOI(struct soap *soap, struct __ns1__registerDatafileDOI *p, const char *tag, const char *type) +{ + if ((p = soap_in___ns1__registerDatafileDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct __ns1__registerDatafileDOI * SOAP_FMAC2 soap_instantiate___ns1__registerDatafileDOI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___ns1__registerDatafileDOI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI___ns1__registerDatafileDOI, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct __ns1__registerDatafileDOI); + if (size) + *size = sizeof(struct __ns1__registerDatafileDOI); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct __ns1__registerDatafileDOI, n); + if (size) + *size = n * sizeof(struct __ns1__registerDatafileDOI); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct __ns1__registerDatafileDOI*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns1__registerDatafileDOI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __ns1__registerDatafileDOI %p -> %p\n", q, p)); + *(struct __ns1__registerDatafileDOI*)p = *(struct __ns1__registerDatafileDOI*)q; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns1__registerInvestigationDOI(struct soap *soap, struct __ns1__registerInvestigationDOI *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ + a->ns1__registerInvestigationDOI_ = NULL; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns1__registerInvestigationDOI(struct soap *soap, const struct __ns1__registerInvestigationDOI *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_serialize_PointerTons1__registerInvestigationDOI(soap, &a->ns1__registerInvestigationDOI_); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns1__registerInvestigationDOI(struct soap *soap, const char *tag, int id, const struct __ns1__registerInvestigationDOI *a, const char *type) +{ + (void)soap; (void)tag; (void)id; (void)type; + if (soap_out_PointerTons1__registerInvestigationDOI(soap, "ns1:registerInvestigationDOI", -1, &a->ns1__registerInvestigationDOI_, "")) + return soap->error; + return SOAP_OK; +} + +SOAP_FMAC3 struct __ns1__registerInvestigationDOI * SOAP_FMAC4 soap_in___ns1__registerInvestigationDOI(struct soap *soap, const char *tag, struct __ns1__registerInvestigationDOI *a, const char *type) +{ + size_t soap_flag_ns1__registerInvestigationDOI_ = 1; + short soap_flag; + a = (struct __ns1__registerInvestigationDOI *)soap_id_enter(soap, "", a, SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI, sizeof(struct __ns1__registerInvestigationDOI), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default___ns1__registerInvestigationDOI(soap, a); + for (soap_flag = 0;; soap_flag = 1) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_ns1__registerInvestigationDOI_ && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerTons1__registerInvestigationDOI(soap, "ns1:registerInvestigationDOI", &a->ns1__registerInvestigationDOI_, "ns1:registerInvestigationDOI")) + { soap_flag_ns1__registerInvestigationDOI_--; + continue; + } + if (soap->error == SOAP_TAG_MISMATCH) + if (soap_flag) + { soap->error = SOAP_OK; + break; + } + if (soap_flag && soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns1__registerInvestigationDOI(struct soap *soap, const struct __ns1__registerInvestigationDOI *a, const char *tag, const char *type) +{ + register int id = 0; + if (soap_out___ns1__registerInvestigationDOI(soap, tag?tag:"-ns1:registerInvestigationDOI", id, a, type)) + return soap->error; + return SOAP_OK; +} + +SOAP_FMAC3 struct __ns1__registerInvestigationDOI * SOAP_FMAC4 soap_get___ns1__registerInvestigationDOI(struct soap *soap, struct __ns1__registerInvestigationDOI *p, const char *tag, const char *type) +{ + if ((p = soap_in___ns1__registerInvestigationDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct __ns1__registerInvestigationDOI * SOAP_FMAC2 soap_instantiate___ns1__registerInvestigationDOI(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___ns1__registerInvestigationDOI(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI___ns1__registerInvestigationDOI, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct __ns1__registerInvestigationDOI); + if (size) + *size = sizeof(struct __ns1__registerInvestigationDOI); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct __ns1__registerInvestigationDOI, n); + if (size) + *size = n * sizeof(struct __ns1__registerInvestigationDOI); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct __ns1__registerInvestigationDOI*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns1__registerInvestigationDOI(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __ns1__registerInvestigationDOI %p -> %p\n", q, p)); + *(struct __ns1__registerInvestigationDOI*)p = *(struct __ns1__registerInvestigationDOI*)q; +} + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *a) +{ + (void)soap; (void)a; /* appease -Wall -Werror */ + a->__any = NULL; + a->ns1__DataNotFoundException_ = NULL; + a->ns1__DoiException_ = NULL; + a->ns1__ICATException_ = NULL; + a->ns1__InternalException_ = NULL; + a->__type = 0; + a->fault = NULL; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a) +{ +#ifndef WITH_NOIDREF + (void)soap; (void)a; /* appease -Wall -Werror */ + soap_serialize_PointerTons1__DataNotFoundException(soap, &a->ns1__DataNotFoundException_); + soap_serialize_PointerTons1__DoiException(soap, &a->ns1__DoiException_); + soap_serialize_PointerTons1__ICATException(soap, &a->ns1__ICATException_); + soap_serialize_PointerTons1__InternalException(soap, &a->ns1__InternalException_); + soap_markelement(soap, a->fault, a->__type); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Detail *a, const char *type) +{ + (void)soap; (void)tag; (void)id; (void)type; + if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail), type)) + return soap->error; + soap_outliteral(soap, "-any", &a->__any, NULL); + if (soap_out_PointerTons1__DataNotFoundException(soap, "ns1:DataNotFoundException", -1, &a->ns1__DataNotFoundException_, "")) + return soap->error; + if (soap_out_PointerTons1__DoiException(soap, "ns1:DoiException", -1, &a->ns1__DoiException_, "")) + return soap->error; + if (soap_out_PointerTons1__ICATException(soap, "ns1:ICATException", -1, &a->ns1__ICATException_, "")) + return soap->error; + if (soap_out_PointerTons1__InternalException(soap, "ns1:InternalException", -1, &a->ns1__InternalException_, "")) + return soap->error; + if (soap_putelement(soap, a->fault, "fault", -1, a->__type)) + return soap->error; + return soap_element_end_out(soap, tag); +} + +SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail *a, const char *type) +{ + size_t soap_flag___any = 1; + size_t soap_flag_ns1__DataNotFoundException_ = 1; + size_t soap_flag_ns1__DoiException_ = 1; + size_t soap_flag_ns1__ICATException_ = 1; + size_t soap_flag_ns1__InternalException_ = 1; + size_t soap_flag_fault = 1; + if (soap_element_begin_in(soap, tag, 0, type)) + return NULL; + a = (struct SOAP_ENV__Detail *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0, NULL, NULL, NULL); + if (!a) + return NULL; + soap_default_SOAP_ENV__Detail(soap, a); + if (soap->body && !*soap->href) + { + for (;;) + { soap->error = SOAP_TAG_MISMATCH; + if (soap_flag_ns1__DataNotFoundException_ && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerTons1__DataNotFoundException(soap, "ns1:DataNotFoundException", &a->ns1__DataNotFoundException_, "ns1:DataNotFoundException")) + { soap_flag_ns1__DataNotFoundException_--; + continue; + } + if (soap_flag_ns1__DoiException_ && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerTons1__DoiException(soap, "ns1:DoiException", &a->ns1__DoiException_, "ns1:DoiException")) + { soap_flag_ns1__DoiException_--; + continue; + } + if (soap_flag_ns1__ICATException_ && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerTons1__ICATException(soap, "ns1:ICATException", &a->ns1__ICATException_, "ns1:ICATException")) + { soap_flag_ns1__ICATException_--; + continue; + } + if (soap_flag_ns1__InternalException_ && soap->error == SOAP_TAG_MISMATCH) + if (soap_in_PointerTons1__InternalException(soap, "ns1:InternalException", &a->ns1__InternalException_, "ns1:InternalException")) + { soap_flag_ns1__InternalException_--; + continue; + } + if (soap_flag_fault && soap->error == SOAP_TAG_MISMATCH) + if ((a->fault = soap_getelement(soap, &a->__type))) + { soap_flag_fault = 0; + continue; + } + if (soap_flag___any && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) + if (soap_inliteral(soap, "-any", &a->__any)) + { soap_flag___any--; + continue; + } + if (soap->error == SOAP_TAG_MISMATCH) + soap->error = soap_ignore_element(soap); + if (soap->error == SOAP_NO_TAG) + break; + if (soap->error) + return NULL; + } + if (soap_element_end_in(soap, tag)) + return NULL; + } + else + { a = (struct SOAP_ENV__Detail *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail, 0, sizeof(struct SOAP_ENV__Detail), 0, NULL); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_fault > 1)) + { soap->error = SOAP_OCCURS; + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail); + if (soap_out_SOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p, const char *tag, const char *type) +{ + if ((p = soap_in_SOAP_ENV__Detail(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC1 struct SOAP_ENV__Detail * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Detail(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) +{ + (void)type; (void)arrayType; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Detail(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); + struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail, n, ICatDOI_fdelete); + if (!cp) + return NULL; + if (n < 0) + { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Detail); + if (size) + *size = sizeof(struct SOAP_ENV__Detail); + } + else + { cp->ptr = (void*)SOAP_NEW_ARRAY(struct SOAP_ENV__Detail, n); + if (size) + *size = n * sizeof(struct SOAP_ENV__Detail); + } + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); + if (!cp->ptr) + soap->error = SOAP_EOM; + return (struct SOAP_ENV__Detail*)cp->ptr; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) +{ + (void)soap; (void)tt; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ + DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Detail %p -> %p\n", q, p)); + *(struct SOAP_ENV__Detail*)p = *(struct SOAP_ENV__Detail*)q; +} + +#endif + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason)) + soap_serialize_SOAP_ENV__Reason(soap, *a); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Reason *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason); + if (id < 0) + return soap->error; + return soap_out_SOAP_ENV__Reason(soap, tag, id, *a, type); +} + +SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (struct SOAP_ENV__Reason **)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = soap_in_SOAP_ENV__Reason(soap, tag, *a, type))) + return NULL; + } + else + { a = (struct SOAP_ENV__Reason **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Reason); + if (soap_out_PointerToSOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerToSOAP_ENV__Reason(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +#endif + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail)) + soap_serialize_SOAP_ENV__Detail(soap, *a); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Detail *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail); + if (id < 0) + return soap->error; + return soap_out_SOAP_ENV__Detail(soap, tag, id, *a, type); +} + +SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (struct SOAP_ENV__Detail **)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = soap_in_SOAP_ENV__Detail(soap, tag, *a, type))) + return NULL; + } + else + { a = (struct SOAP_ENV__Detail **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Detail); + if (soap_out_PointerToSOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerToSOAP_ENV__Detail(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +#endif + +#ifndef WITH_NOGLOBAL + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_SOAP_ENV__Code)) + soap_serialize_SOAP_ENV__Code(soap, *a); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Code *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_SOAP_ENV__Code); + if (id < 0) + return soap->error; + return soap_out_SOAP_ENV__Code(soap, tag, id, *a, type); +} + +SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (struct SOAP_ENV__Code **)soap_malloc(soap, sizeof(struct SOAP_ENV__Code *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = soap_in_SOAP_ENV__Code(soap, tag, *a, type))) + return NULL; + } + else + { a = (struct SOAP_ENV__Code **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerToSOAP_ENV__Code); + if (soap_out_PointerToSOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerToSOAP_ENV__Code(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +#endif + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatasetDOIResponse(struct soap *soap, ns1__registerDatasetDOIResponse *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatasetDOIResponse(struct soap *soap, const char *tag, int id, ns1__registerDatasetDOIResponse *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__registerDatasetDOIResponse ** SOAP_FMAC4 soap_in_PointerTons1__registerDatasetDOIResponse(struct soap *soap, const char *tag, ns1__registerDatasetDOIResponse **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__registerDatasetDOIResponse **)soap_malloc(soap, sizeof(ns1__registerDatasetDOIResponse *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__registerDatasetDOIResponse *)soap_instantiate_ns1__registerDatasetDOIResponse(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__registerDatasetDOIResponse ** p = (ns1__registerDatasetDOIResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOIResponse, sizeof(ns1__registerDatasetDOIResponse), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatasetDOIResponse(struct soap *soap, ns1__registerDatasetDOIResponse *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOIResponse); + if (soap_out_PointerTons1__registerDatasetDOIResponse(soap, tag?tag:"ns1:registerDatasetDOIResponse", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__registerDatasetDOIResponse ** SOAP_FMAC4 soap_get_PointerTons1__registerDatasetDOIResponse(struct soap *soap, ns1__registerDatasetDOIResponse **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__registerDatasetDOIResponse(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatasetDOI(struct soap *soap, ns1__registerDatasetDOI *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatasetDOI(struct soap *soap, const char *tag, int id, ns1__registerDatasetDOI *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__registerDatasetDOI ** SOAP_FMAC4 soap_in_PointerTons1__registerDatasetDOI(struct soap *soap, const char *tag, ns1__registerDatasetDOI **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__registerDatasetDOI **)soap_malloc(soap, sizeof(ns1__registerDatasetDOI *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__registerDatasetDOI *)soap_instantiate_ns1__registerDatasetDOI(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__registerDatasetDOI ** p = (ns1__registerDatasetDOI **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__registerDatasetDOI, sizeof(ns1__registerDatasetDOI), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatasetDOI(struct soap *soap, ns1__registerDatasetDOI *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__registerDatasetDOI); + if (soap_out_PointerTons1__registerDatasetDOI(soap, tag?tag:"ns1:registerDatasetDOI", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__registerDatasetDOI ** SOAP_FMAC4 soap_get_PointerTons1__registerDatasetDOI(struct soap *soap, ns1__registerDatasetDOI **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__registerDatasetDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatafileDOIResponse(struct soap *soap, ns1__registerDatafileDOIResponse *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatafileDOIResponse(struct soap *soap, const char *tag, int id, ns1__registerDatafileDOIResponse *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__registerDatafileDOIResponse ** SOAP_FMAC4 soap_in_PointerTons1__registerDatafileDOIResponse(struct soap *soap, const char *tag, ns1__registerDatafileDOIResponse **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__registerDatafileDOIResponse **)soap_malloc(soap, sizeof(ns1__registerDatafileDOIResponse *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__registerDatafileDOIResponse *)soap_instantiate_ns1__registerDatafileDOIResponse(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__registerDatafileDOIResponse ** p = (ns1__registerDatafileDOIResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOIResponse, sizeof(ns1__registerDatafileDOIResponse), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatafileDOIResponse(struct soap *soap, ns1__registerDatafileDOIResponse *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOIResponse); + if (soap_out_PointerTons1__registerDatafileDOIResponse(soap, tag?tag:"ns1:registerDatafileDOIResponse", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__registerDatafileDOIResponse ** SOAP_FMAC4 soap_get_PointerTons1__registerDatafileDOIResponse(struct soap *soap, ns1__registerDatafileDOIResponse **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__registerDatafileDOIResponse(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerDatafileDOI(struct soap *soap, ns1__registerDatafileDOI *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerDatafileDOI(struct soap *soap, const char *tag, int id, ns1__registerDatafileDOI *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__registerDatafileDOI ** SOAP_FMAC4 soap_in_PointerTons1__registerDatafileDOI(struct soap *soap, const char *tag, ns1__registerDatafileDOI **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__registerDatafileDOI **)soap_malloc(soap, sizeof(ns1__registerDatafileDOI *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__registerDatafileDOI *)soap_instantiate_ns1__registerDatafileDOI(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__registerDatafileDOI ** p = (ns1__registerDatafileDOI **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__registerDatafileDOI, sizeof(ns1__registerDatafileDOI), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerDatafileDOI(struct soap *soap, ns1__registerDatafileDOI *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__registerDatafileDOI); + if (soap_out_PointerTons1__registerDatafileDOI(soap, tag?tag:"ns1:registerDatafileDOI", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__registerDatafileDOI ** SOAP_FMAC4 soap_get_PointerTons1__registerDatafileDOI(struct soap *soap, ns1__registerDatafileDOI **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__registerDatafileDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerInvestigationDOIResponse(struct soap *soap, ns1__registerInvestigationDOIResponse *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerInvestigationDOIResponse(struct soap *soap, const char *tag, int id, ns1__registerInvestigationDOIResponse *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__registerInvestigationDOIResponse ** SOAP_FMAC4 soap_in_PointerTons1__registerInvestigationDOIResponse(struct soap *soap, const char *tag, ns1__registerInvestigationDOIResponse **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__registerInvestigationDOIResponse **)soap_malloc(soap, sizeof(ns1__registerInvestigationDOIResponse *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__registerInvestigationDOIResponse *)soap_instantiate_ns1__registerInvestigationDOIResponse(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__registerInvestigationDOIResponse ** p = (ns1__registerInvestigationDOIResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOIResponse, sizeof(ns1__registerInvestigationDOIResponse), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerInvestigationDOIResponse(struct soap *soap, ns1__registerInvestigationDOIResponse *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOIResponse); + if (soap_out_PointerTons1__registerInvestigationDOIResponse(soap, tag?tag:"ns1:registerInvestigationDOIResponse", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__registerInvestigationDOIResponse ** SOAP_FMAC4 soap_get_PointerTons1__registerInvestigationDOIResponse(struct soap *soap, ns1__registerInvestigationDOIResponse **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__registerInvestigationDOIResponse(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__registerInvestigationDOI(struct soap *soap, ns1__registerInvestigationDOI *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__registerInvestigationDOI(struct soap *soap, const char *tag, int id, ns1__registerInvestigationDOI *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__registerInvestigationDOI ** SOAP_FMAC4 soap_in_PointerTons1__registerInvestigationDOI(struct soap *soap, const char *tag, ns1__registerInvestigationDOI **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__registerInvestigationDOI **)soap_malloc(soap, sizeof(ns1__registerInvestigationDOI *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__registerInvestigationDOI *)soap_instantiate_ns1__registerInvestigationDOI(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__registerInvestigationDOI ** p = (ns1__registerInvestigationDOI **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__registerInvestigationDOI, sizeof(ns1__registerInvestigationDOI), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__registerInvestigationDOI(struct soap *soap, ns1__registerInvestigationDOI *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__registerInvestigationDOI); + if (soap_out_PointerTons1__registerInvestigationDOI(soap, tag?tag:"ns1:registerInvestigationDOI", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__registerInvestigationDOI ** SOAP_FMAC4 soap_get_PointerTons1__registerInvestigationDOI(struct soap *soap, ns1__registerInvestigationDOI **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__registerInvestigationDOI(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__InternalException(struct soap *soap, ns1__InternalException *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__InternalException)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__InternalException(struct soap *soap, const char *tag, int id, ns1__InternalException *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__InternalException); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__InternalException ** SOAP_FMAC4 soap_in_PointerTons1__InternalException(struct soap *soap, const char *tag, ns1__InternalException **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__InternalException **)soap_malloc(soap, sizeof(ns1__InternalException *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__InternalException *)soap_instantiate_ns1__InternalException(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__InternalException ** p = (ns1__InternalException **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__InternalException, sizeof(ns1__InternalException), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__InternalException(struct soap *soap, ns1__InternalException *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__InternalException); + if (soap_out_PointerTons1__InternalException(soap, tag?tag:"ns1:InternalException", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__InternalException ** SOAP_FMAC4 soap_get_PointerTons1__InternalException(struct soap *soap, ns1__InternalException **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__InternalException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__ICATException(struct soap *soap, ns1__ICATException *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__ICATException)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__ICATException(struct soap *soap, const char *tag, int id, ns1__ICATException *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__ICATException); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__ICATException ** SOAP_FMAC4 soap_in_PointerTons1__ICATException(struct soap *soap, const char *tag, ns1__ICATException **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__ICATException **)soap_malloc(soap, sizeof(ns1__ICATException *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__ICATException *)soap_instantiate_ns1__ICATException(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__ICATException ** p = (ns1__ICATException **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__ICATException, sizeof(ns1__ICATException), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__ICATException(struct soap *soap, ns1__ICATException *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__ICATException); + if (soap_out_PointerTons1__ICATException(soap, tag?tag:"ns1:ICATException", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__ICATException ** SOAP_FMAC4 soap_get_PointerTons1__ICATException(struct soap *soap, ns1__ICATException **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__ICATException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__DoiException(struct soap *soap, ns1__DoiException *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__DoiException)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__DoiException(struct soap *soap, const char *tag, int id, ns1__DoiException *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__DoiException); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__DoiException ** SOAP_FMAC4 soap_in_PointerTons1__DoiException(struct soap *soap, const char *tag, ns1__DoiException **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__DoiException **)soap_malloc(soap, sizeof(ns1__DoiException *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__DoiException *)soap_instantiate_ns1__DoiException(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__DoiException ** p = (ns1__DoiException **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__DoiException, sizeof(ns1__DoiException), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__DoiException(struct soap *soap, ns1__DoiException *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__DoiException); + if (soap_out_PointerTons1__DoiException(soap, tag?tag:"ns1:DoiException", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__DoiException ** SOAP_FMAC4 soap_get_PointerTons1__DoiException(struct soap *soap, ns1__DoiException **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__DoiException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__DataNotFoundException(struct soap *soap, ns1__DataNotFoundException *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException)) + (*a)->soap_serialize(soap); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__DataNotFoundException(struct soap *soap, const char *tag, int id, ns1__DataNotFoundException *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException); + if (id < 0) + return soap->error; + return (*a)->soap_out(soap, tag, id, type); +} + +SOAP_FMAC3 ns1__DataNotFoundException ** SOAP_FMAC4 soap_in_PointerTons1__DataNotFoundException(struct soap *soap, const char *tag, ns1__DataNotFoundException **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (ns1__DataNotFoundException **)soap_malloc(soap, sizeof(ns1__DataNotFoundException *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = (ns1__DataNotFoundException *)soap_instantiate_ns1__DataNotFoundException(soap, -1, soap->type, soap->arrayType, NULL))) + return NULL; + (*a)->soap_default(soap); + if (!(*a)->soap_in(soap, tag, NULL)) + return NULL; + } + else + { ns1__DataNotFoundException ** p = (ns1__DataNotFoundException **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_ns1__DataNotFoundException, sizeof(ns1__DataNotFoundException), 0); + a = p; + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__DataNotFoundException(struct soap *soap, ns1__DataNotFoundException *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTons1__DataNotFoundException); + if (soap_out_PointerTons1__DataNotFoundException(soap, tag?tag:"ns1:DataNotFoundException", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 ns1__DataNotFoundException ** SOAP_FMAC4 soap_get_PointerTons1__DataNotFoundException(struct soap *soap, ns1__DataNotFoundException **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTons1__DataNotFoundException(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTostd__string(struct soap *soap, std::string *const*a) +{ +#ifndef WITH_NOIDREF + if (!soap_reference(soap, *a, SOAP_TYPE_ICatDOI_std__string)) + soap_serialize_std__string(soap, *a); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTostd__string(struct soap *soap, const char *tag, int id, std::string *const*a, const char *type) +{ + id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ICatDOI_std__string); + if (id < 0) + return soap->error; + return soap_out_std__string(soap, tag, id, *a, type); +} + +SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTostd__string(struct soap *soap, const char *tag, std::string **a, const char *type) +{ + if (soap_element_begin_in(soap, tag, 1, NULL)) + return NULL; + if (!a) + if (!(a = (std::string **)soap_malloc(soap, sizeof(std::string *)))) + return NULL; + *a = NULL; + if (!soap->null && *soap->href != '#') + { soap_revert(soap); + if (!(*a = soap_in_std__string(soap, tag, *a, type))) + return NULL; + } + else + { a = (std::string **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ICatDOI_std__string, sizeof(std::string), 0); + if (soap->body && soap_element_end_in(soap, tag)) + return NULL; + } + return a; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTostd__string(struct soap *soap, std::string *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_PointerTostd__string); + if (soap_out_PointerTostd__string(soap, tag?tag:"string", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTostd__string(struct soap *soap, std::string **p, const char *tag, const char *type) +{ + if ((p = soap_in_PointerTostd__string(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap *soap, char *const*a) +{ +#ifndef WITH_NOIDREF + soap_reference(soap, *a, SOAP_TYPE_ICatDOI__QName); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap *soap, const char *tag, int id, char *const*a, const char *type) +{ + return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_ICatDOI__QName); +} + +SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap *soap, const char *tag, char **a, const char *type) +{ char **p; + p = soap_instring(soap, tag, a, type, SOAP_TYPE_ICatDOI__QName, 2, 0, -1); + return p; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap *soap, char *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI__QName); + if (soap_out__QName(soap, tag?tag:"byte", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap *soap, char **p, const char *tag, const char *type) +{ + if ((p = soap_in__QName(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap *soap, char **a) +{ + (void)soap; /* appease -Wall -Werror */ +#ifdef SOAP_DEFAULT_string + *a = SOAP_DEFAULT_string; +#else + *a = (char *)0; +#endif +} + +SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap *soap, char *const*a) +{ +#ifndef WITH_NOIDREF + soap_reference(soap, *a, SOAP_TYPE_ICatDOI_string); +#endif +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap *soap, const char *tag, int id, char *const*a, const char *type) +{ + return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_ICatDOI_string); +} + +SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap *soap, const char *tag, char **a, const char *type) +{ char **p; + p = soap_instring(soap, tag, a, type, SOAP_TYPE_ICatDOI_string, 1, 0, -1); + return p; +} + +SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap *soap, char *const*a, const char *tag, const char *type) +{ + register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ICatDOI_string); + if (soap_out_string(soap, tag?tag:"byte", id, a, type)) + return soap->error; + return soap_putindependent(soap); +} + +SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap *soap, char **p, const char *tag, const char *type) +{ + if ((p = soap_in_string(soap, tag, p, type))) + if (soap_getindependent(soap)) + return NULL; + return p; +} + +} // namespace ICatDOI + + +#if defined(__BORLANDC__) +#pragma option pop +#pragma option pop +#endif + +/* End of ICatDOIC.cpp */ diff --git a/Code/Mantid/Framework/ICat/src/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.cpp b/Code/Mantid/Framework/ICat/src/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.cpp new file mode 100644 index 000000000000..0636f0d01dd2 --- /dev/null +++ b/Code/Mantid/Framework/ICat/src/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.cpp @@ -0,0 +1,279 @@ +/* ICatDOIDOIPortBindingProxy.cpp + Generated by gSOAP 2.8.15 from ICatDOI.h + +Copyright(C) 2000-2013, Robert van Engelen, Genivia Inc. All Rights Reserved. +The generated code is released under ONE of the following licenses: +GPL or 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. +*/ + +#include "MantidICat/ICatDOI/GSoapGenerated/ICatDOIDOIPortBindingProxy.h" + +namespace ICatDOI { + +DOIPortBindingProxy::DOIPortBindingProxy() +{ DOIPortBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); +} + +DOIPortBindingProxy::DOIPortBindingProxy(const struct soap &_soap) : soap(_soap) +{ } + +DOIPortBindingProxy::DOIPortBindingProxy(const char *url) +{ DOIPortBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); + soap_endpoint = url; +} + +DOIPortBindingProxy::DOIPortBindingProxy(soap_mode iomode) +{ DOIPortBindingProxy_init(iomode, iomode); +} + +DOIPortBindingProxy::DOIPortBindingProxy(const char *url, soap_mode iomode) +{ DOIPortBindingProxy_init(iomode, iomode); + soap_endpoint = url; +} + +DOIPortBindingProxy::DOIPortBindingProxy(soap_mode imode, soap_mode omode) +{ DOIPortBindingProxy_init(imode, omode); +} + +DOIPortBindingProxy::~DOIPortBindingProxy() +{ } + +void DOIPortBindingProxy::DOIPortBindingProxy_init(soap_mode imode, soap_mode omode) +{ soap_imode(this, imode); + soap_omode(this, omode); + soap_endpoint = NULL; + static const struct Namespace namespaces[] = +{ + {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, + {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, + {"xsi", "http://www.w3.org/2001/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, + {"xsd", "http://www.w3.org/2001/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL}, + {"ns1", "http://webservice.doi.stfc.ac.uk/", NULL, NULL}, + {NULL, NULL, NULL, NULL} +}; + soap_set_namespaces(this, namespaces); +} + +void DOIPortBindingProxy::destroy() +{ soap_destroy(this); + soap_end(this); +} + +void DOIPortBindingProxy::reset() +{ destroy(); + soap_done(this); + soap_init(this); + DOIPortBindingProxy_init(SOAP_IO_DEFAULT, SOAP_IO_DEFAULT); +} + +void DOIPortBindingProxy::soap_noheader() +{ this->header = NULL; +} + +const SOAP_ENV__Header *DOIPortBindingProxy::soap_header() +{ return this->header; +} + +const SOAP_ENV__Fault *DOIPortBindingProxy::soap_fault() +{ return this->fault; +} + +const char *DOIPortBindingProxy::soap_fault_string() +{ return *soap_faultstring(this); +} + +const char *DOIPortBindingProxy::soap_fault_detail() +{ return *soap_faultdetail(this); +} + +int DOIPortBindingProxy::soap_close_socket() +{ return soap_closesock(this); +} + +int DOIPortBindingProxy::soap_force_close_socket() +{ return soap_force_closesock(this); +} + +void DOIPortBindingProxy::soap_print_fault(FILE *fd) +{ ::soap_print_fault(this, fd); +} + +#ifndef WITH_LEAN +#ifndef WITH_COMPAT +void DOIPortBindingProxy::soap_stream_fault(std::ostream& os) +{ ::soap_stream_fault(this, os); +} +#endif + +char *DOIPortBindingProxy::soap_sprint_fault(char *buf, size_t len) +{ return ::soap_sprint_fault(this, buf, len); +} +#endif + +int DOIPortBindingProxy::registerInvestigationDOI(const char *endpoint, const char *soap_action, ns1__registerInvestigationDOI *ns1__registerInvestigationDOI_, ns1__registerInvestigationDOIResponse *ns1__registerInvestigationDOIResponse_) +{ struct soap *soap = this; + struct __ns1__registerInvestigationDOI soap_tmp___ns1__registerInvestigationDOI; + if (endpoint) + soap_endpoint = endpoint; + if (soap_endpoint == NULL) + soap_endpoint = "https://data4.isis.stfc.ac.uk:443/doi/DOIService"; + if (soap_action == NULL) + soap_action = "http://webservice.doi.stfc.ac.uk/DOI/registerInvestigationDOIRequest"; + soap->encodingStyle = NULL; + soap_tmp___ns1__registerInvestigationDOI.ns1__registerInvestigationDOI_ = ns1__registerInvestigationDOI_; + soap_begin(soap); + soap_serializeheader(soap); + soap_serialize___ns1__registerInvestigationDOI(soap, &soap_tmp___ns1__registerInvestigationDOI); + 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__registerInvestigationDOI(soap, &soap_tmp___ns1__registerInvestigationDOI, "-ns1:registerInvestigationDOI", 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___ns1__registerInvestigationDOI(soap, &soap_tmp___ns1__registerInvestigationDOI, "-ns1:registerInvestigationDOI", NULL) + || soap_body_end_out(soap) + || soap_envelope_end_out(soap) + || soap_end_send(soap)) + return soap_closesock(soap); + if (!ns1__registerInvestigationDOIResponse_) + return soap_closesock(soap); + ns1__registerInvestigationDOIResponse_->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__registerInvestigationDOIResponse_->soap_get(soap, "ns1:registerInvestigationDOIResponse", "ns1:registerInvestigationDOIResponse"); + 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); +} + +int DOIPortBindingProxy::registerDatafileDOI(const char *endpoint, const char *soap_action, ns1__registerDatafileDOI *ns1__registerDatafileDOI_, ns1__registerDatafileDOIResponse *ns1__registerDatafileDOIResponse_) +{ struct soap *soap = this; + struct __ns1__registerDatafileDOI soap_tmp___ns1__registerDatafileDOI; + if (endpoint) + soap_endpoint = endpoint; + if (soap_endpoint == NULL) + soap_endpoint = "https://data4.isis.stfc.ac.uk:443/doi/DOIService"; + if (soap_action == NULL) + soap_action = "http://webservice.doi.stfc.ac.uk/DOI/registerDatafileDOIRequest"; + soap->encodingStyle = NULL; + soap_tmp___ns1__registerDatafileDOI.ns1__registerDatafileDOI_ = ns1__registerDatafileDOI_; + soap_begin(soap); + soap_serializeheader(soap); + soap_serialize___ns1__registerDatafileDOI(soap, &soap_tmp___ns1__registerDatafileDOI); + 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__registerDatafileDOI(soap, &soap_tmp___ns1__registerDatafileDOI, "-ns1:registerDatafileDOI", 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___ns1__registerDatafileDOI(soap, &soap_tmp___ns1__registerDatafileDOI, "-ns1:registerDatafileDOI", NULL) + || soap_body_end_out(soap) + || soap_envelope_end_out(soap) + || soap_end_send(soap)) + return soap_closesock(soap); + if (!ns1__registerDatafileDOIResponse_) + return soap_closesock(soap); + ns1__registerDatafileDOIResponse_->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__registerDatafileDOIResponse_->soap_get(soap, "ns1:registerDatafileDOIResponse", "ns1:registerDatafileDOIResponse"); + 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); +} + +int DOIPortBindingProxy::registerDatasetDOI(const char *endpoint, const char *soap_action, ns1__registerDatasetDOI *ns1__registerDatasetDOI_, ns1__registerDatasetDOIResponse *ns1__registerDatasetDOIResponse_) +{ struct soap *soap = this; + struct __ns1__registerDatasetDOI soap_tmp___ns1__registerDatasetDOI; + if (endpoint) + soap_endpoint = endpoint; + if (soap_endpoint == NULL) + soap_endpoint = "https://data4.isis.stfc.ac.uk:443/doi/DOIService"; + if (soap_action == NULL) + soap_action = "http://webservice.doi.stfc.ac.uk/DOI/registerDatasetDOIRequest"; + soap->encodingStyle = NULL; + soap_tmp___ns1__registerDatasetDOI.ns1__registerDatasetDOI_ = ns1__registerDatasetDOI_; + soap_begin(soap); + soap_serializeheader(soap); + soap_serialize___ns1__registerDatasetDOI(soap, &soap_tmp___ns1__registerDatasetDOI); + 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__registerDatasetDOI(soap, &soap_tmp___ns1__registerDatasetDOI, "-ns1:registerDatasetDOI", 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___ns1__registerDatasetDOI(soap, &soap_tmp___ns1__registerDatasetDOI, "-ns1:registerDatasetDOI", NULL) + || soap_body_end_out(soap) + || soap_envelope_end_out(soap) + || soap_end_send(soap)) + return soap_closesock(soap); + if (!ns1__registerDatasetDOIResponse_) + return soap_closesock(soap); + ns1__registerDatasetDOIResponse_->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__registerDatasetDOIResponse_->soap_get(soap, "ns1:registerDatasetDOIResponse", "ns1:registerDatasetDOIResponse"); + 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); +} + +} // namespace ICatDOI + +/* End of client proxy code */ diff --git a/Code/Mantid/Framework/ICat/src/ICatDOI/ICatDOIGSoapGenerated.cpp b/Code/Mantid/Framework/ICat/src/ICatDOI/ICatDOIGSoapGenerated.cpp new file mode 100644 index 000000000000..3befacfb8002 --- /dev/null +++ b/Code/Mantid/Framework/ICat/src/ICatDOI/ICatDOIGSoapGenerated.cpp @@ -0,0 +1,13 @@ +//------------------------------------------------------------------------------ +// This is a global 'include' file for the GSoap DOI generated files that +// disables warnings in automatically generated code, which we do not want to touch. +//------------------------------------------------------------------------------ + +#if defined(__GNUC__) && !(defined(__INTEL_COMPILER)) + #pragma GCC diagnostic ignored "-Wunused-parameter" +#elif defined(_WIN32) + #pragma warning( disable: 4100 ) +#endif + +#include "GSoapGenerated/ICatDOIC.cpp" +#include "GSoapGenerated/ICatDOIDOIPortBindingProxy.cpp"