Lines Matching refs:sdl
50 encodePtr get_encoder_from_prefix(sdlPtr sdl, xmlNodePtr node, const xmlChar *type) in get_encoder_from_prefix() argument
59 enc = get_encoder(sdl, (char*)nsptr->href, cptype); in get_encoder_from_prefix()
61 enc = get_encoder_ex(sdl, cptype, strlen(cptype)); in get_encoder_from_prefix()
64 enc = get_encoder_ex(sdl, (char*)type, xmlStrlen(type)); in get_encoder_from_prefix()
71 static sdlTypePtr get_element(sdlPtr sdl, xmlNodePtr node, const xmlChar *type) in get_element() argument
75 if (sdl->elements) { in get_element()
93 if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, nscat, len)) != NULL) { in get_element()
95 } else if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, (char*)type, type_len)) != NULL) { in get_element()
100 if ((sdl_type = zend_hash_str_find_ptr(sdl->elements, (char*)type, xmlStrlen(type))) != NULL) { in get_element()
111 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, delete_encoder, sdl->is_persistent); 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_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()
319 sdlPtr tmpsdl = ctx->sdl; in load_wsdl_ex()
509 h->encode = get_encoder_from_prefix(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
513 h->element = get_element(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
706 param->encode = get_encoder_from_prefix(ctx->sdl, part, type->children->content); in wsdl_message()
710 param->element = get_element(ctx->sdl, part, element->children->content); in wsdl_message()
730 ctx.sdl = emalloc(sizeof(sdl)); in load_wsdl()
731 memset(ctx.sdl, 0, sizeof(sdl)); in load_wsdl()
732 ctx.sdl->source = estrdup(struri); in load_wsdl()
733 zend_hash_init(&ctx.sdl->functions, 0, NULL, delete_function, 0); in load_wsdl()
1129 … if (zend_hash_str_add_ptr(&ctx.sdl->functions, php_strtolower(tmp, len), len, function) == NULL) { in load_wsdl()
1130 zend_hash_next_index_insert_ptr(&ctx.sdl->functions, function); in load_wsdl()
1134 if (ctx.sdl->requests == NULL) { in load_wsdl()
1135 ctx.sdl->requests = emalloc(sizeof(HashTable)); in load_wsdl()
1136 zend_hash_init(ctx.sdl->requests, 0, NULL, NULL, 0); in load_wsdl()
1140 zend_hash_str_add_ptr(ctx.sdl->requests, php_strtolower(tmp, len), len, function); in load_wsdl()
1147 if (!ctx.sdl->bindings) { in load_wsdl()
1148 ctx.sdl->bindings = emalloc(sizeof(HashTable)); in load_wsdl()
1149 zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0); in load_wsdl()
1152 …if (!zend_hash_str_add_ptr(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), tmpbindi… in load_wsdl()
1153 zend_hash_next_index_insert_ptr(ctx.sdl->bindings, tmpbinding); in load_wsdl()
1164 if (ctx.sdl->bindings == NULL || ctx.sdl->bindings->nNumOfElements == 0) { in load_wsdl()
1174 return ctx.sdl; in load_wsdl()
1531 sdlPtr sdl; in get_sdl_from_cache() local
1583 sdl = emalloc(sizeof(*sdl)); in get_sdl_from_cache()
1584 memset(sdl, 0, sizeof(*sdl)); in get_sdl_from_cache()
1586 sdl->source = sdl_deserialize_string(&in); in get_sdl_from_cache()
1587 sdl->target_ns = sdl_deserialize_string(&in); in get_sdl_from_cache()
1624 sdl->groups = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1625 zend_hash_init(sdl->groups, num_groups, NULL, delete_type, 0); in get_sdl_from_cache()
1627 sdl_deserialize_key(sdl->groups, types[i], &in); in get_sdl_from_cache()
1634 sdl->types = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1635 zend_hash_init(sdl->types, num_types, NULL, delete_type, 0); in get_sdl_from_cache()
1637 sdl_deserialize_key(sdl->types, types[i], &in); in get_sdl_from_cache()
1644 sdl->elements = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1645 zend_hash_init(sdl->elements, num_elements, NULL, delete_type, 0); in get_sdl_from_cache()
1647 sdl_deserialize_key(sdl->elements, types[i], &in); in get_sdl_from_cache()
1655 sdl->encoders = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1656 zend_hash_init(sdl->encoders, num_encoders, NULL, delete_encoder, 0); in get_sdl_from_cache()
1658 sdl_deserialize_key(sdl->encoders, encoders[i], &in); in get_sdl_from_cache()
1668 sdl->bindings = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1669 zend_hash_init(sdl->bindings, num_bindings, NULL, delete_binding, 0); in get_sdl_from_cache()
1673 sdl_deserialize_key(sdl->bindings, binding, &in); in get_sdl_from_cache()
1690 zend_hash_init(&sdl->functions, num_func, NULL, delete_function, 0); in get_sdl_from_cache()
1696 sdl_deserialize_key(&sdl->functions, func, &in); in get_sdl_from_cache()
1760 sdl->requests = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1761 zend_hash_init(sdl->requests, i, NULL, NULL, 0); in get_sdl_from_cache()
1766 sdl_deserialize_key(sdl->requests, functions[function_num-1], &in); in get_sdl_from_cache()
1778 return sdl; in get_sdl_from_cache()
2098 static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr sdl) in add_sdl_to_cache() argument
2130 sdl_serialize_string(sdl->source, out); in add_sdl_to_cache()
2131 sdl_serialize_string(sdl->target_ns, out); in add_sdl_to_cache()
2133 if (sdl->groups) { in add_sdl_to_cache()
2134 i = zend_hash_num_elements(sdl->groups); in add_sdl_to_cache()
2143 ZEND_HASH_FOREACH_PTR(sdl->groups, tmp) { in add_sdl_to_cache()
2150 if (sdl->types) { in add_sdl_to_cache()
2151 i = zend_hash_num_elements(sdl->types); in add_sdl_to_cache()
2160 ZEND_HASH_FOREACH_PTR(sdl->types, tmp) { in add_sdl_to_cache()
2167 if (sdl->elements) { in add_sdl_to_cache()
2168 i = zend_hash_num_elements(sdl->elements); in add_sdl_to_cache()
2177 ZEND_HASH_FOREACH_PTR(sdl->elements, tmp) { in add_sdl_to_cache()
2184 if (sdl->encoders) { in add_sdl_to_cache()
2185 i = zend_hash_num_elements(sdl->encoders); in add_sdl_to_cache()
2194 ZEND_HASH_FOREACH_PTR(sdl->encoders, tmp) { in add_sdl_to_cache()
2210 if (sdl->groups) { in add_sdl_to_cache()
2214 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in add_sdl_to_cache()
2220 if (sdl->types) { in add_sdl_to_cache()
2224 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in add_sdl_to_cache()
2230 if (sdl->elements) { in add_sdl_to_cache()
2234 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in add_sdl_to_cache()
2240 if (sdl->encoders) { in add_sdl_to_cache()
2244 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in add_sdl_to_cache()
2251 if (sdl->bindings) { in add_sdl_to_cache()
2252 i = zend_hash_num_elements(sdl->bindings); in add_sdl_to_cache()
2263 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in add_sdl_to_cache()
2283 i = zend_hash_num_elements(&sdl->functions); in add_sdl_to_cache()
2291 ZEND_HASH_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in add_sdl_to_cache()
2349 if (sdl->requests) { in add_sdl_to_cache()
2350 i = zend_hash_num_elements(sdl->requests); in add_sdl_to_cache()
2360 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->requests, key, tmp) { in add_sdl_to_cache()
2921 static sdlPtr make_persistent_sdl(sdlPtr sdl) in make_persistent_sdl() argument
2932 psdl = malloc(sizeof(*sdl)); in make_persistent_sdl()
2933 memset(psdl, 0, sizeof(*sdl)); in make_persistent_sdl()
2935 if (sdl->source) { in make_persistent_sdl()
2936 psdl->source = strdup(sdl->source); in make_persistent_sdl()
2938 if (sdl->target_ns) { in make_persistent_sdl()
2939 psdl->target_ns = strdup(sdl->target_ns); in make_persistent_sdl()
2942 if (sdl->groups) { in make_persistent_sdl()
2947 …zend_hash_init(psdl->groups, zend_hash_num_elements(sdl->groups), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2949 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in make_persistent_sdl()
2961 if (sdl->types) { in make_persistent_sdl()
2966 zend_hash_init(psdl->types, zend_hash_num_elements(sdl->types), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2968 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in make_persistent_sdl()
2980 if (sdl->elements) { in make_persistent_sdl()
2985 …zend_hash_init(psdl->elements, zend_hash_num_elements(sdl->elements), NULL, delete_type_persistent… in make_persistent_sdl()
2987 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in make_persistent_sdl()
2999 if (sdl->encoders) { in make_persistent_sdl()
3004 …zend_hash_init(psdl->encoders, zend_hash_num_elements(sdl->encoders), NULL, delete_encoder_persist… in make_persistent_sdl()
3006 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in make_persistent_sdl()
3041 if (sdl->bindings) { in make_persistent_sdl()
3046 …zend_hash_init(psdl->bindings, zend_hash_num_elements(sdl->bindings), NULL, delete_binding_persist… in make_persistent_sdl()
3048 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in make_persistent_sdl()
3060 …zend_hash_init(&psdl->functions, zend_hash_num_elements(&sdl->functions), NULL, delete_function_pe… in make_persistent_sdl()
3061 if (zend_hash_num_elements(&sdl->functions)) { in make_persistent_sdl()
3065 ZEND_HASH_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in make_persistent_sdl()
3077 if (sdl->requests) { in make_persistent_sdl()
3083 zend_hash_init(psdl->requests, zend_hash_num_elements(sdl->requests), NULL, NULL, 1); in make_persistent_sdl()
3085 ZEND_HASH_FOREACH_STR_KEY_VAL(sdl->requests, key, zv) { in make_persistent_sdl()
3106 sdlPtr sdl; member
3112 sdlPtr tmp = p->sdl; in delete_psdl_int()
3157 sdlPtr sdl = NULL; in get_sdl() local
3187 return p->sdl; in get_sdl()
3228 if ((sdl = get_sdl_from_cache(key, uri, t-SOAP_GLOBAL(cache_ttl), &cached)) != NULL) { in get_sdl()
3313 sdl = load_wsdl(this_ptr, uri); in get_sdl()
3314 if (sdl) { in get_sdl()
3315 sdl->is_persistent = 0; in get_sdl()
3326 if (sdl) { in get_sdl()
3327 add_sdl_to_cache(key, uri, t, sdl); in get_sdl()
3334 if (sdl) { in get_sdl()
3357 return sdl; in get_sdl()
3361 psdl = make_persistent_sdl(sdl); in get_sdl()
3364 p.sdl = psdl; in get_sdl()
3369 delete_sdl_impl(sdl); in get_sdl()
3371 sdl = psdl; in get_sdl()
3381 return sdl; in get_sdl()