Lines Matching refs:sdl
47 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()
68 static sdlTypePtr get_element(sdlPtr sdl, xmlNodePtr node, const xmlChar *type) in get_element() argument
72 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()
108 encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type) in get_encoder() argument
124 enc = get_encoder_ex(sdl, nscat, len); in get_encoder()
145 if (enc && sdl) { in get_encoder()
146 encodePtr new_enc = pemalloc(sizeof(encode), sdl->is_persistent); in get_encoder()
148 if (sdl->is_persistent) { in get_encoder()
158 if (was_persistent || sdl->is_persistent) { in get_encoder()
159 …new_enc->details.clark_notation = zend_string_dup(new_enc->details.clark_notation, sdl->is_persist… in get_encoder()
164 if (sdl->encoders == NULL) { in get_encoder()
165 sdl->encoders = pemalloc(sizeof(HashTable), sdl->is_persistent); in get_encoder()
166 …zend_hash_init(sdl->encoders, 0, NULL, sdl->is_persistent ? delete_encoder_persistent : delete_enc… in get_encoder()
168 zend_hash_str_update_ptr(sdl->encoders, nscat, len, new_enc); in get_encoder()
176 encodePtr get_encoder_ex(sdlPtr sdl, const char *nscat, size_t len) in get_encoder_ex() argument
182 …} else if (sdl && sdl->encoders && (enc = zend_hash_str_find_ptr(sdl->encoders, nscat, len)) != NU… in get_encoder_ex()
211 s = strstr(ctx->sdl->source, "://"); in sdl_set_uri_credentials()
214 l1 = s ? (size_t)(s - ctx->sdl->source) : strlen(ctx->sdl->source); in sdl_set_uri_credentials()
222 ctx->sdl->source[4] == ':' && in sdl_set_uri_credentials()
223 ctx->sdl->source[l1-3] == ':' && in sdl_set_uri_credentials()
224 ctx->sdl->source[l1-2] == '8' && in sdl_set_uri_credentials()
225 ctx->sdl->source[l1-1] == '0') { in sdl_set_uri_credentials()
237 ctx->sdl->source[4] == 's' && in sdl_set_uri_credentials()
238 ctx->sdl->source[l1-4] == ':' && in sdl_set_uri_credentials()
239 ctx->sdl->source[l1-3] == '4' && in sdl_set_uri_credentials()
240 ctx->sdl->source[l1-2] == '4' && in sdl_set_uri_credentials()
241 ctx->sdl->source[l1-1] == '3') { in sdl_set_uri_credentials()
253 if (l1 != l2 || memcmp(ctx->sdl->source, uri, l1) != 0) { in sdl_set_uri_credentials()
299 sdlPtr tmpsdl = ctx->sdl; in load_wsdl_ex()
480 h->encode = get_encoder_from_prefix(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
484 h->element = get_element(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
674 param->encode = get_encoder_from_prefix(ctx->sdl, part, type->children->content); in wsdl_message()
678 param->element = get_element(ctx->sdl, part, element->children->content); in wsdl_message()
696 ctx.sdl = emalloc(sizeof(sdl)); in load_wsdl()
697 memset(ctx.sdl, 0, sizeof(sdl)); in load_wsdl()
698 ctx.sdl->source = estrdup(struri); in load_wsdl()
699 zend_hash_init(&ctx.sdl->functions, 0, NULL, delete_function, 0); in load_wsdl()
1096 …if (zend_hash_str_add_ptr(&ctx.sdl->functions, lc_function_name, function_name_len, function) == N… in load_wsdl()
1097 zend_hash_next_index_insert_ptr(&ctx.sdl->functions, function); in load_wsdl()
1102 if (ctx.sdl->requests == NULL) { in load_wsdl()
1103 ctx.sdl->requests = emalloc(sizeof(HashTable)); in load_wsdl()
1104 zend_hash_init(ctx.sdl->requests, 0, NULL, NULL, 0); in load_wsdl()
1109 zend_hash_str_add_ptr(ctx.sdl->requests, lc_request_name, request_name_len, function); in load_wsdl()
1116 if (!ctx.sdl->bindings) { in load_wsdl()
1117 ctx.sdl->bindings = emalloc(sizeof(HashTable)); in load_wsdl()
1118 zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0); in load_wsdl()
1121 …if (!zend_hash_str_add_ptr(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), tmpbindi… in load_wsdl()
1122 zend_hash_next_index_insert_ptr(ctx.sdl->bindings, tmpbinding); in load_wsdl()
1130 if (ctx.sdl->bindings == NULL || ctx.sdl->bindings->nNumOfElements == 0) { in load_wsdl()
1146 return ctx.sdl; in load_wsdl()
1509 sdlPtr sdl; in get_sdl_from_cache() local
1561 sdl = emalloc(sizeof(*sdl)); in get_sdl_from_cache()
1562 memset(sdl, 0, sizeof(*sdl)); in get_sdl_from_cache()
1564 sdl->source = sdl_deserialize_string(&in); in get_sdl_from_cache()
1565 sdl->target_ns = sdl_deserialize_string(&in); in get_sdl_from_cache()
1602 sdl->groups = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1603 zend_hash_init(sdl->groups, num_groups, NULL, delete_type, 0); in get_sdl_from_cache()
1605 sdl_deserialize_key(sdl->groups, types[i], &in); in get_sdl_from_cache()
1612 sdl->types = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1613 zend_hash_init(sdl->types, num_types, NULL, delete_type, 0); in get_sdl_from_cache()
1615 sdl_deserialize_key(sdl->types, types[i], &in); in get_sdl_from_cache()
1622 sdl->elements = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1623 zend_hash_init(sdl->elements, num_elements, NULL, delete_type, 0); in get_sdl_from_cache()
1625 sdl_deserialize_key(sdl->elements, types[i], &in); in get_sdl_from_cache()
1633 sdl->encoders = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1634 zend_hash_init(sdl->encoders, num_encoders, NULL, delete_encoder, 0); in get_sdl_from_cache()
1636 sdl_deserialize_key(sdl->encoders, encoders[i], &in); in get_sdl_from_cache()
1646 sdl->bindings = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1647 zend_hash_init(sdl->bindings, num_bindings, NULL, delete_binding, 0); in get_sdl_from_cache()
1651 sdl_deserialize_key(sdl->bindings, binding, &in); in get_sdl_from_cache()
1668 zend_hash_init(&sdl->functions, num_func, NULL, delete_function, 0); in get_sdl_from_cache()
1674 sdl_deserialize_key(&sdl->functions, func, &in); in get_sdl_from_cache()
1738 sdl->requests = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1739 zend_hash_init(sdl->requests, i, NULL, NULL, 0); in get_sdl_from_cache()
1744 sdl_deserialize_key(sdl->requests, functions[function_num-1], &in); in get_sdl_from_cache()
1756 return sdl; in get_sdl_from_cache()
2076 static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr sdl) in add_sdl_to_cache() argument
2108 sdl_serialize_string(sdl->source, out); in add_sdl_to_cache()
2109 sdl_serialize_string(sdl->target_ns, out); in add_sdl_to_cache()
2111 if (sdl->groups) { in add_sdl_to_cache()
2112 i = zend_hash_num_elements(sdl->groups); in add_sdl_to_cache()
2121 ZEND_HASH_MAP_FOREACH_PTR(sdl->groups, tmp) { in add_sdl_to_cache()
2128 if (sdl->types) { in add_sdl_to_cache()
2129 i = zend_hash_num_elements(sdl->types); in add_sdl_to_cache()
2138 ZEND_HASH_FOREACH_PTR(sdl->types, tmp) { in add_sdl_to_cache()
2145 if (sdl->elements) { in add_sdl_to_cache()
2146 i = zend_hash_num_elements(sdl->elements); in add_sdl_to_cache()
2155 ZEND_HASH_MAP_FOREACH_PTR(sdl->elements, tmp) { in add_sdl_to_cache()
2162 if (sdl->encoders) { in add_sdl_to_cache()
2163 i = zend_hash_num_elements(sdl->encoders); in add_sdl_to_cache()
2172 ZEND_HASH_FOREACH_PTR(sdl->encoders, tmp) { in add_sdl_to_cache()
2188 if (sdl->groups) { in add_sdl_to_cache()
2192 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in add_sdl_to_cache()
2198 if (sdl->types) { in add_sdl_to_cache()
2202 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in add_sdl_to_cache()
2208 if (sdl->elements) { in add_sdl_to_cache()
2212 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in add_sdl_to_cache()
2218 if (sdl->encoders) { in add_sdl_to_cache()
2222 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in add_sdl_to_cache()
2229 if (sdl->bindings) { in add_sdl_to_cache()
2230 i = zend_hash_num_elements(sdl->bindings); in add_sdl_to_cache()
2241 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in add_sdl_to_cache()
2261 i = zend_hash_num_elements(&sdl->functions); in add_sdl_to_cache()
2269 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in add_sdl_to_cache()
2327 if (sdl->requests) { in add_sdl_to_cache()
2328 i = zend_hash_num_elements(sdl->requests); in add_sdl_to_cache()
2338 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->requests, key, tmp) { in add_sdl_to_cache()
2910 static sdlPtr make_persistent_sdl(sdlPtr sdl) in make_persistent_sdl() argument
2921 psdl = malloc(sizeof(*sdl)); in make_persistent_sdl()
2922 memset(psdl, 0, sizeof(*sdl)); in make_persistent_sdl()
2924 if (sdl->source) { in make_persistent_sdl()
2925 psdl->source = strdup(sdl->source); in make_persistent_sdl()
2927 if (sdl->target_ns) { in make_persistent_sdl()
2928 psdl->target_ns = strdup(sdl->target_ns); in make_persistent_sdl()
2931 if (sdl->groups) { in make_persistent_sdl()
2936 …zend_hash_init(psdl->groups, zend_hash_num_elements(sdl->groups), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2938 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in make_persistent_sdl()
2950 if (sdl->types) { in make_persistent_sdl()
2955 zend_hash_init(psdl->types, zend_hash_num_elements(sdl->types), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2957 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in make_persistent_sdl()
2969 if (sdl->elements) { in make_persistent_sdl()
2974 …zend_hash_init(psdl->elements, zend_hash_num_elements(sdl->elements), NULL, delete_type_persistent… in make_persistent_sdl()
2976 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in make_persistent_sdl()
2988 if (sdl->encoders) { in make_persistent_sdl()
2993 …zend_hash_init(psdl->encoders, zend_hash_num_elements(sdl->encoders), NULL, delete_encoder_persist… in make_persistent_sdl()
2995 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in make_persistent_sdl()
3030 if (sdl->bindings) { in make_persistent_sdl()
3035 …zend_hash_init(psdl->bindings, zend_hash_num_elements(sdl->bindings), NULL, delete_binding_persist… in make_persistent_sdl()
3037 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in make_persistent_sdl()
3049 …zend_hash_init(&psdl->functions, zend_hash_num_elements(&sdl->functions), NULL, delete_function_pe… in make_persistent_sdl()
3050 if (zend_hash_num_elements(&sdl->functions)) { in make_persistent_sdl()
3054 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in make_persistent_sdl()
3066 if (sdl->requests) { in make_persistent_sdl()
3072 zend_hash_init(psdl->requests, zend_hash_num_elements(sdl->requests), NULL, NULL, 1); in make_persistent_sdl()
3074 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(sdl->requests, key, zv) { in make_persistent_sdl()
3095 sdlPtr sdl; member
3101 sdlPtr tmp = p->sdl; in delete_psdl_int()
3146 sdlPtr sdl = NULL; in get_sdl() local
3176 return p->sdl; in get_sdl()
3217 if ((sdl = get_sdl_from_cache(key, uri, uri_len, t-SOAP_GLOBAL(cache_ttl), &cached)) != NULL) { in get_sdl()
3303 sdl = load_wsdl(this_ptr, uri); in get_sdl()
3304 if (sdl) { in get_sdl()
3305 sdl->is_persistent = 0; in get_sdl()
3316 if (sdl) { in get_sdl()
3317 add_sdl_to_cache(key, uri, t, sdl); in get_sdl()
3324 if (sdl) { in get_sdl()
3347 return sdl; in get_sdl()
3351 psdl = make_persistent_sdl(sdl); in get_sdl()
3354 p.sdl = psdl; in get_sdl()
3359 delete_sdl_impl(sdl); in get_sdl()
3361 sdl = psdl; in get_sdl()
3365 return sdl; in get_sdl()
3407 void delete_sdl(sdl *handle) in delete_sdl()