Main Page | Modules | Data Structures | File List | Data Fields | Globals

sgtest_CreateServiceGroupResponseType.c File Reference

#include "xsd_QName.h"
#include "globus_soap_message.h"
#include "globus_xsd_type_info.h"
#include "sgtest_CreateServiceGroupResponseType.h"
#include "globus_xsd_generic_array.h"

Go to the source code of this file.

Functions

Variables


Function Documentation

globus_result_t sgtest_CreateServiceGroupResponseType_serialize_wrapper (
     const xsd_QName * element_qname,
     const void * instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options) [static]
 

Definition at line 38 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_serialize().

00043 {
00044     return sgtest_CreateServiceGroupResponseType_serialize(
00045         element_qname,
00046         (const sgtest_CreateServiceGroupResponseType *) instance,
00047         message_handle, options);
00048 }

globus_result_t sgtest_CreateServiceGroupResponseType_deserialize_pointer_wrapper (
     const xsd_QName * element_qname,
     void ** ip,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options) [static]
 

Definition at line 52 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_deserialize_pointer().

00057 {
00058     return sgtest_CreateServiceGroupResponseType_deserialize_pointer(
00059         element_qname,
00060         (sgtest_CreateServiceGroupResponseType **) ip,
00061         message_handle, options);
00062 }

globus_result_t sgtest_CreateServiceGroupResponseType_init_wrapper (
     void ** object ) [static]
 

Definition at line 66 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_init().

00067 {
00068     return sgtest_CreateServiceGroupResponseType_init(
00069         (sgtest_CreateServiceGroupResponseType **) object);
00070 }

void sgtest_CreateServiceGroupResponseType_destroy_wrapper (
     void * object ) [static]
 

Definition at line 74 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_destroy().

00076 {
00077     sgtest_CreateServiceGroupResponseType_destroy(
00078         (sgtest_CreateServiceGroupResponseType *) object);
00079 }

globus_result_t sgtest_CreateServiceGroupResponseType_copy_wrapper (
     void ** dest_obj,
     const void * src_obj) [static]
 

Definition at line 83 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_copy().

00086 {
00087     return sgtest_CreateServiceGroupResponseType_copy(
00088         (sgtest_CreateServiceGroupResponseType **) dest_obj,
00089         (sgtest_CreateServiceGroupResponseType *) src_obj);
00090 }

globus_result_t sgtest_CreateServiceGroupResponseType_init_contents_wrapper (
     void * object ) [static]
 

Definition at line 94 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_init_contents().

00095 {
00096     return sgtest_CreateServiceGroupResponseType_init_contents(
00097         (sgtest_CreateServiceGroupResponseType *) object);
00098 }

void sgtest_CreateServiceGroupResponseType_destroy_contents_wrapper (
     void * object ) [static]
 

Definition at line 102 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_destroy_contents().

00104 {
00105     sgtest_CreateServiceGroupResponseType_destroy_contents(
00106         (sgtest_CreateServiceGroupResponseType *) object);
00107 }

globus_result_t sgtest_CreateServiceGroupResponseType_copy_contents_wrapper (
     void * dest_obj,
     const void * src_obj) [static]
 

Definition at line 111 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_copy_contents().

00114 {
00115     return sgtest_CreateServiceGroupResponseType_copy_contents(
00116         (sgtest_CreateServiceGroupResponseType *) dest_obj,
00117         (const sgtest_CreateServiceGroupResponseType *) src_obj);
00118 }

globus_result_t sgtest_CreateServiceGroupResponseType_serialize_contents_wrapper (
     const xsd_QName * element_qname,
     const void * instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options) [static]
 

Definition at line 122 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, and sgtest_CreateServiceGroupResponseType_serialize_contents().

00127 {
00128     return sgtest_CreateServiceGroupResponseType_serialize_contents(
00129         element_qname,
00130         (sgtest_CreateServiceGroupResponseType *) instance,
00131         message_handle, options);
00132 }

globus_result_t sgtest_CreateServiceGroupResponseType_deserialize_contents_wrapper (
     const xsd_QName * element_qname,
     void ** instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options) [static]
 

Definition at line 136 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType, sgtest_CreateServiceGroupResponseType_deserialize_contents(), sgtest_CreateServiceGroupResponseType_deserialize_contents_wrapper(), and sgtest_CreateServiceGroupResponseType_init().

Referenced by sgtest_CreateServiceGroupResponseType_deserialize_contents_wrapper().

