Lines Matching refs:ns
92 static void set_ns_prop(xmlNodePtr node, char *ns, char *name, char *val);
96 static void get_type_str(xmlNodePtr node, const char* ns, const char* type, smart_str* ret);
97 static void set_ns_and_type_ex(xmlNodePtr node, char *ns, char *type);
308 xmlSetNs(node, (*node_ptr)->ns); in soap_check_zval_ref()
312 if (attr == NULL || attr->ns == NULL) { in soap_check_zval_ref()
514 if (encode->details.ns) { in master_to_xml_int()
515 smart_str_appends(&nscat, encode->details.ns); in master_to_xml_int()
549 if (encode->details.ns) { in master_to_zval_int()
550 smart_str_appends(&nscat, encode->details.ns); in master_to_zval_int()
565 char *ns, *cptype; in master_to_zval_int() local
568 parse_namespace(type_attr->children->content, &cptype, &ns); in master_to_zval_int()
569 nsptr = xmlSearchNs(data->doc, data, BAD_CAST(ns)); in master_to_zval_int()
577 if (ns) {efree(ns);} in master_to_zval_int()
2209 xmlNsPtr ns, in add_xml_array_elements() argument
2244 xmlSetNs(xparam, ns); in add_xml_array_elements()
2250 … add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, *zdata, style TSRMLS_CC); in add_xml_array_elements()
2252 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, NULL, style TSRMLS_CC); in add_xml_array_elements()
2268 xmlSetNs(xparam, ns); in add_xml_array_elements()
2273 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, NULL, style TSRMLS_CC); in add_xml_array_elements()
2402 if ((*ext)->ns != NULL) { in to_xml_array()
2403 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, value); in to_xml_array()
2404 get_type_str(xmlParam, (*ext)->ns, value, &array_type); in to_xml_array()
2440 if ((*ext)->ns != NULL) { in to_xml_array()
2441 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, (*ext)->val); in to_xml_array()
2442 get_type_str(xmlParam, (*ext)->ns, (*ext)->val, &array_type); in to_xml_array()
2490 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2503 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2544 …add_xml_array_elements(xmlParam, element_type, enc, enc?encode_add_ns(xmlParam,enc->details.ns):NU… in to_xml_array()
2583 char *type, *end, *ns; in to_zval_array() local
2586 parse_namespace(attr->children->content, &type, &ns); in to_zval_array()
2587 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns)); in to_zval_array()
2599 if (ns) {efree(ns);} in to_zval_array()
2604 char *type, *ns; in to_zval_array() local
2607 parse_namespace(attr->children->content, &type, &ns); in to_zval_array()
2608 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns)); in to_zval_array()
2613 if (ns) {efree(ns);} in to_zval_array()
2644 if ((*ext)->ns != NULL) { in to_zval_array()
2645 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, type); in to_zval_array()
2660 if ((*ext)->ns != NULL) { in to_zval_array()
2661 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, (*ext)->val); in to_zval_array()
2957 char *ns, *cptype; in guess_zval_convert() local
2965 parse_namespace(type_name, &cptype, &ns); in guess_zval_convert()
2966 nsptr = xmlSearchNs(data->doc, data, BAD_CAST(ns)); in guess_zval_convert()
2972 if (ns) {efree(ns);} in guess_zval_convert()
3204 if (data->ns && data->ns->href) { in to_zval_any()
3205 smart_str_appends(&nscat, (char*)data->ns->href); in to_zval_any()
3421 if (href == NULL || href->ns == NULL) {break;} in check_and_resolve_href()
3462 set_ns_and_type_ex(node, type->ns, type->type_str); in set_ns_and_type()
3465 static void set_ns_and_type_ex(xmlNodePtr node, char *ns, char *type) in set_ns_and_type_ex() argument
3468 get_type_str(node, ns, type, &nstype); in set_ns_and_type_ex()
3495 cur = node->ns; in xmlSearchNsPrefixByHref()
3510 xmlNsPtr encode_add_ns(xmlNodePtr node, const char* ns) in encode_add_ns() argument
3514 if (ns == NULL) { in encode_add_ns()
3518 xmlns = xmlSearchNsByHref(node->doc, node, BAD_CAST(ns)); in encode_add_ns()
3520 xmlns = xmlSearchNsPrefixByHref(node->doc, node, BAD_CAST(ns)); in encode_add_ns()
3526 …if (zend_hash_find(&SOAP_GLOBAL(defEncNs), (char*)ns, strlen(ns) + 1, (void **)&prefix) == SUCCESS… in encode_add_ns()
3527 xmlns = xmlNewNs(node->doc->children, BAD_CAST(ns), prefix); in encode_add_ns()
3545 xmlns = xmlNewNs(node->doc->children, BAD_CAST(ns), BAD_CAST(prefix.c)); in encode_add_ns()
3552 static void set_ns_prop(xmlNodePtr node, char *ns, char *name, char *val) in set_ns_prop() argument
3554 xmlSetNsProp(node, encode_add_ns(node, ns), BAD_CAST(name), BAD_CAST(val)); in set_ns_prop()
3705 xmlNsPtr ns = encode_add_ns(node, cur_ns); in get_array_type() local
3707 smart_str_appends(type, (char*)ns->prefix); in get_array_type()
3722 get_type_str(node, enc->details.ns, enc->details.type_str, type); in get_array_type()
3728 static void get_type_str(xmlNodePtr node, const char* ns, const char* type, smart_str* ret) in get_type_str() argument
3732 if (ns) { in get_type_str()
3735 strcmp(ns,SOAP_1_1_ENC_NAMESPACE) == 0) { in get_type_str()
3736 ns = SOAP_1_2_ENC_NAMESPACE; in get_type_str()
3738 strcmp(ns,SOAP_1_2_ENC_NAMESPACE) == 0) { in get_type_str()
3739 ns = SOAP_1_1_ENC_NAMESPACE; in get_type_str()
3741 xmlns = encode_add_ns(node, ns); in get_type_str()
3765 if (t->details.ns) { in delete_encoder()
3766 efree(t->details.ns); in delete_encoder()
3780 if (t->details.ns) { in delete_encoder_persistent()
3781 free(t->details.ns); in delete_encoder_persistent()