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 00018 #if !defined(_AXISUSERAPI_H____OF_AXIS_INCLUDED_) 00019 #define _AXISUSERAPI_H____OF_AXIS_INCLUDED_ 00020 00021 #include <axis/server/GDefine.h> 00022 #include <time.h> 00023 #include <string.h> 00024 00031 #define AxisChar char 00032 00037 typedef AxisChar * xsd__string; 00042 typedef int xsd__integer; 00047 typedef int xsd__int; 00052 typedef long xsd__long; 00057 typedef short xsd__short; 00062 typedef double xsd__decimal; 00067 typedef float xsd__float; 00072 typedef double xsd__double; 00077 typedef enum { false_=0, true_ } xsd__boolean; 00082 typedef signed char xsd__byte; 00087 typedef AxisChar * xsd__QName; 00092 typedef AxisChar * xsd__NCName; 00097 typedef struct tm xsd__dateTime; 00102 typedef struct tm xsd__date; 00107 typedef struct tm xsd__time; 00112 typedef unsigned char xsd__unsignedByte; 00117 typedef unsigned int xsd__unsignedInt; 00122 typedef unsigned long xsd__unsignedLong; 00127 typedef unsigned short xsd__unsignedShort; 00132 typedef struct { 00133 xsd__unsignedByte * __ptr; 00134 xsd__int __size; 00135 } xsd__base64Binary; 00140 typedef struct{ 00141 xsd__unsignedByte * __ptr; 00142 xsd__int __size; 00143 } xsd__hexBinary; 00148 typedef AxisChar * xsd__anyURI; 00153 typedef AxisChar * xsd__NMTOKEN; 00159 typedef enum { 00160 RPC_ENCODED, /*default*/ 00161 DOC_LITERAL, 00162 RPC_LITERAL 00163 } AXIS_BINDING_STYLE; 00164 00165 #define AXIS_DEFINED_ARRAY(type) \ 00166 struct {\ 00167 type * m_Array;\ 00168 int m_Size;\ 00169 } 00170 00171 typedef AXIS_DEFINED_ARRAY(void) Axis_Array; 00172 typedef AXIS_DEFINED_ARRAY(xsd__string) xsd__string_Array; 00173 typedef AXIS_DEFINED_ARRAY(xsd__integer) xsd__integer_Array; 00174 typedef AXIS_DEFINED_ARRAY(xsd__int) xsd__int_Array; 00175 typedef AXIS_DEFINED_ARRAY(xsd__long) xsd__long_Array; 00176 typedef AXIS_DEFINED_ARRAY(xsd__short) xsd__short_Array; 00177 typedef AXIS_DEFINED_ARRAY(xsd__decimal) xsd__decimal_Array; 00178 typedef AXIS_DEFINED_ARRAY(xsd__float) xsd__float_Array; 00179 typedef AXIS_DEFINED_ARRAY(xsd__double) xsd__double_Array; 00180 typedef AXIS_DEFINED_ARRAY(xsd__boolean) xsd__boolean_Array; 00181 typedef AXIS_DEFINED_ARRAY(xsd__QName) xsd__QName_Array; 00182 typedef AXIS_DEFINED_ARRAY(xsd__NCName) xsd__NCName_Array; 00183 typedef AXIS_DEFINED_ARRAY(xsd__dateTime) xsd__dateTime_Array; 00184 typedef AXIS_DEFINED_ARRAY(xsd__unsignedByte) xsd__unsignedByte_Array; 00185 typedef AXIS_DEFINED_ARRAY(xsd__unsignedInt) xsd__unsignedInt_Array; 00186 typedef AXIS_DEFINED_ARRAY(xsd__unsignedLong) xsd__unsignedLong_Array; 00187 typedef AXIS_DEFINED_ARRAY(xsd__unsignedShort) xsd__unsignedShort_Array; 00188 typedef AXIS_DEFINED_ARRAY(xsd__base64Binary) xsd__base64Binary_Array; 00189 typedef AXIS_DEFINED_ARRAY(xsd__hexBinary) xsd__hexBinary_Array; 00190 typedef AXIS_DEFINED_ARRAY(xsd__anyURI) xsd__anyURI_Array; 00191 typedef AXIS_DEFINED_ARRAY(xsd__NMTOKEN) xsd__NMTOKEN_Array; 00192 00193 #define AXIS_OUT_PARAM 00194 00195 static const int xsd_boolean_true = 1; 00196 static const int xsd_boolean_false = 0; 00197 00198 typedef enum { 00199 NORMAL_CHANNEL=0, 00200 SSL_CHANNEL 00201 } AXIS_CHANNEL_TYPE; 00202 00207 typedef char* XML_String; 00208 00213 typedef struct 00214 { 00218 XML_String* _array; 00222 int _size; 00223 } AnyType; 00224 00225 #endif