Main Page | File List | File Members

Envelope.h

Go to the documentation of this file.
00001 /* -*- mode: c++; -*-
00002  *-----------------------------------------------------------------------------
00003  * $RCSfile: Envelope.h,v $
00004  *
00005  * See Copyright for the status of this software.
00006  *
00007  * The OpenSOAP Project
00008  * http://opensoap.jp/
00009  *-----------------------------------------------------------------------------
00010  */
00011 #ifndef OpenSOAP_Envelope_H
00012 #define OpenSOAP_Envelope_H
00013 
00014 #include <OpenSOAP/Block.h>
00015 #include <OpenSOAP/ByteArray.h>
00016 #include <OpenSOAP/String.h>
00017 
00018 #include <stdlib.h>
00019 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif /* __cplusplus */
00029 
00034     typedef struct tagOpenSOAPEnvelope OpenSOAPEnvelope;
00035 
00040     typedef OpenSOAPEnvelope    *OpenSOAPEnvelopePtr;
00041 
00050     int
00051     OPENSOAP_API
00052     OpenSOAPEnvelopeCreate(/* [out] */ OpenSOAPEnvelopePtr *soap_env);
00053 
00070     int
00071     OPENSOAP_API
00072     OpenSOAPEnvelopeCreateMB(/* [in]  */ const char *soapVer,
00073                              /* [in]  */ const char *envPrefix,
00074                              /* [out] */ OpenSOAPEnvelopePtr *soapEnv);
00075 
00091     int
00092     OPENSOAP_API
00093     OpenSOAPEnvelopeCreateWC(/* [in]  */ const wchar_t *soapVer,
00094                              /* [in]  */ const wchar_t *envPrefix,
00095                              /* [out] */ OpenSOAPEnvelopePtr *soapEnv);
00096 
00109     int
00110     OPENSOAP_API
00111     OpenSOAPEnvelopeCreateString(/* [in]  */ OpenSOAPStringPtr soapVer,
00112                                  /* [in]  */ OpenSOAPStringPtr envPrefix,
00113                                  /* [out] */ OpenSOAPEnvelopePtr *soapEnv);
00114 
00133     int
00134     OPENSOAP_API
00135     OpenSOAPEnvelopeCreateFaultMB(/* [in]  */ const char *soapVer,
00136                                   /* [in]  */ const char *envPrefix,
00137                                   /* [in]  */ const char *faultCode,
00138                                   /* [in]  */ const char *faultString,
00139                                   /* [out] */ OpenSOAPBlockPtr *faultBlock,
00140                                   /* [out] */ OpenSOAPEnvelopePtr *soapEnv);
00141 
00160     int
00161     OPENSOAP_API
00162     OpenSOAPEnvelopeCreateFaultWC(/* [in]  */ const wchar_t *soapVer,
00163                                   /* [in]  */ const wchar_t *envPrefix,
00164                                   /* [in]  */ const wchar_t *faultCode,
00165                                   /* [in]  */ const wchar_t *faultString,
00166                                   /* [out] */ OpenSOAPBlockPtr *faultBlock,
00167                                   /* [out] */ OpenSOAPEnvelopePtr *soapEnv);
00168 
00181     int
00182     OPENSOAP_API
00183     OpenSOAPEnvelopeCreateCharEncoding(/* [in]  */ const char *chEnc,
00184                                        /* [in]  */ OpenSOAPByteArrayPtr b_ary,
00185                                        /* [out] */ OpenSOAPEnvelopePtr *soapEnv);
00186 
00195     int
00196     OPENSOAP_API
00197     OpenSOAPEnvelopeRetain(/* [in, out] */ OpenSOAPEnvelopePtr soapEnv);
00198 
00209     int
00210     OPENSOAP_API
00211     OpenSOAPEnvelopeRelease(/* [in, out] */ OpenSOAPEnvelopePtr soapEnv);
00212 
00225     int
00226     OPENSOAP_API
00227     OpenSOAPEnvelopeAddHeaderBlockMB(/* [out]  */ OpenSOAPEnvelopePtr soapEnv,
00228                                      /* [in]  */ const char *block_name,
00229                                      /* [out] */ OpenSOAPBlockPtr *h_block);
00230 
00243     int
00244     OPENSOAP_API
00245     OpenSOAPEnvelopeAddHeaderBlockWC(/* [out]  */ OpenSOAPEnvelopePtr soapEnv,
00246                                      /* [in]  */ const wchar_t *block_name,
00247                                      /* [out] */ OpenSOAPBlockPtr *h_block);
00248 
00259     int
00260     OPENSOAP_API
00261     OpenSOAPEnvelopeGetNextHeaderBlock(/* [in] */ OpenSOAPEnvelopePtr soap_env,
00262                                        /* [in, out] */ OpenSOAPBlockPtr *h_block);
00263 
00276     int
00277     OPENSOAP_API
00278     OpenSOAPEnvelopeGetHeaderBlockMB(/* [in]  */ OpenSOAPEnvelopePtr soap_env,
00279                                      /* [in]  */ const char *block_name,
00280                                      /* [out] */ OpenSOAPBlockPtr *h_block);
00281 
00294     int
00295     OPENSOAP_API
00296     OpenSOAPEnvelopeGetHeaderBlockWC(/* [in]  */ OpenSOAPEnvelopePtr soap_env,
00297                                      /* [in]  */ const wchar_t *block_name,
00298                                      /* [out] */ OpenSOAPBlockPtr *h_block);
00299 
00312     int
00313     OPENSOAP_API
00314     OpenSOAPEnvelopeAddBodyBlockMB(/* [out]  */ OpenSOAPEnvelopePtr soap_env,
00315                                    /* [in]  */ const char *block_name,
00316                                    /* [out] */ OpenSOAPBlockPtr *b_block);
00317 
00330     int
00331     OPENSOAP_API
00332     OpenSOAPEnvelopeAddBodyBlockWC(/* [out]  */ OpenSOAPEnvelopePtr soap_env,
00333                                    /* [in]  */ const wchar_t *block_name,
00334                                    /* [out] */ OpenSOAPBlockPtr *b_block);
00335 
00346     int
00347     OPENSOAP_API
00348     OpenSOAPEnvelopeGetNextBodyBlock(/* [in]  */ OpenSOAPEnvelopePtr soap_env,
00349                                      /* [in, out] */ OpenSOAPBlockPtr *b_block);
00350 
00365     int
00366     OPENSOAP_API
00367     OpenSOAPEnvelopeGetBodyBlockMB(/* [in]  */ OpenSOAPEnvelopePtr soap_env,
00368                                    /* [in]  */ const char *block_name,
00369                                    /* [out] */ OpenSOAPBlockPtr *b_block);
00370 
00385     int
00386     OPENSOAP_API
00387     OpenSOAPEnvelopeGetBodyBlockWC(/* [in]  */ OpenSOAPEnvelopePtr soap_env,
00388                                    /* [in]  */ const wchar_t *block_name,
00389                                    /* [out] */ OpenSOAPBlockPtr *b_block);
00390 
00403     int
00404     OPENSOAP_API
00405     OpenSOAPEnvelopeGetCharEncodingString(/* [in]  */ OpenSOAPEnvelopePtr soapEnv,
00406                                           /* [in]  */ const char *chEnc,
00407                                           /* [out] */ OpenSOAPByteArrayPtr b_ary);
00408     
00421     int
00422     OPENSOAP_API
00423     OpenSOAPEnvelopeGetHeaderCharEncodingString(/* [in]  */ OpenSOAPEnvelopePtr soap_env,
00424                                                 /* [in]  */ const char *ch_enc,
00425                                                 /* [out] */ OpenSOAPByteArrayPtr  b_ary);
00426 
00439     int
00440     OPENSOAP_API
00441     OpenSOAPEnvelopeGetBodyCharEncodingString(/* [in]  */ OpenSOAPEnvelopePtr soap_env,
00442                                               /* [in]  */ const char *ch_enc,
00443                                               /* [out] */ OpenSOAPByteArrayPtr b_ary);
00444 
00461     int
00462     OPENSOAP_API
00463     OpenSOAPEnvelopeAddFaultString(/* [out] */ OpenSOAPEnvelopePtr soapEnv,
00464                                    /* [in]  */ OpenSOAPStringPtr faultCode,
00465                                    /* [in]  */ OpenSOAPStringPtr faultString,
00466                                    /* [in]  */ int isValueDup,
00467                                    /* [out] */ OpenSOAPBlockPtr *faultBlock);
00468 
00479     int
00480     OPENSOAP_API
00481     OpenSOAPEnvelopeGetActorNameString(/* [in]  */ OpenSOAPEnvelopePtr soapEnv,
00482                                        /* [out] */ OpenSOAPStringPtr *actorName);
00483 
00494     int
00495     OPENSOAP_API
00496     OpenSOAPEnvelopeGetActorNextString(/* [in]  */ OpenSOAPEnvelopePtr soapEnv,
00497                                        /* [out] */ OpenSOAPStringPtr *actorNext);
00498 
00499 #ifdef __cplusplus
00500 }
00501 #endif /* __cplusplus */
00502 
00503 #endif /* OpenSOAP_Envelope_H */

Generated on Mon Oct 18 18:29:43 2004 for OpenSOAP by doxygen 1.3.6