00141 {
00142     globus_result_t                     result;
00143     GlobusFuncName(sgtest_CreateServiceGroupResponseType_deserialize_contents_wrapper);
00144     GlobusSoapMessageDebugEnter();
00145 
00146     if(!*instance)
00147     {
00148         result = sgtest_CreateServiceGroupResponseType_init(
00149             (sgtest_CreateServiceGroupResponseType **)instance);
00150         if(result != GLOBUS_SUCCESS)
00151         {
00152             goto error;
00153         }
00154     }
00155 
00156     result = sgtest_CreateServiceGroupResponseType_deserialize_contents(
00157         element_qname,
00158         *(sgtest_CreateServiceGroupResponseType **)instance,
00159         message_handle, options);
00160 error:
00161     GlobusSoapMessageDebugExit();
00162     return result;
00163 }

globus_result_t sgtest_CreateServiceGroupResponseType_array_serialize_wrapper (
     const xsd_QName * element,
     const void * instance,
     globus_soap_message_handle_t message,
     globus_xsd_element_options_t options) [static]
 

Definition at line 167 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_serialize().

00172 {
00173     return sgtest_CreateServiceGroupResponseType_array_serialize(
00174         element,
00175         (sgtest_CreateServiceGroupResponseType_array *) instance,
00176         message, options);
00177 }

globus_result_t sgtest_CreateServiceGroupResponseType_array_deserialize_wrapper (
     const xsd_QName * element_qname,
     void ** inst,
     globus_soap_message_handle_t message,
     globus_xsd_element_options_t options) [static]
 

Definition at line 181 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, sgtest_CreateServiceGroupResponseType_array_deserialize(), and sgtest_CreateServiceGroupResponseType_array_init().

00186 {
00187     if(!*inst)
00188     {
00189         globus_result_t                 result;
00190 
00191         result = sgtest_CreateServiceGroupResponseType_array_init(
00192             (sgtest_CreateServiceGroupResponseType_array **)inst);
00193         if(result != GLOBUS_SUCCESS)
00194         {
00195             return result;
00196         }
00197     }
00198 
00199     return sgtest_CreateServiceGroupResponseType_array_deserialize(
00200         element_qname,
00201         *(sgtest_CreateServiceGroupResponseType_array **) inst,
00202         message, options);
00203 }

globus_result_t sgtest_CreateServiceGroupResponseType_array_init_wrapper (
     void ** arr ) [static]
 

Definition at line 207 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_init().

void sgtest_CreateServiceGroupResponseType_array_destroy_wrapper (
     void * arr ) [static]
 

Definition at line 216 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_destroy().

globus_result_t sgtest_CreateServiceGroupResponseType_array_copy_wrapper (
     void ** dest_arr,
     const void * src_arr) [static]
 

Definition at line 225 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_copy().

globus_result_t sgtest_CreateServiceGroupResponseType_array_init_contents_wrapper (
     void * arr ) [static]
 

Definition at line 236 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_init_contents().

void sgtest_CreateServiceGroupResponseType_array_destroy_contents_wrapper (
     void * arr ) [static]
 

Definition at line 245 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_destroy_contents().

globus_result_t sgtest_CreateServiceGroupResponseType_array_copy_contents_wrapper (
     void * dest_arr,
     const void * src_arr) [static]
 

Definition at line 254 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_copy_contents().

void* sgtest_CreateServiceGroupResponseType_array_push_wrapper (
     void * array ) [static]
 

Definition at line 265 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_array, and sgtest_CreateServiceGroupResponseType_array_push().

