Main Page   Class Hierarchy   Compound List   File List   Compound Members   Examples  

SoapEnvVersions.h

00001 /*
00002  *   Copyright 2003-2004 The Apache Software Foundation.
00003  *
00004  *   Licensed under the Apache License, Version 2.0 (the "License");
00005  *   you may not use this file except in compliance with the License.
00006  *   You may obtain a copy of the License at
00007  *
00008  *       http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  *   Unless required by applicable law or agreed to in writing, software
00011  *   distributed under the License is distributed on an "AS IS" BASIS,
00012  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *   See the License for the specific language governing permissions and
00014  *   limitations under the License.
00015  *
00016  *
00017  * @author Roshan Weerasuriya (roshan@opensource.lk, roshan@jkcs.slt.lk)
00018  *
00019  */
00020 
00021 /* SoapEnvVersions.h:*/
00022 
00023 #ifdef WIN32
00024 #pragma warning (disable : 4786)
00025 #endif
00026 
00027 #ifndef __SOAPENVVERSIONS_H_OF_AXIS_INCLUDED___
00028 #define __SOAPENVVERSIONS_H_OF_AXIS_INCLUDED___
00029 
00030 #include <stdlib.h>
00031 #include "GDefine.h"
00032 
00033 /*
00034  * Here SKW stands for SoapKeyWord. This is a internal naming convension
00035  * for Axis C++.
00036  */
00037 typedef enum SOAP_WORDSTag 
00038 {
00039     SKW_ENVELOPE=0, /* this should always be 0 */
00040     SKW_HEADER,
00041     SKW_BODY,
00042     SKW_MUSTUNDERSTAND,
00043     SKW_ACTOR,
00044     SKW_ENCODING_STYLE,
00045     SKW_FAULT,
00046     SKW_FAULT_CODE,
00047     SKW_FAULT_STRING,
00048     SKW_FAULT_ACTOR,
00049     SKW_DETAIL,
00050     SKW_MULTIREF,
00051     
00052     SKW_TYPE,
00053     SKW_ARRAYTYPE,
00054     SKW_HREF,
00055     SKW_ID,
00056 
00057     SOAP_WORDS_LAST /*this should be the number of entries in this enum */
00058 } SOAP_WORDS;
00059 
00060 typedef enum SOAP_VERSIONTag 
00061 {
00062     SOAP_VER_1_1=0,
00063     SOAP_VER_1_2,
00064 
00065     VERSION_LAST
00066 } SOAP_VERSION;
00067 
00068 #ifdef __cplusplus
00069 
00070 class Attribute;
00071 
00072 struct SoapEnvVersionsStruct 
00073 {    
00074     const AxisChar* pchNamespaceUri;
00075     const AxisChar* pchPrefix;
00076     const AxisChar* pchWords[SOAP_WORDS_LAST];
00077 };
00078 
00079 static SoapEnvVersionsStruct gs_SoapEnvVersionsStruct[VERSION_LAST]=
00080 {
00081     /* SOAP_VER_1_1 */
00082     { 
00083         "http://schemas.xmlsoap.org/soap/envelope/",
00084         "SOAP-ENV",
00085         {
00086 /*SKW_ENVELOPE*/        "Envelope",
00087 /*SKW_HEADER*/            "Header",
00088 /*SKW_BODY*/            "Body",
00089 /*SKW_MUSTUNDERSTAND*/    "mustUnderstand",
00090 /*SKW_ACTOR*/            "actor",
00091 /*SKW_ENCODING_STYLE*/    "encodingStyle",
00092 /*SKW_FAULT*/            "Fault",
00093 /*SKW_FAULT_CODE*/        "faultcode",
00094 /*SKW_FAULT_STRING*/    "faultstring",
00095 /*SKW_FAULT_ACTOR*/        "faultactor",
00096 /*SKW_DETAIL*/            "detail",
00097 /*SKW_MULTIREF*/        "multiRef",
00098 
00099 /*SKW_TYPE*/            "type",
00100 /*SKW_ARRAYTYPE*/        "arrayType",
00101 /*SKW_HREF*/            "href",
00102 /*SKW_ID*/                "id"
00103         },
00104     },
00105 
00106     /*SOAP_VER_1_2*/
00107     { 
00108         "http://www.w3.org/2003/05/soap-envelope",
00109         "env",
00110         {
00111 /*SKW_ENVELOPE*/        "Envelope",
00112 /*SKW_HEADER*/            "Header",
00113 /*SKW_BODY*/            "Body",
00114 /*SKW_MUSTUNDERSTAND*/    "mustUnderstand",
00115 /*SKW_ACTOR*/            "actor",
00116 /*SKW_ENCODING_STYLE*/    "encodingStyle",
00117 /*SKW_FAULT*/            "Fault",
00118 /*SKW_FAULT_CODE*/        "Code",
00119 /*SKW_FAULT_STRING*/    "Reason",
00120 /*SKW_FAULT_ACTOR*/        "Role",
00121 /*SKW_DETAIL*/            "Detail",
00122 /*SKW_MULTIREF*/        "multiRef",
00123 
00124 /*SKW_TYPE*/            "type",
00125 /*SKW_ARRAYTYPE*/        "arrayType",
00126 /*SKW_HREF*/            "href",
00127 /*SKW_ID*/                "id"
00128         },
00129     }
00130 };
00131 #endif
00132 
00133 #endif 
00134 

Generated on Tue Jun 15 19:13:23 2004 for axiscpp by doxygen1.2.18