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_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()
321 sdlPtr tmpsdl = ctx->sdl; in load_wsdl_ex()
511 h->encode = get_encoder_from_prefix(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
515 h->element = get_element(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
708 param->encode = get_encoder_from_prefix(ctx->sdl, part, type->children->content); in wsdl_message()
712 param->element = get_element(ctx->sdl, part, element->children->content); in wsdl_message()
732 ctx.sdl = emalloc(sizeof(sdl)); in load_wsdl()
733 memset(ctx.sdl, 0, sizeof(sdl)); in load_wsdl()
734 ctx.sdl->source = estrdup(struri); in load_wsdl()
735 zend_hash_init(&ctx.sdl->functions, 0, NULL, delete_function, 0); in load_wsdl()
1133 if (zend_hash_str_add_ptr(&ctx.sdl->functions, tmp, len, function) == NULL) { in load_wsdl()
1134 zend_hash_next_index_insert_ptr(&ctx.sdl->functions, function); in load_wsdl()
1138 if (ctx.sdl->requests == NULL) { in load_wsdl()
1139 ctx.sdl->requests = emalloc(sizeof(HashTable)); in load_wsdl()
1140 zend_hash_init(ctx.sdl->requests, 0, NULL, NULL, 0); in load_wsdl()
1145 zend_hash_str_add_ptr(ctx.sdl->requests, tmp, len, function); in load_wsdl()
1152 if (!ctx.sdl->bindings) { in load_wsdl()
1153 ctx.sdl->bindings = emalloc(sizeof(HashTable)); in load_wsdl()
1154 zend_hash_init(ctx.sdl->bindings, 0, NULL, delete_binding, 0); in load_wsdl()
1157 …if (!zend_hash_str_add_ptr(ctx.sdl->bindings, tmpbinding->name, strlen(tmpbinding->name), tmpbindi… in load_wsdl()
1158 zend_hash_next_index_insert_ptr(ctx.sdl->bindings, tmpbinding); in load_wsdl()
1169 if (ctx.sdl->bindings == NULL || ctx.sdl->bindings->nNumOfElements == 0) { in load_wsdl()
1185 return ctx.sdl; in load_wsdl()
1542 sdlPtr sdl; in get_sdl_from_cache() local
1594 sdl = emalloc(sizeof(*sdl)); in get_sdl_from_cache()
1595 memset(sdl, 0, sizeof(*sdl)); in get_sdl_from_cache()
1597 sdl->source = sdl_deserialize_string(&in); in get_sdl_from_cache()
1598 sdl->target_ns = sdl_deserialize_string(&in); in get_sdl_from_cache()
1635 sdl->groups = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1636 zend_hash_init(sdl->groups, num_groups, NULL, delete_type, 0); in get_sdl_from_cache()
1638 sdl_deserialize_key(sdl->groups, types[i], &in); in get_sdl_from_cache()
1645 sdl->types = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1646 zend_hash_init(sdl->types, num_types, NULL, delete_type, 0); in get_sdl_from_cache()
1648 sdl_deserialize_key(sdl->types, types[i], &in); in get_sdl_from_cache()
1655 sdl->elements = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1656 zend_hash_init(sdl->elements, num_elements, NULL, delete_type, 0); in get_sdl_from_cache()
1658 sdl_deserialize_key(sdl->elements, types[i], &in); in get_sdl_from_cache()
1666 sdl->encoders = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1667 zend_hash_init(sdl->encoders, num_encoders, NULL, delete_encoder, 0); in get_sdl_from_cache()
1669 sdl_deserialize_key(sdl->encoders, encoders[i], &in); in get_sdl_from_cache()
1679 sdl->bindings = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1680 zend_hash_init(sdl->bindings, num_bindings, NULL, delete_binding, 0); in get_sdl_from_cache()
1684 sdl_deserialize_key(sdl->bindings, binding, &in); in get_sdl_from_cache()
1701 zend_hash_init(&sdl->functions, num_func, NULL, delete_function, 0); in get_sdl_from_cache()
1707 sdl_deserialize_key(&sdl->functions, func, &in); in get_sdl_from_cache()
1771 sdl->requests = emalloc(sizeof(HashTable)); in get_sdl_from_cache()
1772 zend_hash_init(sdl->requests, i, NULL, NULL, 0); in get_sdl_from_cache()
1777 sdl_deserialize_key(sdl->requests, functions[function_num-1], &in); in get_sdl_from_cache()
1789 return sdl; in get_sdl_from_cache()
2109 static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr sdl) in add_sdl_to_cache() argument
2141 sdl_serialize_string(sdl->source, out); in add_sdl_to_cache()
2142 sdl_serialize_string(sdl->target_ns, out); in add_sdl_to_cache()
2144 if (sdl->groups) { in add_sdl_to_cache()
2145 i = zend_hash_num_elements(sdl->groups); in add_sdl_to_cache()
2154 ZEND_HASH_FOREACH_PTR(sdl->groups, tmp) { in add_sdl_to_cache()
2161 if (sdl->types) { in add_sdl_to_cache()
2162 i = zend_hash_num_elements(sdl->types); in add_sdl_to_cache()
2171 ZEND_HASH_FOREACH_PTR(sdl->types, tmp) { in add_sdl_to_cache()
2178 if (sdl->elements) { in add_sdl_to_cache()
2179 i = zend_hash_num_elements(sdl->elements); in add_sdl_to_cache()
2188 ZEND_HASH_FOREACH_PTR(sdl->elements, tmp) { in add_sdl_to_cache()
2195 if (sdl->encoders) { in add_sdl_to_cache()
2196 i = zend_hash_num_elements(sdl->encoders); in add_sdl_to_cache()
2205 ZEND_HASH_FOREACH_PTR(sdl->encoders, tmp) { in add_sdl_to_cache()
2221 if (sdl->groups) { in add_sdl_to_cache()
2225 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in add_sdl_to_cache()
2231 if (sdl->types) { in add_sdl_to_cache()
2235 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in add_sdl_to_cache()
2241 if (sdl->elements) { in add_sdl_to_cache()
2245 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in add_sdl_to_cache()
2251 if (sdl->encoders) { in add_sdl_to_cache()
2255 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in add_sdl_to_cache()
2262 if (sdl->bindings) { in add_sdl_to_cache()
2263 i = zend_hash_num_elements(sdl->bindings); in add_sdl_to_cache()
2274 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in add_sdl_to_cache()
2294 i = zend_hash_num_elements(&sdl->functions); in add_sdl_to_cache()
2302 ZEND_HASH_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in add_sdl_to_cache()
2360 if (sdl->requests) { in add_sdl_to_cache()
2361 i = zend_hash_num_elements(sdl->requests); in add_sdl_to_cache()
2371 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->requests, key, tmp) { in add_sdl_to_cache()
2940 static sdlPtr make_persistent_sdl(sdlPtr sdl) in make_persistent_sdl() argument
2951 psdl = malloc(sizeof(*sdl)); in make_persistent_sdl()
2952 memset(psdl, 0, sizeof(*sdl)); in make_persistent_sdl()
2954 if (sdl->source) { in make_persistent_sdl()
2955 psdl->source = strdup(sdl->source); in make_persistent_sdl()
2957 if (sdl->target_ns) { in make_persistent_sdl()
2958 psdl->target_ns = strdup(sdl->target_ns); in make_persistent_sdl()
2961 if (sdl->groups) { in make_persistent_sdl()
2966 …zend_hash_init(psdl->groups, zend_hash_num_elements(sdl->groups), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2968 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->groups, key, tmp) { in make_persistent_sdl()
2980 if (sdl->types) { in make_persistent_sdl()
2985 zend_hash_init(psdl->types, zend_hash_num_elements(sdl->types), NULL, delete_type_persistent, 1); in make_persistent_sdl()
2987 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->types, key, tmp) { in make_persistent_sdl()
2999 if (sdl->elements) { in make_persistent_sdl()
3004 …zend_hash_init(psdl->elements, zend_hash_num_elements(sdl->elements), NULL, delete_type_persistent… in make_persistent_sdl()
3006 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->elements, key, tmp) { in make_persistent_sdl()
3018 if (sdl->encoders) { in make_persistent_sdl()
3023 …zend_hash_init(psdl->encoders, zend_hash_num_elements(sdl->encoders), NULL, delete_encoder_persist… in make_persistent_sdl()
3025 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->encoders, key, tmp) { in make_persistent_sdl()
3060 if (sdl->bindings) { in make_persistent_sdl()
3065 …zend_hash_init(psdl->bindings, zend_hash_num_elements(sdl->bindings), NULL, delete_binding_persist… in make_persistent_sdl()
3067 ZEND_HASH_FOREACH_STR_KEY_PTR(sdl->bindings, key, tmp) { in make_persistent_sdl()
3079 …zend_hash_init(&psdl->functions, zend_hash_num_elements(&sdl->functions), NULL, delete_function_pe… in make_persistent_sdl()
3080 if (zend_hash_num_elements(&sdl->functions)) { in make_persistent_sdl()
3084 ZEND_HASH_FOREACH_STR_KEY_PTR(&sdl->functions, key, tmp) { in make_persistent_sdl()
3096 if (sdl->requests) { in make_persistent_sdl()
3102 zend_hash_init(psdl->requests, zend_hash_num_elements(sdl->requests), NULL, NULL, 1); in make_persistent_sdl()
3104 ZEND_HASH_FOREACH_STR_KEY_VAL(sdl->requests, key, zv) { in make_persistent_sdl()
3125 sdlPtr sdl; member
3131 sdlPtr tmp = p->sdl; in delete_psdl_int()
3176 sdlPtr sdl = NULL; in get_sdl() local
3206 return p->sdl; in get_sdl()
3247 if ((sdl = get_sdl_from_cache(key, uri, uri_len, t-SOAP_GLOBAL(cache_ttl), &cached)) != NULL) { in get_sdl()
3335 sdl = load_wsdl(this_ptr, uri); in get_sdl()
3336 if (sdl) { in get_sdl()
3337 sdl->is_persistent = 0; in get_sdl()
3348 if (sdl) { in get_sdl()
3349 add_sdl_to_cache(key, uri, t, sdl); in get_sdl()
3356 if (sdl) { in get_sdl()
3379 return sdl; in get_sdl()
3383 psdl = make_persistent_sdl(sdl); in get_sdl()
3386 p.sdl = psdl; in get_sdl()
3391 delete_sdl_impl(sdl); in get_sdl()
3393 sdl = psdl; in get_sdl()
3397 return sdl; in get_sdl()