php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_sdl.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Brad Lafountain <rodif_bl@yahoo.com> |
14 | Shane Caraveo <shane@caraveo.com> |
15 | Dmitry Stogov <dmitry@php.net> |
16 +----------------------------------------------------------------------+
17*/
18
19#ifndef PHP_SDL_H
20#define PHP_SDL_H
21
22#define XSD_WHITESPACE_COLLAPSE 1
23#define XSD_WHITESPACE_PRESERVE 1
24#define XSD_WHITESPACE_REPLACE 1
25
30
35
41
46
50
51struct _sdl {
52 HashTable functions; /* array of sdlFunction */
53 HashTable *types; /* array of sdlTypesPtr */
54 HashTable *elements; /* array of sdlTypesPtr */
55 HashTable *encoders; /* array of encodePtr */
56 HashTable *bindings; /* array of sdlBindings (key'd by name) */
57 HashTable *requests; /* array of sdlFunction (references) */
58 HashTable *groups; /* array of sdlTypesPtr */
59 char *target_ns;
60 char *source;
62};
63
64typedef struct sdlCtx {
66
67 HashTable docs; /* array of xmlDocPtr */
68
69 HashTable messages; /* array of xmlNodePtr */
70 HashTable bindings; /* array of xmlNodePtr */
71 HashTable portTypes; /* array of xmlNodePtr */
72 HashTable services; /* array of xmlNodePtr */
73
74 HashTable *attributes; /* array of sdlAttributePtr */
75 HashTable *attributeGroups; /* array of sdlTypesPtr */
79
81 char *name;
82 char *location;
84 void *bindingAttributes; /* sdlSoapBindingPtr */
85};
86
87/* Soap Binding Specific stuff */
90 sdlTransport transport; /* not implemented yet */
91};
92
102
108
110 char *ns;
112 sdlRpcEncodingStyle encodingStyle; /* not implemented yet */
113 HashTable *headers; /* array of sdlSoapBindingFunctionHeaderPtr */
114};
115
123
125 int value;
126 char fixed;
127};
128
130 char *value;
131 char fixed;
132};
133
148
158
159
161
166 union {
167 sdlTypePtr element; /* pointer to element */
168 sdlTypePtr group; /* pointer to group */
169 HashTable *content; /* array of sdlContentModel for sequnce,all,choice*/
170 char *group_ref; /* reference to group */
171 } u;
172};
173
182
189
195
211
218
219typedef struct _sdlFault {
220 char *name;
221 HashTable *details; /* array of sdlParamPtr */
222 void *bindingAttributes; /* sdlSoapBindingFunctionFaultPtr */
224
229 HashTable *requestParameters; /* array of sdlParamPtr */
230 HashTable *responseParameters; /* array of sdlParamPtr (this should only be one) */
232 void *bindingAttributes; /* sdlSoapBindingFunctionPtr */
233 HashTable *faults; /* array of sdlFaultPtr */
234};
235
240
242 char *name;
243 char *namens;
244 char *ref;
245 char *def;
246 char *fixed;
249 HashTable *extraAttributes; /* array of sdlExtraAttribute */
251};
252
253
254sdlPtr get_sdl(zval *this_ptr, char *uri, zend_long cache_wsdl);
255
256encodePtr get_encoder_from_prefix(sdlPtr sdl, xmlNodePtr data, const xmlChar *type);
257encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type);
258encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, size_t len);
259
260void delete_sdl(sdl *handle);
261void delete_sdl_impl(void *handle);
262
263void sdl_set_uri_credentials(sdlCtx *ctx, char *uri);
265
266#endif
size_t len
Definition apprentice.c:174
uint32_t u
Definition cdf.c:78
zend_ffi_type * type
Definition ffi.c:3812
DL_HANDLE handle
Definition ffi.c:3028
encodePtr get_encoder_from_prefix(sdlPtr sdl, xmlNodePtr data, const xmlChar *type)
Definition php_sdl.c:47
struct _sdlContentModel * sdlContentModelPtr
Definition php_sdl.h:160
struct _sdlContentModel sdlContentModel
Definition php_sdl.h:160
enum _sdlTypeKind sdlTypeKind
_sdlEncodingUse
Definition php_sdl.h:42
@ SOAP_ENCODED
Definition php_sdl.h:43
@ SOAP_LITERAL
Definition php_sdl.h:44
enum _sdlRpcEncodingStyle sdlRpcEncodingStyle
struct _sdlFault * sdlFaultPtr
enum _sdlEncodingStyle sdlEncodingStyle
enum _sdlEncodingUse sdlEncodingUse
encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, size_t len)
Definition php_sdl.c:176
struct _sdlFault sdlFault
enum _sdlBindingType sdlBindingType
_sdlContentKind
Definition php_sdl.h:149
@ XSD_CONTENT_CHOICE
Definition php_sdl.h:153
@ XSD_CONTENT_ANY
Definition php_sdl.h:156
@ XSD_CONTENT_ELEMENT
Definition php_sdl.h:150
@ XSD_CONTENT_ALL
Definition php_sdl.h:152
@ XSD_CONTENT_GROUP
Definition php_sdl.h:155
@ XSD_CONTENT_GROUP_REF
Definition php_sdl.h:154
@ XSD_CONTENT_SEQUENCE
Definition php_sdl.h:151
void sdl_set_uri_credentials(sdlCtx *ctx, char *uri)
Definition php_sdl.c:203
struct _sdlSoapBindingFunctionFault sdlSoapBindingFunctionFault
void sdl_restore_uri_credentials(sdlCtx *ctx)
Definition php_sdl.c:285
enum _sdlUse sdlUse
struct _sdlExtraAttribute sdlExtraAttribute
enum _sdlForm sdlForm
void delete_sdl(sdl *handle)
Definition php_sdl.c:3416
_sdlTypeKind
Definition php_sdl.h:174
@ XSD_TYPEKIND_LIST
Definition php_sdl.h:176
@ XSD_TYPEKIND_UNION
Definition php_sdl.h:177
@ XSD_TYPEKIND_EXTENSION
Definition php_sdl.h:180
@ XSD_TYPEKIND_RESTRICTION
Definition php_sdl.h:179
@ XSD_TYPEKIND_COMPLEX
Definition php_sdl.h:178
@ XSD_TYPEKIND_SIMPLE
Definition php_sdl.h:175
struct _sdlSoapBindingFunctionHeader * sdlSoapBindingFunctionHeaderPtr
void delete_sdl_impl(void *handle)
Definition php_sdl.c:3378
struct _sdlSoapBindingFunctionHeader sdlSoapBindingFunctionHeader
_sdlEncodingStyle
Definition php_sdl.h:31
@ SOAP_DOCUMENT
Definition php_sdl.h:33
@ SOAP_RPC
Definition php_sdl.h:32
encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type)
Definition php_sdl.c:108
_sdlBindingType
Definition php_sdl.h:26
@ BINDING_SOAP
Definition php_sdl.h:27
@ BINDING_HTTP
Definition php_sdl.h:28
enum _sdlTransport sdlTransport
_sdlForm
Definition php_sdl.h:190
@ XSD_FORM_QUALIFIED
Definition php_sdl.h:192
@ XSD_FORM_UNQUALIFIED
Definition php_sdl.h:193
@ XSD_FORM_DEFAULT
Definition php_sdl.h:191
_sdlRpcEncodingStyle
Definition php_sdl.h:36
@ SOAP_ENCODING_DEFAULT
Definition php_sdl.h:37
@ SOAP_ENCODING_1_2
Definition php_sdl.h:39
@ SOAP_ENCODING_1_1
Definition php_sdl.h:38
enum _sdlContentKind sdlContentKind
_sdlUse
Definition php_sdl.h:183
@ XSD_USE_DEFAULT
Definition php_sdl.h:184
@ XSD_USE_OPTIONAL
Definition php_sdl.h:185
@ XSD_USE_PROHIBITED
Definition php_sdl.h:186
@ XSD_USE_REQUIRED
Definition php_sdl.h:187
struct _sdlSoapBindingFunctionFault * sdlSoapBindingFunctionFaultPtr
_sdlTransport
Definition php_sdl.h:47
@ SOAP_TRANSPORT_HTTP
Definition php_sdl.h:48
struct _sdlExtraAttribute * sdlExtraAttributePtr
sdlPtr get_sdl(zval *this_ptr, char *uri, zend_long cache_wsdl)
Definition php_sdl.c:3152
struct _sdlRestrictionChar * sdlRestrictionCharPtr
Definition php_soap.h:46
struct _encode * encodePtr
Definition php_soap.h:42
struct _sdlSoapBindingFunctionBody sdlSoapBindingFunctionBody
Definition php_soap.h:55
struct _sdlRestrictionInt * sdlRestrictionIntPtr
Definition php_soap.h:45
struct _sdl sdl
Definition php_soap.h:44
struct _sdlType * sdlTypePtr
Definition php_soap.h:48
struct _sdlRestrictions * sdlRestrictionsPtr
Definition php_soap.h:47
struct _sdl * sdlPtr
Definition php_soap.h:44
struct _php_stream_context php_stream_context
Definition php_streams.h:98
zend_constant * data
sdlForm form
Definition php_sdl.h:247
char * name
Definition php_sdl.h:242
encodePtr encode
Definition php_sdl.h:250
HashTable * extraAttributes
Definition php_sdl.h:249
sdlUse use
Definition php_sdl.h:248
char * ref
Definition php_sdl.h:244
char * namens
Definition php_sdl.h:243
char * fixed
Definition php_sdl.h:246
char * def
Definition php_sdl.h:245
void * bindingAttributes
Definition php_sdl.h:84
char * location
Definition php_sdl.h:82
sdlBindingType bindingType
Definition php_sdl.h:83
char * name
Definition php_sdl.h:81
sdlTypePtr element
Definition php_sdl.h:167
sdlTypePtr group
Definition php_sdl.h:168
HashTable * content
Definition php_sdl.h:169
sdlContentKind kind
Definition php_sdl.h:163
char * group_ref
Definition php_sdl.h:170
HashTable * details
Definition php_sdl.h:221
char * name
Definition php_sdl.h:220
void * bindingAttributes
Definition php_sdl.h:222
char * responseName
Definition php_sdl.h:228
void * bindingAttributes
Definition php_sdl.h:232
HashTable * responseParameters
Definition php_sdl.h:230
struct _sdlBinding * binding
Definition php_sdl.h:231
char * requestName
Definition php_sdl.h:227
HashTable * requestParameters
Definition php_sdl.h:229
char * functionName
Definition php_sdl.h:226
HashTable * faults
Definition php_sdl.h:233
char * paramName
Definition php_sdl.h:216
encodePtr encode
Definition php_sdl.h:215
sdlTypePtr element
Definition php_sdl.h:214
int order
Definition php_sdl.h:213
sdlRestrictionIntPtr minInclusive
Definition php_sdl.h:137
HashTable * enumeration
Definition php_sdl.h:135
sdlRestrictionIntPtr length
Definition php_sdl.h:142
sdlRestrictionIntPtr maxExclusive
Definition php_sdl.h:138
sdlRestrictionCharPtr pattern
Definition php_sdl.h:146
sdlRestrictionIntPtr minExclusive
Definition php_sdl.h:136
sdlRestrictionIntPtr minLength
Definition php_sdl.h:143
sdlRestrictionIntPtr maxLength
Definition php_sdl.h:144
sdlRestrictionCharPtr whiteSpace
Definition php_sdl.h:145
sdlRestrictionIntPtr maxInclusive
Definition php_sdl.h:139
sdlRestrictionIntPtr totalDigits
Definition php_sdl.h:140
sdlRestrictionIntPtr fractionDigits
Definition php_sdl.h:141
sdlRpcEncodingStyle encodingStyle
Definition php_sdl.h:112
sdlRpcEncodingStyle encodingStyle
Definition php_sdl.h:106
sdlRpcEncodingStyle encodingStyle
Definition php_sdl.h:97
sdlSoapBindingFunctionBody input
Definition php_sdl.h:120
sdlEncodingStyle style
Definition php_sdl.h:118
sdlSoapBindingFunctionBody output
Definition php_sdl.h:121
sdlTransport transport
Definition php_sdl.h:90
sdlEncodingStyle style
Definition php_sdl.h:89
char * name
Definition php_sdl.h:199
sdlRestrictionsPtr restrictions
Definition php_sdl.h:203
HashTable * elements
Definition php_sdl.h:201
HashTable * attributes
Definition php_sdl.h:202
char * def
Definition php_sdl.h:206
char * fixed
Definition php_sdl.h:207
encodePtr encode
Definition php_sdl.h:204
char * ref
Definition php_sdl.h:208
sdlForm form
Definition php_sdl.h:209
char * namens
Definition php_sdl.h:200
char nillable
Definition php_sdl.h:198
sdlContentModelPtr model
Definition php_sdl.h:205
sdlTypeKind kind
Definition php_sdl.h:197
Definition php_sdl.h:51
HashTable * elements
Definition php_sdl.h:54
HashTable functions
Definition php_sdl.h:52
char * source
Definition php_sdl.h:60
HashTable * encoders
Definition php_sdl.h:55
char * target_ns
Definition php_sdl.h:59
bool is_persistent
Definition php_sdl.h:61
HashTable * requests
Definition php_sdl.h:57
HashTable * groups
Definition php_sdl.h:58
HashTable * bindings
Definition php_sdl.h:56
HashTable * types
Definition php_sdl.h:53
HashTable * attributes
Definition php_sdl.h:74
HashTable * attributeGroups
Definition php_sdl.h:75
php_stream_context * context
Definition php_sdl.h:76
HashTable portTypes
Definition php_sdl.h:71
HashTable docs
Definition php_sdl.h:67
HashTable messages
Definition php_sdl.h:69
zval old_header
Definition php_sdl.h:77
sdlPtr sdl
Definition php_sdl.h:65
HashTable services
Definition php_sdl.h:72
HashTable bindings
Definition php_sdl.h:70
struct _zval_struct zval
int32_t zend_long
Definition zend_long.h:42
struct _zend_array HashTable
Definition zend_types.h:386