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

wsdelegation_RPSetType.c File Reference

#include "xsd_QName.h"
#include "globus_soap_message.h"
#include "globus_xsd_type_info.h"
#include "wsdelegation_RPSetType.h"

Go to the source code of this file.

Functions

Variables


Function Documentation

globus_result_t wsdelegation_RPSetType_serialize_wrapper (
     xsd_QName * element_qname,
     void * instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Definition at line 31 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_serialize().

00036 {
00037     return wsdelegation_RPSetType_serialize(
00038         element_qname,
00039         (wsdelegation_RPSetType *) instance,
00040         message_handle, options);
00041 }

globus_result_t wsdelegation_RPSetType_deserialize_pointer_wrapper (
     xsd_QName * element_qname,
     void ** ip,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Definition at line 44 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_deserialize_pointer().

00049 {
00050     return wsdelegation_RPSetType_deserialize_pointer(
00051         element_qname,
00052         (wsdelegation_RPSetType **) ip,
00053         message_handle, options);
00054 }

globus_result_t wsdelegation_RPSetType_init_wrapper (
     void ** object )
 

Definition at line 57 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_init().

00058 {
00059     return wsdelegation_RPSetType_init(
00060         (wsdelegation_RPSetType **) object);
00061 }

void wsdelegation_RPSetType_destroy_wrapper (
     void * object )
 

Definition at line 64 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_destroy().

00066 {
00067     wsdelegation_RPSetType_destroy(
00068         (wsdelegation_RPSetType *) object);
00069 }

globus_result_t wsdelegation_RPSetType_copy_wrapper (
     void ** dest_obj,
     void * src_obj)
 

Definition at line 72 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_copy().

00075 {
00076     return wsdelegation_RPSetType_copy(
00077         (wsdelegation_RPSetType **) dest_obj,
00078         (wsdelegation_RPSetType *) src_obj);
00079 }

globus_result_t wsdelegation_RPSetType_init_contents_wrapper (
     void * object )
 

Definition at line 82 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_init_contents().

00083 {
00084     return wsdelegation_RPSetType_init_contents(
00085         (wsdelegation_RPSetType *) object);
00086 }

void wsdelegation_RPSetType_destroy_contents_wrapper (
     void * object )
 

Definition at line 89 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_destroy_contents().

00091 {
00092     wsdelegation_RPSetType_destroy_contents(
00093         (wsdelegation_RPSetType *) object);
00094 }

globus_result_t wsdelegation_RPSetType_copy_contents_wrapper (
     void * dest_obj,
     void * src_obj)
 

Definition at line 97 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_copy_contents().

00100 {
00101     return wsdelegation_RPSetType_copy_contents(
00102         (wsdelegation_RPSetType *) dest_obj,
00103         (wsdelegation_RPSetType *) src_obj);
00104 }

globus_result_t wsdelegation_RPSetType_serialize_contents_wrapper (
     xsd_QName * element_qname,
     void * instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Definition at line 107 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, and wsdelegation_RPSetType_serialize_contents().

00112 {
00113     return wsdelegation_RPSetType_serialize_contents(
00114         element_qname,
00115         (wsdelegation_RPSetType *) instance,
00116         message_handle, options);
00117 }

globus_result_t wsdelegation_RPSetType_deserialize_contents_wrapper (
     xsd_QName * element_qname,
     void ** instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Definition at line 120 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType, wsdelegation_RPSetType_deserialize_contents(), wsdelegation_RPSetType_deserialize_contents_wrapper(), and wsdelegation_RPSetType_init().

Referenced by wsdelegation_RPSetType_deserialize_contents_wrapper().

00125 {
00126     globus_result_t                     result;
00127     GlobusFuncName(wsdelegation_RPSetType_deserialize_contents_wrapper);
00128     GlobusSoapMessageDebugEnter();
00129 
00130     if(!*instance)
00131     {
00132         result = wsdelegation_RPSetType_init(
00133             (wsdelegation_RPSetType **)instance);
00134         if(result != GLOBUS_SUCCESS)
00135         {
00136             goto error;
00137         }
00138     }
00139 
00140     result = wsdelegation_RPSetType_deserialize_contents(
00141         element_qname,
00142         *(wsdelegation_RPSetType **)instance,
00143         message_handle, options);
00144 error:
00145     GlobusSoapMessageDebugExit();
00146     return result;
00147 }

globus_result_t wsdelegation_RPSetType_array_serialize_wrapper (
     xsd_QName * element,
     void * instance,
     globus_soap_message_handle_t message,
     globus_xsd_element_options_t options)
 

Definition at line 150 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_serialize().

00155 {
00156     return wsdelegation_RPSetType_array_serialize(
00157         element,
00158         (wsdelegation_RPSetType_array *) instance,
00159         message, options);
00160 }

globus_result_t wsdelegation_RPSetType_array_deserialize_wrapper (
     xsd_QName * element_qname,
     void ** inst,
     globus_soap_message_handle_t message,
     globus_xsd_element_options_t options)
 

Definition at line 163 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, wsdelegation_RPSetType_array_deserialize(), and wsdelegation_RPSetType_array_init().

00168 {
00169     if(!*inst)
00170     {
00171         globus_result_t                 result;
00172 
00173         result = wsdelegation_RPSetType_array_init(
00174             (wsdelegation_RPSetType_array **)inst);
00175         if(result != GLOBUS_SUCCESS)
00176         {
00177             return result;
00178         }
00179     }
00180 
00181     return wsdelegation_RPSetType_array_deserialize(
00182         element_qname,
00183         *(wsdelegation_RPSetType_array **) inst,
00184         message, options);
00185 }

globus_result_t wsdelegation_RPSetType_array_init_wrapper (
     void ** arr )
 

Definition at line 188 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_init().

00190 {
00191     return wsdelegation_RPSetType_array_init(
00192         (wsdelegation_RPSetType_array **) arr);
00193 }

void wsdelegation_RPSetType_array_destroy_wrapper (
     void * arr )
 

Definition at line 196 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_destroy().

globus_result_t wsdelegation_RPSetType_array_copy_wrapper (
     void ** dest_arr,
     void * src_arr)
 

Definition at line 204 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_copy().

00207 {
00208     return wsdelegation_RPSetType_array_copy(
00209         (wsdelegation_RPSetType_array **) dest_arr,
00210         (wsdelegation_RPSetType_array *) src_arr);
00211 }

globus_result_t wsdelegation_RPSetType_array_init_contents_wrapper (
     void * arr )
 

Definition at line 214 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_init_contents().

00216 {
00217     return wsdelegation_RPSetType_array_init_contents(
00218         (wsdelegation_RPSetType_array *) arr);
00219 }

void wsdelegation_RPSetType_array_destroy_contents_wrapper (
     void * arr )
 

Definition at line 222 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_destroy_contents().

globus_result_t wsdelegation_RPSetType_array_copy_contents_wrapper (
     void * dest_arr,
     void * src_arr)
 

Definition at line 230 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_copy_contents().

00233 {
00234     return wsdelegation_RPSetType_array_copy_contents(
00235         (wsdelegation_RPSetType_array *) dest_arr,
00236         (wsdelegation_RPSetType_array *) src_arr);
00237 }

globus_result_t wsdelegation_RPSetType_serialize_contents (
     xsd_QName * element_name,
     wsdelegation_RPSetType * val,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Serialize the contents of a wsdelegation_RPSetType.

Serialize a wsdelegation_RPSetType structure without an enclosing element.

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

Definition at line 438 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_serialize(), and wsdelegation_RPSetType_serialize_contents().

Referenced by wsdelegation_RPSetType_serialize_contents(), and wsdelegation_RPSetType_serialize_contents_wrapper().

00443 {
00444     globus_result_t                     result = GLOBUS_SUCCESS;
00445     GlobusFuncName(wsdelegation_RPSetType_serialize_contents);
00446     GlobusSoapMessageDebugEnter();
00447 
00448     result = wsdelegation_RPSetType_serialize(
00449         NULL,
00450         inst,
00451         message_handle,
00452         options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
00453     if(result != GLOBUS_SUCCESS)
00454     {
00455         result = GlobusSoapMessageErrorSerializeFailed(
00456             result, NULL, element_qname);
00457         goto exit;
00458     }
00459 
00460  exit:
00461 
00462     GlobusSoapMessageDebugExit();
00463     return result;
00464 }

globus_result_t wsdelegation_RPSetType_serialize (
     xsd_QName * element_name,
     wsdelegation_RPSetType * val,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Serialize a wsdelegation_RPSetType.

Serialize a wsdelegation_RPSetType structure.

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

Definition at line 469 of file wsdelegation_RPSetType.c.

References wsdelegation_certType_qname, wsdelegation_certType_serialize(), wsdelegation_RPSetType_qname, and wsdelegation_RPSetType_serialize().

Referenced by wsdelegation_RPSetType_array_serialize(), wsdelegation_RPSetType_serialize(), wsdelegation_RPSetType_serialize_contents(), and wsdelegation_RPSetType_serialize_wrapper().

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

void* wsdelegation_RPSetType_array_push_wrapper (
     void * array )
 

Definition at line 1202 of file wsdelegation_RPSetType.c.

References wsdelegation_RPSetType_array, and wsdelegation_RPSetType_array_push().

01204 {
01205     return (void *) wsdelegation_RPSetType_array_push((wsdelegation_RPSetType_array *) array);
01206 }


about globus | grid research | globus toolkit | software development

Comments? webmaster@globus.org