Lines Matching refs:sdl
48 encodePtr get_encoder_from_prefix(sdlPtr sdl, xmlNodePtr node, const xmlChar *type) in get_encoder_from_prefix() argument
57 enc = get_encoder(sdl, (char*)nsptr->href, cptype); in get_encoder_from_prefix()
59 enc = get_encoder_ex(sdl, cptype, strlen(cptype)); in get_encoder_from_prefix()
62 enc = get_encoder_ex(sdl, (char*)type, xmlStrlen(type)); in get_encoder_from_prefix()
69 static sdlTypePtr get_element(sdlPtr sdl, xmlNodePtr node, const xmlChar *type) in get_element() argument
73 if (sdl->elements) { in get_element()
91 if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, nscat, len)) != NULL) { in get_element()
93 } else if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, (char*)type, type_len)) != NULL) { in get_element()
98 if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, (char*)type, xmlStrlen(type))) != NULL) { in get_element()
109 encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type) in get_encoder() argument
125 enc = get_encoder_ex(sdl, nscat, len); in get_encoder()
146 if (enc && sdl) { in get_encoder()
147 encodePtr new_enc = pemalloc(sizeof(encode), sdl->is_persistent); in get_encoder()
149 if (sdl->is_persistent) { in get_encoder()
156 if (sdl->encoders == NULL) { in get_encoder()
157 sdl->encoders = pemalloc(sizeof(HashTable), sdl->is_persistent); in get_encoder()
158 …zend_hash_init(sdl->encoders, 0, NULL, sdl->is_persistent ? delete_encoder_persistent : delete_enc… in get_encoder()
160 zend_hash_str_update_ptr(sdl->encoders, nscat, len, new_enc); in get_encoder()
168 encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, int len) in get_encoder_ex() argument
174 …} else if (sdl && sdl->encoders && (enc = zend_hash_str_find_ptr(sdl->encoders, (char*)nscat, len)… in get_encoder_ex()
180 sdlBindingPtr get_binding_from_type(sdlPtr sdl, sdlBindingType type) in get_binding_from_type() argument
184 if (sdl == NULL) { in get_binding_from_type()
188 ZEND_HASH_MAP_FOREACH_PTR(sdl->bindings, binding) { in get_binding_from_type()
196 sdlBindingPtr get_binding_from_name(sdlPtr sdl, char *name, char *ns) in get_binding_from_name() argument
206 binding = zend_hash_find_ptr(sdl->bindings, key.s); in get_binding_from_name()
235 s = strstr(ctx->sdl->source, "://"); in sdl_set_uri_credentials()
238 l1 = s ? (size_t)(s - ctx->sdl->source) : strlen(ctx->sdl->source); in sdl_set_uri_credentials()
246 ctx->sdl->source[4] == ':' && in sdl_set_uri_credentials()
247 ctx->sdl->source[l1-3] == ':' && in sdl_set_uri_credentials()
248 ctx->sdl->source[l1-2] == '8' && in sdl_set_uri_credentials()
249 ctx->sdl->source[l1-1] == '0') { in sdl_set_uri_credentials()
261 ctx->sdl->source[4] == 's' && in sdl_set_uri_credentials()
262 ctx->sdl->source[l1-4] == ':' && in sdl_set_uri_credentials()
263 ctx->sdl->source[l1-3] == '4' && in sdl_set_uri_credentials()
264 ctx->sdl->source[l1-2] == '4' && in sdl_set_uri_credentials()
265 ctx->sdl->source[l1-1] == '3') { in sdl_set_uri_credentials()
277 if (l1 != l2 || memcmp(ctx->sdl->source, uri, l1) != 0) { in sdl_set_uri_credentials()
323 sdlPtr tmpsdl = ctx->sdl; in load_wsdl_ex()
513 h->encode = get_encoder_from_prefix(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
517 h->element = get_element(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
710 param->encode = get_encoder_from_prefix(ctx->sdl, part, type->children->content); in wsdl_message()
714 param->element = get_element(ctx->sdl, part, element->children->content); in wsdl_message()
734 ctx.sdl = emalloc(sizeof(sdl)); in load_wsdl()
735 memset(ctx.sdl, 0, sizeof(sdl)); in load_wsdl()
736 ctx.sdl->source = estrdup(struri); in load_wsdl()
737 zend_hash_init(&ctx.sdl->functions, 0, NULL, delete_function, 0); in load_wsdl()
1135 if (zend_hash_str_add_ptr(&ctx.sdl->functions, tmp, len, function) == NULL) { in load_wsdl()
1136 zend_hash_next_index_insert_ptr(&ctx.sdl->functions, function); in load_wsdl()
1140 if (ctx.sdl->requests == NULL) { in load_wsdl()
1141 ctx.sdl->requests = emalloc(sizeof(HashTable)); in load_wsdl()
1142 zend_hash_init(ctx.sdl->requests, 0, NULL, NULL, 0); in load_wsdl()
1147 zend_hash_str_add_ptr(ctx.sdl->requests, tmp, len, function); in load_wsdl()
1154 if (!ctx.sdl->bindings) { in load_wsdl()
1155 ctx.sdl->bindings = emalloc(sizeof(HashTable)); in load_wsdl()
1156 zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0); in load_wsdl()
1159 …if (!zend_hash_str_add_ptr(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), tmpbindi… in load_wsdl()
1160 zend_hash_next_index_insert_ptr(ctx.sdl->bindings, tmpbinding); in load_wsdl()
1171 if (ctx.sdl->bindings == NULL || ctx.sdl->bindings->nNumOfElements == 0) { in load_wsdl()
1187 return ctx.sdl; in load_wsdl()
1544 sdlPtr sdl; in get_sdl_from_cache() local
1596 sdl = emalloc(sizeof(*sdl)); in get_sdl_from_cache()
1597 memset(sdl, 0, sizeof(*sdl)); in get_sdl_from_cache()
1599 sdl->source = sdl_deserialize_string(&in); in get_sdl_from_cache()
1600 sdl->target_ns = sdl_deserialize_string(&in); in get_sdl_from_cache()
1637 sdl->groups = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1638 zend_hash_init(sdl->groups, num_groups, NULL, delete_type, 0); in get_sdl_from_cache()
1640 sdl_deserialize_key(sdl->groups, types[i], &in); in get_sdl_from_cache()
1647 sdl->types = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1648 zend_hash_init(sdl->types, num_types, NULL, delete_type, 0); in get_sdl_from_cache()
1650 sdl_deserialize_key(sdl->types, types[i], &in); in get_sdl_from_cache()
1657 sdl->elements = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1658 zend_hash_init(sdl->elements, num_elements, NULL, delete_type, 0); in get_sdl_from_cache()
1660 sdl_deserialize_key(sdl->elements, types[i], &in); in get_sdl_from_cache()
1668 sdl->encoders = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1669 zend_hash_init(sdl->encoders, num_encoders, NULL, delete_encoder, 0); in get_sdl_from_cache()
1671 sdl_deserialize_key(sdl->encoders, encoders[i], &in); in get_sdl_from_cache()
1681 sdl->bindings = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1682 zend_hash_init(sdl->bindings, num_bindings, NULL, delete_binding, 0); in get_sdl_from_cache()
1686 sdl_deserialize_key(sdl->bindings, binding, &in); in get_sdl_from_cache()
1703 zend_hash_init(&sdl->functions, num_func, NULL, delete_function, 0); in get_sdl_from_cache()
1709 sdl_deserialize_key(&sdl->functions, func, &in); in get_sdl_from_cache()
1773 sdl->requests = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1774 zend_hash_init(sdl->requests, i, NULL, NULL, 0); in get_sdl_from_cache()
1779 sdl_deserialize_key(sdl->requests, functions[function_num-1], &in); in get_sdl_from_cache()
1791 return sdl; in get_sdl_from_cache()
2111 static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr sdl) in add_sdl_to_cache() argument
2143 sdl_serialize_string(sdl->source, out); in add_sdl_to_cache()
2144 sdl_serialize_string(sdl->target_ns, out); in add_sdl_to_cache()
2146 if (sdl->groups) { in add_sdl_to_cache()
2147 i = zend_hash_num_elements(sdl->groups); in add_sdl_to_cache()
2156 ZEND_HASH_MAP_FOREACH_PTR(sdl->groups, tmp) { in add_sdl_to_cache()
2163 if (sdl->types) { in add_sdl_to_cache()
2164 i = zend_hash_num_elements(sdl->types); in add_sdl_to_cache()
2173 ZEND_HASH_FOREACH_PTR(sdl->types, tmp) { in add_sdl_to_cache()
2180 if (sdl->elements) { in add_sdl_to_cache()
2181 i = zend_hash_num_elements(sdl->elements); in add_sdl_to_cache()
2190 ZEND_HASH_MAP_FOREACH_PTR(sdl->elements, tmp) { in add_sdl_to_cache()
2197 if (sdl->encoders) { in add_sdl_to_cache()
2198 i = zend_hash_num_elements(sdl->encoders); in add_sdl_to_cache()
2207 ZEND_HASH_FOREACH_PTR(sdl->encoders, tmp) { in add_sdl_to_cache()
2223 if (sdl->groups) { in add_sdl_to_cache()
2227 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in add_sdl_to_cache()
2233 if (sdl->types) { in add_sdl_to_cache()
2237 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in add_sdl_to_cache()
2243 if (sdl->elements) { in add_sdl_to_cache()
2247 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in add_sdl_to_cache()
2253 if (sdl->encoders) { in add_sdl_to_cache()
2257 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in add_sdl_to_cache()
2264 if (sdl->bindings) { in add_sdl_to_cache()
2265 i = zend_hash_num_elements(sdl->bindings); in add_sdl_to_cache()
2276 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in add_sdl_to_cache()
2296 i = zend_hash_num_elements(&sdl->functions); in add_sdl_to_cache()
2304 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in add_sdl_to_cache()
2362 if (sdl->requests) { in add_sdl_to_cache()
2363 i = zend_hash_num_elements(sdl->requests); in add_sdl_to_cache()
2373 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->requests, key, tmp) { in add_sdl_to_cache()
2944 static sdlPtr make_persistent_sdl(sdlPtr sdl) in make_persistent_sdl() argument
2955 psdl = malloc(sizeof(*sdl)); in make_persistent_sdl()
2956 memset(psdl, 0, sizeof(*sdl)); in make_persistent_sdl()
2958 if (sdl->source) { in make_persistent_sdl()
2959 psdl->source = strdup(sdl->source); in make_persistent_sdl()
2961 if (sdl->target_ns) { in make_persistent_sdl()
2962 psdl->target_ns = strdup(sdl->target_ns); in make_persistent_sdl()
2965 if (sdl->groups) { in make_persistent_sdl()
2970 …zend_hash_init(psdl->groups, zend_hash_num_elements(sdl->groups), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2972 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in make_persistent_sdl()
2984 if (sdl->types) { in make_persistent_sdl()
2989 zend_hash_init(psdl->types, zend_hash_num_elements(sdl->types), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2991 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in make_persistent_sdl()
3003 if (sdl->elements) { in make_persistent_sdl()
3008 …zend_hash_init(psdl->elements, zend_hash_num_elements(sdl->elements), NULL, delete_type_persistent… in make_persistent_sdl()
3010 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in make_persistent_sdl()
3022 if (sdl->encoders) { in make_persistent_sdl()
3027 …zend_hash_init(psdl->encoders, zend_hash_num_elements(sdl->encoders), NULL, delete_encoder_persist… in make_persistent_sdl()
3029 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in make_persistent_sdl()
3064 if (sdl->bindings) { in make_persistent_sdl()
3069 …zend_hash_init(psdl->bindings, zend_hash_num_elements(sdl->bindings), NULL, delete_binding_persist… in make_persistent_sdl()
3071 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in make_persistent_sdl()
3083 …zend_hash_init(&psdl->functions, zend_hash_num_elements(&sdl->functions), NULL, delete_function_pe… in make_persistent_sdl()
3084 if (zend_hash_num_elements(&sdl->functions)) { in make_persistent_sdl()
3088 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in make_persistent_sdl()
3100 if (sdl->requests) { in make_persistent_sdl()
3106 zend_hash_init(psdl->requests, zend_hash_num_elements(sdl->requests), NULL, NULL, 1); in make_persistent_sdl()
3108 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(sdl->requests, key, zv) { in make_persistent_sdl()
3129 sdlPtr sdl; member
3135 sdlPtr tmp = p->sdl; in delete_psdl_int()
3180 sdlPtr sdl = NULL; in get_sdl() local
3210 return p->sdl; in get_sdl()
3251 if ((sdl = get_sdl_from_cache(key, uri, uri_len, t-SOAP_GLOBAL(cache_ttl), &cached)) != NULL) { in get_sdl()
3337 sdl = load_wsdl(this_ptr, uri); in get_sdl()
3338 if (sdl) { in get_sdl()
3339 sdl->is_persistent = 0; in get_sdl()
3350 if (sdl) { in get_sdl()
3351 add_sdl_to_cache(key, uri, t, sdl); in get_sdl()
3358 if (sdl) { in get_sdl()
3381 return sdl; in get_sdl()
3385 psdl = make_persistent_sdl(sdl); in get_sdl()
3388 p.sdl = psdl; in get_sdl()
3393 delete_sdl_impl(sdl); in get_sdl()
3395 sdl = psdl; in get_sdl()
3399 return sdl; in get_sdl()