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 class Attribute;
00068 
00069 struct SoapEnvVersionsStruct 
00070 {    
00071     const AxisChar* pchNamespaceUri;
00072     const AxisChar* pchPrefix;
00073     const AxisChar* pchWords[SOAP_WORDS_LAST];
00074 };
00075 
00076 static SoapEnvVersionsStruct gs_SoapEnvVersionsStruct[VERSION_LAST]=
00077 {
00078     /* SOAP_VER_1_1 */
00079     { 
00080         "http://schemas.xmlsoap.org/soap/envelope/",
00081         "SOAP-ENV",
00082         {
00083 /*SKW_ENVELOPE*/        "Envelope",
00084 /*SKW_HEADER*/            "Header",
00085 /*SKW_BODY*/            "Body",
00086 /*SKW_MUSTUNDERSTAND*/    "mustUnderstand",
00087 /*SKW_ACTOR*/            "actor",
00088 /*SKW_ENCODING_STYLE*/    "encodingStyle",
00089 /*SKW_FAULT*/            "Fault",
00090 /*SKW_FAULT_CODE*/        "faultcode",
00091 /*SKW_FAULT_STRING*/    "faultstring",
00092 /*SKW_FAULT_ACTOR*/        "faultactor",
00093 /*SKW_DETAIL*/            "detail",
00094 /*SKW_MULTIREF*/        "multiRef",
00095 
00096 /*SKW_TYPE*/            "type",
00097 /*SKW_ARRAYTYPE*/        "arrayType",
00098 /*SKW_HREF*/            "href",
00099 /*SKW_ID*/                "id"
00100         },
00101     },
00102 
00103     /*SOAP_VER_1_2*/
00104     { 
00105         "http://www.w3.org/2003/05/soap-envelope",
00106         "env",
00107         {
00108 /*SKW_ENVELOPE*/        "Envelope",
00109 /*SKW_HEADER*/            "Header",
00110 /*SKW_BODY*/            "Body",
00111 /*SKW_MUSTUNDERSTAND*/    "mustUnderstand",
00112 /*SKW_ACTOR*/            "actor",
00113 /*SKW_ENCODING_STYLE*/    "encodingStyle",
00114 /*SKW_FAULT*/            "Fault",
00115 /*SKW_FAULT_CODE*/        "Code",
00116 /*SKW_FAULT_STRING*/    "Reason",
00117 /*SKW_FAULT_ACTOR*/        "Role",
00118 /*SKW_DETAIL*/            "Detail",
00119 /*SKW_MULTIREF*/        "multiRef",
00120 
00121 /*SKW_TYPE*/            "type",
00122 /*SKW_ARRAYTYPE*/        "arrayType",
00123 /*SKW_HREF*/            "href",
00124 /*SKW_ID*/                "id"
00125         },
00126     }
00127 };
00128 #endif
00129 
00130 #endif 
00131 

Generated on Fri Jul 9 13:18:29 2004 for AxisC++ by doxygen1.2.18