globus_result_t sgtest_CreateServiceGroupResponseType_serialize_contents (
     const xsd_QName * element_name,
     const sgtest_CreateServiceGroupResponseType * val,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Serialize the contents of a sgtest_CreateServiceGroupResponseType.

Serialize a sgtest_CreateServiceGroupResponseType structure without an enclosing element.

Parameters:
element_name Ignored parameter.
val The sgtest_CreateServiceGroupResponseType to serialize.
message_handle The handle to serialize the contents on.
options Serialization options.

Definition at line 471 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_serialize(), and sgtest_CreateServiceGroupResponseType_serialize_contents().

Referenced by sgtest_CreateServiceGroupResponseType_serialize_contents(), and sgtest_CreateServiceGroupResponseType_serialize_contents_wrapper().

00476 {
00477     globus_result_t                     result = GLOBUS_SUCCESS;
00478     GlobusFuncName(sgtest_CreateServiceGroupResponseType_serialize_contents);
00479     GlobusSoapMessageDebugEnter();
00480 
00481     result = sgtest_CreateServiceGroupResponseType_serialize(
00482         NULL,
00483         inst,
00484         message_handle,
00485         options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
00486     if(result != GLOBUS_SUCCESS)
00487     {
00488         result = GlobusSoapMessageErrorSerializeFailed(
00489             result, NULL, element_qname);
00490         goto exit;
00491     }
00492 
00493  exit:
00494 
00495     GlobusSoapMessageDebugExit();
00496     return result;
00497 }

globus_result_t sgtest_CreateServiceGroupResponseType_serialize (
     const xsd_QName * element_name,
     const sgtest_CreateServiceGroupResponseType * val,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Serialize a sgtest_CreateServiceGroupResponseType.

Serialize a sgtest_CreateServiceGroupResponseType structure.

Parameters:
element_name The name of the element which will contain the sgtest_CreateServiceGroupResponseType.
val The sgtest_CreateServiceGroupResponseType to serialize.
message_handle The handle to serialize the element on.
options Serialization options.

Definition at line 502 of file sgtest_CreateServiceGroupResponseType.c.

References sgtest_CreateServiceGroupResponseType_qname, and sgtest_CreateServiceGroupResponseType_serialize().

Referenced by sgtest_CreateServiceGroupResponseType_serialize(), sgtest_CreateServiceGroupResponseType_serialize_contents(), and sgtest_CreateServiceGroupResponseType_serialize_wrapper().

00507 {
00508     globus_result_t                     result = GLOBUS_SUCCESS;
00509     xsd_QName                           subelement;
00510     globus_list_t *                     any_attr_keys = NULL;
00511     globus_list_t *                     any_attr_keys_iterator = NULL;
00512     xsd_QName *                         type_attr = NULL;
00513 
00514     char *                              prefix = NULL;
00515     int                                 prefix_created;
00516     int                                 define_prefix = 0;
00517     int                                 save_options = options;
00518 
00519     GlobusFuncName(sgtest_CreateServiceGroupResponseType_serialize);
00520     GlobusSoapMessageDebugEnter();
00521 
00522 
00523     if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
00524     {
00525         /* serialize sgtest_CreateServiceGroupResponseType element */
00526         result = globus_soap_message_element_ns_set(
00527             message_handle,
00528             element_qname,
00529             element_qname->Namespace,
00530             &options);
00531         if(result != GLOBUS_SUCCESS)
00532         {
00533             result = GlobusSoapMessageErrorSerializeFailed(
00534                 result, NULL, element_qname);
00535             goto exit;
00536         }
00537 
00538         if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00539            !globus_soap_message_serialize_is_c14n_subset(message_handle)))
00540         {
00541             result = globus_soap_message_attribute_ns_set(
00542                 message_handle,
00543                 element_qname,
00544                 "http://www.w3.org/2001/XMLSchema-instance",
00545                 &options);
00546             if(result != GLOBUS_SUCCESS)
00547             {
00548                 result = GlobusSoapMessageErrorSerializeFailed(
00549                     result, NULL, element_qname);
00550                 goto exit;
00551             }
00552         }
00553 
00554         if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00555            !globus_soap_message_serialize_is_c14n_subset(message_handle))
00556         {
00557 
00558             result = globus_soap_message_attribute_ns_set(
00559                 message_handle,
00560                 element_qname,
00561                 sgtest_CreateServiceGroupResponseType_qname.Namespace,
00562                 &options);
00563             if(result != GLOBUS_SUCCESS)
00564             {
00565                 result = GlobusSoapMessageErrorSerializeFailed(
00566                     result, NULL, element_qname);
00567                 goto exit;
00568             }
00569         }
00570 
00571         result = globus_soap_message_serialize_element(
00572             message_handle,
00573             element_qname,
00574             options,
00575             &sgtest_CreateServiceGroupResponseType_qname);
00576         if(result != GLOBUS_SUCCESS)
00577         {
00578             result = GlobusSoapMessageErrorSerializeFailed(
00579                 result, NULL, element_qname);
00580             goto exit;
00581         }
00582 
00583         if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00584            !globus_soap_message_serialize_is_c14n_subset(message_handle))
00585         {
00586            xsd_QName_init(&type_attr);
00587        
00588            type_attr->local = globus_libc_strdup("type");
00589            type_attr->Namespace = globus_libc_strdup(XSI_NS);
00590         }
00591 
00592 
00593         /* serialize namespaces */
00594         result = globus_soap_message_element_ns_add(
00595             message_handle,
00596             element_qname,
00597             element_qname->Namespace,
00598             &options);
00599         if(result != GLOBUS_SUCCESS)
00600         {
00601             result = GlobusSoapMessageErrorSerializeFailed(
00602                 result, NULL, element_qname);
00603             goto exit;
00604         }
00605 
00606         if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00607            !globus_soap_message_serialize_is_c14n_subset(message_handle)))
00608         {
00609             result = globus_soap_message_attribute_ns_add(
00610                 message_handle,
00611                 element_qname,
00612                 "http://www.w3.org/2001/XMLSchema-instance",
00613                 &options);
00614             if(result != GLOBUS_SUCCESS)
00615             {
00616                 result = GlobusSoapMessageErrorSerializeFailed(
00617                     result, NULL, element_qname);
00618                 goto exit;
00619             }
00620         }
00621         if ((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00622            !globus_soap_message_serialize_is_c14n_subset(message_handle))
00623         {
00624 
00625             result = globus_soap_message_attribute_ns_add(
00626                 message_handle,
00627                 element_qname,
00628                 sgtest_CreateServiceGroupResponseType_qname.Namespace,
00629                 &options);
00630             if(result != GLOBUS_SUCCESS)
00631             {
00632                 result = GlobusSoapMessageErrorSerializeFailed(
00633                     result, NULL, element_qname);
00634                 goto exit;
00635             }
00636         }
00637 
00638         /* serialize attributes */
00639 
00640         if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00641            !globus_soap_message_serialize_is_c14n_subset(message_handle))
00642         {
00643             result = globus_soap_message_serialize_QName_attribute(
00644                 message_handle,
00645                 type_attr,
00646                 &sgtest_CreateServiceGroupResponseType_qname);
00647             if(result != GLOBUS_SUCCESS)
00648             {
00649                 result = GlobusSoapMessageErrorSerializeFailed(
00650                     result, NULL, element_qname);
00651                 goto exit;
00652             }
00653         }
00654 
00655 
00656     }
00657 
00658     if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
00659     {
00660         result = globus_soap_message_serialize_element_begin_close(
00661             message_handle, element_qname);
00662         if(result != GLOBUS_SUCCESS)
00663         {
00664             result = GlobusSoapMessageErrorSerializeFailed(
00665                 result, NULL, element_qname);
00666             goto exit;
00667         }
00668     }
00669     options &= ~GLOBUS_XSD_ELEMENT_CONTENTS_ONLY;
00670 
00671 
00672     /* serialize contents of type */
00673 
00674     subelement.local = "EndpointReference";
00675     subelement.Namespace = "http://www.w3.org/2005/08/addressing";
00676 
00677     result = wsa_EndpointReferenceType_serialize(
00678          &subelement,
00679          &instance->EndpointReference,
00680          message_handle,
00681          options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
00682     if(result != GLOBUS_SUCCESS)
00683     {
00684         result = GlobusSoapMessageErrorSerializeFailed(
00685                 result, NULL, &wsa_EndpointReferenceType_qname);
00686         goto exit;
00687     }
00688 
00689     options = save_options;
00690 
00691     if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
00692     {
00693         /* add end element */
00694         result = globus_soap_message_serialize_element_end(
00695             message_handle,
00696             element_qname,
00697             options,
00698             &sgtest_CreateServiceGroupResponseType_qname);
00699         if(result != GLOBUS_SUCCESS)
00700         {
00701             result = GlobusSoapMessageErrorSerializeFailed(
00702                 result, NULL, element_qname);
00703             goto exit;
00704         }
00705 
00706         globus_soap_message_element_ns_remove(
00707             message_handle,
00708             element_qname->Namespace,
00709             &options);
00710 
00711     /* remove namespace/prefix mappings for these types */
00712 
00713         if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00714            !globus_soap_message_serialize_is_c14n_subset(message_handle)))
00715         {
00716             globus_soap_message_attribute_ns_remove(
00717                 message_handle,
00718                 "http://www.w3.org/2001/XMLSchema-instance",
00719                 &options);
00720         }           
00721         if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
00722            !globus_soap_message_serialize_is_c14n_subset(message_handle))
00723         {
00724             globus_soap_message_attribute_ns_remove(
00725                 message_handle,
00726                 sgtest_CreateServiceGroupResponseType_qname.Namespace,
00727                 &options);
00728         }           
00729 
00730     }
00731 
00732  exit:
00733     if (type_attr)
00734     {
00735         xsd_QName_destroy(type_attr);
00736     }
00737 
00738 
00739     if(any_attr_keys)
00740     {
00741         globus_list_free(any_attr_keys);
00742     }
00743 
00744     GlobusSoapMessageDebugExit();
00745     return result;
00746 }


about globus | grid research | globus toolkit | software development

Comments? webmaster@globus.org