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 unsigned char xsd__byte; 00087 typedef AxisChar * xsd__QName; 00092 typedef struct tm xsd__dateTime; 00097 typedef struct tm xsd__date; 00102 typedef struct tm xsd__time; 00107 typedef unsigned char xsd__unsignedByte; 00112 typedef unsigned int xsd__unsignedInt; 00117 typedef unsigned long xsd__unsignedLong; 00122 typedef unsigned short xsd__unsignedShort; 00127 typedef struct { 00128 xsd__unsignedByte * __ptr; 00129 xsd__int __size; 00130 } xsd__base64Binary; 00135 typedef struct{ 00136 xsd__unsignedByte * __ptr; 00137 xsd__int __size; 00138 } xsd__hexBinary; 00143 typedef AxisChar * xsd__anyURI; 00148 typedef AxisChar * xsd__NMTOKEN; 00154 typedef enum { 00155 RPC_ENCODED, /*default*/ 00156 DOC_LITERAL, 00157 RPC_LITERAL 00158 } AXIS_BINDING_STYLE; 00159 00160 #define AXIS_DEFINED_ARRAY(type) \ 00161 struct {\ 00162 type * m_Array;\ 00163 int m_Size;\ 00164 } 00165 00166 typedef AXIS_DEFINED_ARRAY(void) Axis_Array; 00167 typedef AXIS_DEFINED_ARRAY(xsd__string) xsd__string_Array; 00168 typedef AXIS_DEFINED_ARRAY(xsd__integer) xsd__integer_Array; 00169 typedef AXIS_DEFINED_ARRAY(xsd__int) xsd__int_Array; 00170 typedef AXIS_DEFINED_ARRAY(xsd__long) xsd__long_Array; 00171 typedef AXIS_DEFINED_ARRAY(xsd__short) xsd__short_Array; 00172 typedef AXIS_DEFINED_ARRAY(xsd__decimal) xsd__decimal_Array; 00173 typedef AXIS_DEFINED_ARRAY(xsd__float) xsd__float_Array; 00174 typedef AXIS_DEFINED_ARRAY(xsd__double) xsd__double_Array; 00175 typedef AXIS_DEFINED_ARRAY(xsd__boolean) xsd__boolean_Array; 00176 typedef AXIS_DEFINED_ARRAY(xsd__QName) xsd__QName_Array; 00177 typedef AXIS_DEFINED_ARRAY(xsd__dateTime) xsd__dateTime_Array; 00178 typedef AXIS_DEFINED_ARRAY(xsd__unsignedByte) xsd__unsignedByte_Array; 00179 typedef AXIS_DEFINED_ARRAY(xsd__unsignedInt) xsd__unsignedInt_Array; 00180 typedef AXIS_DEFINED_ARRAY(xsd__unsignedLong) xsd__unsignedLong_Array; 00181 typedef AXIS_DEFINED_ARRAY(xsd__unsignedShort) xsd__unsignedShort_Array; 00182 typedef AXIS_DEFINED_ARRAY(xsd__base64Binary) xsd__base64Binary_Array; 00183 typedef AXIS_DEFINED_ARRAY(xsd__hexBinary) xsd__hexBinary_Array; 00184 typedef AXIS_DEFINED_ARRAY(xsd__anyURI) xsd__anyURI_Array; 00185 typedef AXIS_DEFINED_ARRAY(xsd__NMTOKEN) xsd__NMTOKEN_Array; 00186 00187 #define AXIS_OUT_PARAM 00188 00189 static const int xsd_boolean_true = 1; 00190 static const int xsd_boolean_false = 0; 00191 00192 typedef enum { 00193 NORMAL_CHANNEL=0, 00194 SSL_CHANNEL 00195 } AXIS_CHANNEL_TYPE; 00196 00201 typedef char* XML_String; 00202 00207 typedef struct 00208 { 00212 XML_String* _array; 00216 int _size; 00217 } AnyType; 00218 00219 #endif