Main Page   Class Hierarchy   Compound List   File List   Compound Members   File 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 /*
00031  * Here SKW stands for SoapKeyWord. This is a internal naming convension
00032  * for Axis C++.
00033  */
00034 typedef enum SOAP_WORDSTag 
00035 {
00036     SKW_ENVELOPE=0, /* this should always be 0 */
00037     SKW_HEADER,
00038     SKW_BODY,
00039     SKW_MUSTUNDERSTAND,
00040     SKW_ACTOR,
00041     SKW_ENCODING_STYLE,
00042     SKW_FAULT,
00043     SKW_FAULT_CODE,
00044     SKW_FAULT_STRING,
00045     SKW_FAULT_ACTOR,
00046     SKW_DETAIL,
00047     SKW_MULTIREF,
00048     
00049     SKW_TYPE,
00050     SKW_ARRAYTYPE,
00051     SKW_HREF,
00052     SKW_ID,
00053 
00054     SOAP_WORDS_LAST /*this should be the number of entries in this enum */
00055 } SOAP_WORDS;
00056 
00057 typedef enum SOAP_VERSIONTag 
00058 {
00059     SOAP_VER_1_1=0,
00060     SOAP_VER_1_2,
00061 
00062     VERSION_LAST
00063 } SOAP_VERSION;
00064 
00065 #ifdef __cplusplus
00066 
00067 AXIS_CPP_NAMESPACE_START
00068 
00069 class Attribute;
00070 
00071 AXIS_CPP_NAMESPACE_END
00072 
00073 struct SoapEnvVersionsStruct 
00074 {    
00075     const AxisChar* pchNamespaceUri;
00076     const AxisChar* pchPrefix;
00077     const AxisChar* pchWords[SOAP_WORDS_LAST];
00078 };
00079 
00080 static SoapEnvVersionsStruct gs_SoapEnvVersionsStruct[VERSION_LAST]=
00081 {
00082     /* SOAP_VER_1_1 */
00083     { 
00084         "http://schemas.xmlsoap.org/soap/envelope/",
00085         "SOAP-ENV",
00086         {
00087 /*SKW_ENVELOPE*/        "Envelope",
00088 /*SKW_HEADER*/            "Header",
00089 /*SKW_BODY*/            "Body",
00090 /*SKW_MUSTUNDERSTAND*/    "mustUnderstand",
00091 /*SKW_ACTOR*/            "actor",
00092 /*SKW_ENCODING_STYLE*/    "encodingStyle",
00093 /*SKW_FAULT*/            "Fault",
00094 /*SKW_FAULT_CODE*/        "faultcode",
00095 /*SKW_FAULT_STRING*/    "faultstring",
00096 /*SKW_FAULT_ACTOR*/        "faultactor",
00097 /*SKW_DETAIL*/            "detail",
00098 /*SKW_MULTIREF*/        "multiRef",
00099 
00100 /*SKW_TYPE*/            "type",
00101 /*SKW_ARRAYTYPE*/        "arrayType",
00102 /*SKW_HREF*/            "href",
00103 /*SKW_ID*/                "id"
00104         },
00105     },
00106 
00107     /*SOAP_VER_1_2*/
00108     { 
00109         "http://www.w3.org/2003/05/soap-envelope",
00110         "env",
00111         {
00112 /*SKW_ENVELOPE*/        "Envelope",
00113 /*SKW_HEADER*/            "Header",
00114 /*SKW_BODY*/            "Body",
00115 /*SKW_MUSTUNDERSTAND*/    "mustUnderstand",
00116 /*SKW_ACTOR*/            "actor",
00117 /*SKW_ENCODING_STYLE*/    "encodingStyle",
00118 /*SKW_FAULT*/            "Fault",
00119 /*SKW_FAULT_CODE*/        "Code",
00120 /*SKW_FAULT_STRING*/    "Reason",
00121 /*SKW_FAULT_ACTOR*/        "Role",
00122 /*SKW_DETAIL*/            "Detail",
00123 /*SKW_MULTIREF*/        "multiRef",
00124 
00125 /*SKW_TYPE*/            "type",
00126 /*SKW_ARRAYTYPE*/        "arrayType",
00127 /*SKW_HREF*/            "href",
00128 /*SKW_ID*/                "id"
00129         },
00130     }
00131 };
00132 #endif
00133 
00134 #endif 
00135 

Generated on Wed Aug 18 11:42:24 2004 for AxisC++ by doxygen1.2.18