Lines Matching refs:NULL

106 		if (EG(exception) == NULL || \
111 while (EG(vm_stack)->prev != NULL && \
136 ss = NULL; \
169 zend_throw_error(NULL, "Cannot fetch SoapServer object"); \
228 NULL,
256 if (memchr(ZSTR_VAL(new_value), '\0', ZSTR_LEN(new_value)) != NULL) { in PHP_INI_MH()
300 zend_hash_init(&defEnc, 0, NULL, NULL, 1); in php_soap_prepare_globals()
301 zend_hash_init(&defEncIndex, 0, NULL, NULL, 1); in php_soap_prepare_globals()
302 zend_hash_init(&defEncNs, 0, NULL, NULL, 1); in php_soap_prepare_globals()
310 if (defaultEncoding[i].details.ns != NULL) { in php_soap_prepare_globals()
341 soap_globals->typemap = NULL; in php_soap_init_globals()
343 soap_globals->error_code = NULL; in php_soap_init_globals()
344 ZVAL_OBJ(&soap_globals->error_object, NULL); in php_soap_init_globals()
345 soap_globals->sdl = NULL; in php_soap_init_globals()
347 soap_globals->mem_cache = NULL; in php_soap_init_globals()
348 soap_globals->ref_map = NULL; in php_soap_init_globals()
367 SOAP_GLOBAL(typemap) = NULL; in PHP_RINIT_FUNCTION()
369 SOAP_GLOBAL(error_code) = NULL; in PHP_RINIT_FUNCTION()
370 ZVAL_OBJ(&SOAP_GLOBAL(error_object), NULL); in PHP_RINIT_FUNCTION()
371 SOAP_GLOBAL(sdl) = NULL; in PHP_RINIT_FUNCTION()
373 SOAP_GLOBAL(encoding) = NULL; in PHP_RINIT_FUNCTION()
374 SOAP_GLOBAL(class_map) = NULL; in PHP_RINIT_FUNCTION()
376 SOAP_GLOBAL(ref_map) = NULL; in PHP_RINIT_FUNCTION()
399 ZEND_INIT_MODULE_GLOBALS(soap, php_soap_init_globals, NULL); in PHP_MINIT_FUNCTION()
424 le_sdl = zend_register_list_destructors_ex(delete_sdl_res, NULL, "SOAP SDL", module_number); in PHP_MINIT_FUNCTION()
425 le_url = zend_register_list_destructors_ex(delete_url_res, NULL, "SOAP URL", module_number); in PHP_MINIT_FUNCTION()
426 …le_typemap = zend_register_list_destructors_ex(delete_hashtable_res, NULL, "SOAP table", module_nu… in PHP_MINIT_FUNCTION()
472 zval *data = NULL; in PHP_METHOD()
473 zend_string *ns, *name, *actor_str = NULL; in PHP_METHOD()
544 …char *fault_string = NULL, *fault_code = NULL, *fault_actor = NULL, *name = NULL, *fault_code_ns =… in PHP_METHOD()
546 zval *details = NULL, *headerfault = NULL, *this_ptr; in PHP_METHOD()
573 if ((code_str || code_ht) && (fault_code == NULL || fault_code_len == 0)) { in PHP_METHOD()
581 if (name != NULL && name_len == 0) { in PHP_METHOD()
582 name = NULL; in PHP_METHOD()
587 if (headerfault != NULL) { in PHP_METHOD()
613 Z_OBJ_P(ZEND_THIS), Z_OBJCE_P(ZEND_THIS), NULL, "gettraceasstring", &trace); in PHP_METHOD()
640 zend_string *stype = NULL, *ns = NULL, *name = NULL, *namens = NULL; in PHP_METHOD()
681 HashTable *typemap = NULL; in soap_create_typemap()
684 char *type_name = NULL; in soap_create_typemap()
685 char *type_ns = NULL; in soap_create_typemap()
686 zval *to_xml = NULL; in soap_create_typemap()
687 zval *to_zval = NULL; in soap_create_typemap()
693 return NULL; in soap_create_typemap()
762 zend_hash_init(typemap, 0, NULL, delete_encoder, 0); in soap_create_typemap()
783 zval *options = NULL; in PHP_METHOD()
787 HashTable *typemap_ht = NULL; in PHP_METHOD()
801 if (options != NULL) { in PHP_METHOD()
805 if ((tmp = zend_hash_str_find(ht, "soap_version", sizeof("soap_version")-1)) != NULL) { in PHP_METHOD()
810 php_error_docref(NULL, E_ERROR, "'soap_version' option must be SOAP_1_1 or SOAP_1_2"); in PHP_METHOD()
814 if ((tmp = zend_hash_str_find(ht, "uri", sizeof("uri")-1)) != NULL && in PHP_METHOD()
818 php_error_docref(NULL, E_ERROR, "'uri' option is required in nonWSDL mode"); in PHP_METHOD()
821 if ((tmp = zend_hash_str_find(ht, "actor", sizeof("actor")-1)) != NULL && in PHP_METHOD()
826 if ((tmp = zend_hash_str_find(ht, "encoding", sizeof("encoding")-1)) != NULL && in PHP_METHOD()
831 if (encoding == NULL) { in PHP_METHOD()
832 php_error_docref(NULL, E_ERROR, "Invalid 'encoding' option - '%s'", Z_STRVAL_P(tmp)); in PHP_METHOD()
838 if ((tmp = zend_hash_str_find(ht, "classmap", sizeof("classmap")-1)) != NULL && in PHP_METHOD()
843 if ((tmp = zend_hash_str_find(ht, "typemap", sizeof("typemap")-1)) != NULL && in PHP_METHOD()
849 if ((tmp = zend_hash_str_find(ht, "features", sizeof("features")-1)) != NULL && in PHP_METHOD()
854 if ((tmp = zend_hash_str_find(ht, "cache_wsdl", sizeof("cache_wsdl")-1)) != NULL && in PHP_METHOD()
859 if ((tmp = zend_hash_str_find(ht, "send_errors", sizeof("send_errors")-1)) != NULL) { in PHP_METHOD()
870 php_error_docref(NULL, E_ERROR, "'uri' option is required in nonWSDL mode"); in PHP_METHOD()
880 if (service->uri == NULL) { in PHP_METHOD()
926 …zend_throw_error(NULL, "SoapServer::setPersistence(): Persistence cannot be set when the SOAP serv… in PHP_METHOD()
938 zend_class_entry *ce = NULL; in PHP_METHOD()
940 zval *argv = NULL; in PHP_METHOD()
998 HashTable *ft = NULL; in PHP_METHOD()
1015 } else if (service->soap_functions.ft != NULL) { in PHP_METHOD()
1022 if (ft != NULL) { in PHP_METHOD()
1057 if (service->soap_functions.ft == NULL) { in PHP_METHOD()
1074 if ((f = zend_hash_find_ptr(EG(function_table), key)) == NULL) { in PHP_METHOD()
1093 if ((f = zend_hash_find_ptr(EG(function_table), key)) == NULL) { in PHP_METHOD()
1099 if (service->soap_functions.ft == NULL) { in PHP_METHOD()
1109 if (service->soap_functions.ft != NULL) { in PHP_METHOD()
1112 service->soap_functions.ft = NULL; in PHP_METHOD()
1132 soap_server_fault_ex(function, &exception_object, NULL); in _soap_server_exception()
1137 add_soap_fault_ex(&exception_object, this_ptr, "Server", ZSTR_VAL(msg), NULL, NULL); in _soap_server_exception()
1140 add_soap_fault_ex(&exception_object, this_ptr, "Server", "Internal Error", NULL, NULL); in _soap_server_exception()
1142 soap_server_fault_ex(function, &exception_object, NULL); in _soap_server_exception()
1151 sdlPtr old_sdl = NULL;
1153 xmlDocPtr doc_request = NULL, doc_return = NULL;
1159 soapHeader *soap_headers = NULL;
1161 char *arg = NULL;
1178 soap_server_fault("Server", "Input string is too long", NULL, NULL, NULL);
1201 …if (call_user_function(EG(function_table), NULL, &readfile, &readfile_ret, 1, &param ) == FAILURE)…
1202 soap_server_fault("Server", "Couldn't find WSDL", NULL, NULL, NULL);
1212 soap_server_fault("Server", "WSDL generation is not supported yet", NULL, NULL, NULL);
1230 php_error_docref(NULL, E_ERROR,"ob_start failed");
1236 php_stream_filter *zf = NULL;
1240 if ((server_vars = zend_hash_find(&EG(symbol_table), server)) != NULL &&
1242 …nd(Z_ARRVAL_P(server_vars), "HTTP_CONTENT_ENCODING", sizeof("HTTP_CONTENT_ENCODING")-1)) != NULL &&
1260 php_error_docref(NULL, E_WARNING,"Can't uncompress compressed request");
1265 …php_error_docref(NULL, E_WARNING,"Request is compressed with unknown compression '%s'",Z_STRVAL_P(…
1285 if (doc_request == NULL) {
1286 soap_server_fault("Client", "Bad Request", NULL, NULL, NULL);
1288 if (xmlGetIntSubset(doc_request) != NULL) {
1298 soap_server_fault("Server", "DTD are not supported by SOAP", NULL, NULL, NULL);
1333 soap_obj = NULL;
1352 …_find(Z_ARRVAL_P(session_vars), "_bogus_session_name", sizeof("_bogus_session_name")-1)) != NULL &&
1360 if (soap_obj == NULL) {
1367 service->soap_class.ce->constructor, Z_OBJ(tmp_soap), NULL,
1383 …VAL_P(session_vars), "_bogus_session_name", sizeof("_bogus_session_name")-1, &tmp_soap)) != NULL) {
1406 if (soap_headers != NULL) {
1408 while (header != NULL) {
1415 soap_server_fault("MustUnderstand","Header not understood", NULL, NULL, NULL);
1421 if (zend_hash_find_ptr_lc(function_table, Z_STR(h->function_name)) != NULL ||
1425 …call_status = call_user_function(NULL, soap_obj, &h->function_name, &h->retval, h->num_params, h->…
1427 …call_status = call_user_function(EG(function_table), NULL, &h->function_name, &h->retval, h->num_p…
1430 php_error_docref(NULL, E_WARNING, "Function '%s' call failed", Z_STRVAL(h->function_name));
1446 soap_server_fault("MustUnderstand","Header not understood", NULL, NULL, NULL);
1451 if (zend_hash_find_ptr_lc(function_table, Z_STR(function_name)) != NULL ||
1455 call_status = call_user_function(NULL, soap_obj, &function_name, &retval, num_params, params);
1460 soap_obj = NULL;
1464 soap_obj = NULL;
1468 …call_status = call_user_function(EG(function_table), NULL, &function_name, &retval, num_params, pa…
1497 soap_server_fault_ex(function, &retval, NULL);
1511 php_error_docref(NULL, E_WARNING, "Function '%s' call failed", Z_STRVAL(function_name));
1538 php_error_docref(NULL, E_ERROR, "Dump memory failed");
1574 while (soap_headers != NULL) {
1590 service->soap_headers_ptr = NULL;
1608 char *code, *string, *actor=NULL, *name=NULL;
1610 zval* details = NULL;
1648 …zend_throw_error(NULL, "SoapServer::addSoapHeader() may be called only during SOAP request process…
1654 while (*p != NULL) {
1678 doc_return = serialize_response_call(function, NULL, NULL, fault, hdr, soap_version);
1683 …L(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_USER_AGENT", sizeof("HTTP_USER_AGENT")-1)) != NULL &&
1721 set_soap_fault(&ret, NULL, code, string, actor, details, name);
1723 soap_server_fault_ex(NULL, &ret, NULL);
1747 if (code == NULL) {
1751 add_soap_fault_ex(&fault, &SOAP_GLOBAL(error_object), code, ZSTR_VAL(message), NULL, NULL);
1774 if (code == NULL) {
1794 set_soap_fault(&fault_obj, NULL, code, ZSTR_VAL(buffer), NULL, &outbuf, NULL);
1800 SG(sapi_headers).http_status_line = NULL;
1815 soap_server_fault_ex(NULL, &fault_obj, NULL);
1864 zval *options = NULL;
1867 php_stream_context *context = NULL;
1869 sdlPtr sdl = NULL;
1870 HashTable *typemap_ht = NULL;
1881 if (options != NULL) {
1887 if ((tmp = zend_hash_str_find(ht, "uri", sizeof("uri")-1)) != NULL &&
1891 php_error_docref(NULL, E_ERROR, "'uri' option is required in nonWSDL mode");
1894 if ((tmp = zend_hash_str_find(ht, "style", sizeof("style")-1)) != NULL &&
1900 if ((tmp = zend_hash_str_find(ht, "use", sizeof("use")-1)) != NULL &&
1907 if ((tmp = zend_hash_str_find(ht, "stream_context", sizeof("stream_context")-1)) != NULL &&
1915 if ((tmp = zend_hash_str_find(ht, "location", sizeof("location")-1)) != NULL &&
1919 php_error_docref(NULL, E_ERROR, "'location' option is required in nonWSDL mode");
1922 if ((tmp = zend_hash_str_find(ht, "soap_version", sizeof("soap_version")-1)) != NULL) {
1928 if ((tmp = zend_hash_str_find(ht, "login", sizeof("login")-1)) != NULL &&
1931 if ((tmp = zend_hash_str_find(ht, "password", sizeof("password")-1)) != NULL &&
1935 if ((tmp = zend_hash_str_find(ht, "authentication", sizeof("authentication")-1)) != NULL &&
1941 if ((tmp = zend_hash_str_find(ht, "proxy_host", sizeof("proxy_host")-1)) != NULL &&
1944 if ((tmp = zend_hash_str_find(ht, "proxy_port", sizeof("proxy_port")-1)) != NULL) {
1951 if ((tmp = zend_hash_str_find(ht, "proxy_login", sizeof("proxy_login")-1)) != NULL &&
1954 if ((tmp = zend_hash_str_find(ht, "proxy_password", sizeof("proxy_password")-1)) != NULL &&
1960 if ((tmp = zend_hash_str_find(ht, "local_cert", sizeof("local_cert")-1)) != NULL &&
1966 if ((tmp = zend_hash_str_find(ht, "passphrase", sizeof("passphrase")-1)) != NULL &&
1971 if ((tmp = zend_hash_str_find(ht, "trace", sizeof("trace")-1)) != NULL &&
1977 if ((tmp = zend_hash_str_find(ht, "exceptions", sizeof("exceptions")-1)) != NULL &&
1983 if ((tmp = zend_hash_str_find(ht, "compression", sizeof("compression")-1)) != NULL &&
1992 if ((tmp = zend_hash_str_find(ht, "encoding", sizeof("encoding")-1)) != NULL &&
1997 if (encoding == NULL) {
1998 php_error_docref(NULL, E_ERROR, "Invalid 'encoding' option - '%s'", Z_STRVAL_P(tmp));
2004 if ((tmp = zend_hash_str_find(ht, "classmap", sizeof("classmap")-1)) != NULL &&
2009 if ((tmp = zend_hash_str_find(ht, "typemap", sizeof("typemap")-1)) != NULL &&
2015 if ((tmp = zend_hash_str_find(ht, "features", sizeof("features")-1)) != NULL &&
2020 …if ((tmp = zend_hash_str_find(ht, "connection_timeout", sizeof("connection_timeout")-1)) != NULL) {
2031 if ((tmp = zend_hash_str_find(ht, "cache_wsdl", sizeof("cache_wsdl")-1)) != NULL &&
2036 if ((tmp = zend_hash_str_find(ht, "user_agent", sizeof("user_agent")-1)) != NULL &&
2041 if ((tmp = zend_hash_str_find(ht, "keep_alive", sizeof("keep_alive")-1)) != NULL &&
2047 if ((tmp = zend_hash_str_find(ht, "ssl_method", sizeof("ssl_method")-1)) != NULL &&
2050 php_error_docref(NULL, E_DEPRECATED,
2055 php_error_docref(NULL, E_ERROR, "'location' and 'uri' options are required in nonWSDL mode");
2099 add_soap_fault(this_ptr, "HTTP", "Error build soap request", NULL, NULL);
2113 if (action == NULL) {
2121 if (call_user_function(NULL, this_ptr, &func, response, 5, params) != SUCCESS) {
2122 add_soap_fault(this_ptr, "Client", "SoapClient::__doRequest() failed", NULL, NULL);
2128 …_soap_fault(this_ptr, "Client", "SoapClient::__doRequest() returned non string value", NULL, NULL);
2167 sdlPtr sdl = NULL;
2168 sdlPtr old_sdl = NULL;
2170 xmlDocPtr request = NULL;
2177 HashTable *old_typemap, *typemap = NULL;
2195 if (location == NULL) {
2222 SOAP_GLOBAL(encoding) = NULL;
2229 SOAP_GLOBAL(class_map) = NULL;
2242 if (sdl != NULL) {
2244 if (fn != NULL) {
2248 if (fn->responseName == NULL &&
2249 fn->responseParameters == NULL &&
2250 soap_headers == NULL) {
2254 if (location == NULL) {
2260 …request = serialize_function_call(this_ptr, fn, NULL, fnb->input.ns, real_args, arg_count, soap_ve…
2263 …request = serialize_function_call(this_ptr, fn, NULL, sdl->target_ns, real_args, arg_count, soap_v…
2264 ret = do_request(this_ptr, request, location, NULL, soap_version, one_way, &response);
2268 request = NULL;
2272 …ret = parse_packet_soap(this_ptr, Z_STRVAL(response), Z_STRLEN(response), fn, NULL, return_value, …
2284 add_soap_fault(this_ptr, "Client", ZSTR_VAL(error.s), NULL, NULL);
2290 add_soap_fault(this_ptr, "Client", "Error finding \"uri\" property", NULL, NULL);
2291 } else if (location == NULL) {
2292 add_soap_fault(this_ptr, "Client", "Error could not find \"location\" property", NULL, NULL);
2294 if (call_uri == NULL) {
2297 …request = serialize_function_call(this_ptr, NULL, function, call_uri, real_args, arg_count, soap_v…
2299 if (soap_action == NULL) {
2312 request = NULL;
2316 …ret = parse_packet_soap(this_ptr, Z_STRVAL(response), Z_STRLEN(response), NULL, function, return_v…
2329 add_soap_fault_ex(return_value, this_ptr, "Client", "Unknown Error", NULL, NULL);
2350 if (SOAP_GLOBAL(encoding) != NULL) {
2377 php_error_docref(NULL, E_ERROR, "Invalid SOAP header");
2386 char *function, *location=NULL, *soap_action = NULL, *uri = NULL;
2389 HashTable* soap_headers = NULL;
2390 zval *options = NULL;
2391 zval *headers = NULL;
2392 zval *output_headers = NULL;
2394 zval *real_args = NULL;
2414 if ((tmp = zend_hash_str_find(hto, "location", sizeof("location")-1)) != NULL &&
2419 if ((tmp = zend_hash_str_find(hto, "soapaction", sizeof("soapaction")-1)) != NULL &&
2424 if ((tmp = zend_hash_str_find(hto, "uri", sizeof("uri")-1)) != NULL &&
2430 if (headers == NULL || Z_TYPE_P(headers) == IS_NULL) {
2632 if (make_http_soap_request(this_ptr, buf, location, action, version, NULL)) {
2648 zend_string *name, *val = NULL;
2656 if (val == NULL) {
2683 zval *headers = NULL;
2690 if (headers == NULL || Z_TYPE_P(headers) == IS_NULL) {
2720 zend_string *location = NULL;
2747 set_soap_fault(fault, NULL, fault_code, fault_string, fault_actor, fault_detail, NULL);
2777 if (fault_code != NULL) {
2810 if (fault_actor != NULL) {
2813 if (fault_detail != NULL && Z_TYPE_P(fault_detail) != IS_UNDEF) {
2816 if (name != NULL) {
2825 zval *tmp_parameters = NULL;
2827 if (function != NULL) {
2832 if (function->requestParameters == NULL) {
2837 if (get_node(params, param->paramName) != NULL) {
2863 while (trav != NULL) {
2875 (function->requestParameters == NULL ||
2886 sdlParamPtr param = NULL;
2887 if (function != NULL &&
2888 (param = zend_hash_index_find_ptr(function->requestParameters, cur_param)) == NULL) {
2889 soap_server_fault("Client", "Error cannot find parameter", NULL, NULL, NULL);
2891 if (param == NULL) {
2892 enc = NULL;
2904 soap_server_fault("Client","Missing parameter", NULL, NULL, NULL);
2919 if (func->children != NULL ||
2920 (function->requestParameters != NULL &&
2922 function = NULL;
2926 if (sdl != NULL && function == NULL) {
2930 if (function != NULL) {
2941 while (trav != NULL) {
2957 soap_server_fault("VersionMismatch", "Wrong Version", NULL, NULL, NULL);
2962 return NULL;
2967 char* envelope_ns = NULL;
2977 …oap_server_fault("Client", "looks like we got XML without \"Envelope\" element", NULL, NULL, NULL);
2981 while (attr != NULL) {
2982 if (attr->ns == NULL) {
2983 …ient", "A SOAP Envelope element cannot have non Namespace qualified attributes", NULL, NULL, NULL);
2986 …soap_server_fault("Client", "encodingStyle cannot be specified on the Envelope", NULL, NULL, NULL);
2988 soap_server_fault("Client", "Unknown data encoding style", NULL, NULL, NULL);
2995 head = NULL;
2997 while (trav != NULL && trav->type != XML_ELEMENT_NODE) {
3000 if (trav != NULL && node_is_equal_ex(trav,"Header",envelope_ns)) {
3006 body = NULL;
3007 while (trav != NULL && trav->type != XML_ELEMENT_NODE) {
3010 if (trav != NULL && node_is_equal_ex(trav,"Body",envelope_ns)) {
3014 while (trav != NULL && trav->type != XML_ELEMENT_NODE) {
3017 if (body == NULL) {
3018 soap_server_fault("Client", "Body must be present in a SOAP envelope", NULL, NULL, NULL);
3021 while (attr != NULL) {
3022 if (attr->ns == NULL) {
3024 …("Client", "A SOAP Body element cannot have non Namespace qualified attributes", NULL, NULL, NULL);
3028 soap_server_fault("Client", "encodingStyle cannot be specified on the Body", NULL, NULL, NULL);
3030 soap_server_fault("Client", "Unknown data encoding style", NULL, NULL, NULL);
3036 if (trav != NULL && *version == SOAP_1_2) {
3037 …p_server_fault("Client", "A SOAP 1.2 envelope can contain only Header and Body", NULL, NULL, NULL);
3040 func = NULL;
3042 while (trav != NULL) {
3054 if (func == NULL) {
3055 function = get_doc_function(sdl, NULL);
3056 if (function != NULL) {
3059 … soap_server_fault("Client", "looks like we got \"Body\" without function call", NULL, NULL, NULL);
3065 soap_server_fault("Client","Unknown Data Encoding Style", NULL, NULL, NULL);
3070 soap_server_fault("DataEncodingUnknown","Unknown Data Encoding Style", NULL, NULL, NULL);
3074 if (sdl != NULL && function == NULL) {
3076 soap_server_fault("rpc:ProcedureNotPresent","Procedure not present", NULL, NULL, NULL);
3083 *headers = NULL;
3085 soapHeader *h, *last = NULL;
3088 while (attr != NULL) {
3089 if (attr->ns == NULL) {
3090 …Client", "A SOAP Header element cannot have non Namespace qualified attributes", NULL, NULL, NULL);
3093 … soap_server_fault("Client", "encodingStyle cannot be specified on the Header", NULL, NULL, NULL);
3095 soap_server_fault("Client", "Unknown data encoding style", NULL, NULL, NULL);
3101 while (trav != NULL) {
3109 soap_server_fault("Client","Unknown Data Encoding Style", NULL, NULL, NULL);
3112 if (attr != NULL) {
3114 (actor == NULL || strcmp((char*)attr->children->content,actor) != 0)) {
3121 soap_server_fault("DataEncodingUnknown","Unknown Data Encoding Style", NULL, NULL, NULL);
3124 if (attr != NULL) {
3127 (actor == NULL || strcmp((char*)attr->children->content,actor) != 0)) {
3141 soap_server_fault("Client","mustUnderstand value is not boolean", NULL, NULL, NULL);
3160 if ((hdr = zend_hash_find_ptr(fnb->input.headers, key.s)) != NULL) {
3180 if (last == NULL) {
3245 xmlNodePtr method = NULL, param;
3246 sdlParamPtr parameter = NULL;
3249 xmlNsPtr ns = NULL;
3251 if (function != NULL && function->binding->bindingType == BINDING_SOAP) {
3259 method = xmlNewChild(body, ns, BAD_CAST(function->responseName), NULL);
3261 method = xmlNewChild(body, ns, BAD_CAST(function->functionName), NULL);
3269 method = xmlNewChild(body, ns, BAD_CAST(function_name), NULL);
3273 if (function != NULL) {
3284 parameter = get_param(function, NULL, 0, TRUE);
3290 rpc_result = xmlNewChild(method, rpc_ns, BAD_CAST("result"), NULL);
3317 parameter = get_param(function, param_name ? ZSTR_VAL(param_name) : NULL, param_index, TRUE);
3319 …param = serialize_parameter(parameter, data, i, param_name ? ZSTR_VAL(param_name) : NULL, use, met…
3321 …param = serialize_parameter(parameter, data, i, param_name ? ZSTR_VAL(param_name) : NULL, use, bod…
3335 if (use == SOAP_ENCODED && version == SOAP_1_2 && method != NULL) {
3348 xmlNodePtr envelope = NULL, body, param;
3349 xmlNsPtr ns = NULL;
3351 xmlNodePtr head = NULL;
3362 envelope = xmlNewDocNode(doc, NULL, BAD_CAST("Envelope"), NULL);
3366 envelope = xmlNewDocNode(doc, NULL, BAD_CAST("Envelope"), NULL);
3370 soap_server_fault("Server", "Unknown SOAP version", NULL, NULL, NULL);
3377 sdlFaultPtr fault = NULL;
3378 char *fault_ns = NULL;
3381 encodePtr hdr_enc = NULL;
3384 char *hdr_ns = headers->hdr?headers->hdr->ns:NULL;
3387 head = xmlNewChild(envelope, ns, BAD_CAST("Header"), NULL);
3407 (hdr = zend_hash_find_ptr(headers->hdr->headerfaults, key.s)) != NULL) {
3416 hdr_ret = NULL;
3421 …ers->function, Z_STRVAL(headers->function_name), uri, hdr_ret, version, 0, NULL) == SOAP_ENCODED) {
3436 body = xmlNewChild(envelope, ns, BAD_CAST("Body"), NULL);
3437 param = xmlNewChild(body, ns, BAD_CAST("Fault"), NULL);
3449 (tmp_fault = zend_hash_find_ptr(function->faults, Z_STR_P(tmp))) != NULL) {
3456 if (fault_ns == NULL) {
3471 if (fault_ns == NULL) {
3477 if (fault_ns == NULL &&
3493 xmlNodePtr node = xmlNewNode(NULL, BAD_CAST("faultcode"));
3494 …ring *str = php_escape_html_entities((unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp), 0, 0, NULL);
3498 xmlChar *code = xmlBuildQName(BAD_CAST(ZSTR_VAL(str)), nsptr->prefix, NULL, 0);
3520 xmlNodePtr node = xmlNewChild(param, ns, BAD_CAST("Code"), NULL);
3521 …ring *str = php_escape_html_entities((unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp), 0, 0, NULL);
3522 node = xmlNewChild(node, ns, BAD_CAST("Value"), NULL);
3525 xmlChar *code = xmlBuildQName(BAD_CAST(ZSTR_VAL(str)), nsptr->prefix, NULL, 0);
3535 xmlNodePtr node = xmlNewChild(param, ns, BAD_CAST("Reason"), NULL);
3544 zval *detail = NULL;
3552 node = xmlNewNode(NULL, BAD_CAST(detail_name));
3562 …ash_str_find(Z_OBJPROP_P(detail), sparam->element->name, strlen(sparam->element->name))) != NULL) {
3566 x = serialize_parameter(sparam, detail, 1, NULL, use, node);
3595 serialize_zval(tmp, NULL, detail_name, use, param);
3603 head = xmlNewChild(envelope, ns, BAD_CAST("Header"), NULL);
3605 while (h != NULL) {
3607 encodePtr hdr_enc = NULL;
3610 char *hdr_ns = h->hdr?h->hdr->ns:NULL;
3612 ? Z_STRVAL(h->function_name) : NULL;
3637 (hdr = zend_hash_find_ptr(fnb->output.headers, key.s)) != NULL) {
3647 hdr_ret = NULL;
3652 xmlNodePtr xmlHdr = NULL;
3677 if (head->children == NULL) {
3683 body = xmlNewChild(envelope, ns, BAD_CAST("Body"), NULL);
3685 …if (serialize_response_call2(body, function, function_name, uri, ret, version, 1, NULL) == SOAP_EN…
3709 if (function && function->responseName == NULL &&
3710 body->children == NULL && head == NULL) {
3712 return NULL;
3721 xmlNodePtr envelope = NULL, body, method = NULL, head = NULL;
3722 xmlNsPtr ns = NULL;
3725 HashTable *hdrs = NULL;
3735 envelope = xmlNewDocNode(doc, NULL, BAD_CAST("Envelope"), NULL);
3739 envelope = xmlNewDocNode(doc, NULL, BAD_CAST("Envelope"), NULL);
3748 head = xmlNewChild(envelope, ns, BAD_CAST("Header"), NULL);
3751 body = xmlNewChild(envelope, ns, BAD_CAST("Body"), NULL);
3764 method = xmlNewChild(body, ns, BAD_CAST(function->requestName), NULL);
3766 method = xmlNewChild(body, ns, BAD_CAST(function->functionName), NULL);
3781 method = xmlNewChild(body, ns, BAD_CAST(function_name), NULL);
3783 method = xmlNewChild(body, ns, BAD_CAST(function->requestName), NULL);
3785 method = xmlNewChild(body, ns, BAD_CAST(function->functionName), NULL);
3803 sdlParamPtr parameter = get_param(function, NULL, i, FALSE);
3806 param = serialize_parameter(parameter, &arguments[i], i, NULL, use, method);
3808 param = serialize_parameter(parameter, &arguments[i], i, NULL, use, body);
3825 sdlParamPtr parameter = get_param(function, NULL, i, FALSE);
3828 param = serialize_parameter(parameter, NULL, i, NULL, use, method);
3830 param = serialize_parameter(parameter, NULL, i, NULL, use, body);
3858 encodePtr enc = NULL;
3868 if ((hdr = zend_hash_find_ptr(hdrs, key.s)) != NULL) {
3883 h = xmlNewNode(NULL, BAD_CAST(Z_STRVAL_P(name)));
3934 if (param != NULL && param->paramName != NULL) {
3937 if (name == NULL) {
3958 if (param != NULL) {
3960 if (val == NULL) {
3972 enc = NULL;
3988 if (function == NULL) {
3989 return NULL;
3998 if (ht == NULL) {
3999 return NULL;
4002 if (param_name != NULL) {
4003 if ((tmp = zend_hash_str_find_ptr(ht, param_name, strlen(param_name))) != NULL) {
4013 if ((tmp = zend_hash_index_find_ptr(ht, index)) != NULL) {
4017 return NULL;
4028 if (sdl != NULL) {
4029 if ((tmp = zend_hash_str_find_ptr(&sdl->functions, str, len)) != NULL) {
4032 …} else if (sdl->requests != NULL && (tmp = zend_hash_str_find_ptr(sdl->requests, str, len)) != NUL…
4038 return NULL;
4052 if (params == NULL) {
4053 if (tmp->requestParameters == NULL ||
4057 } else if (tmp->requestParameters != NULL &&
4068 if (param->element->namens != NULL && node->ns != NULL) {
4091 return NULL;
4253 sizeof(SOAP_1_1_ENC_NAMESPACE":arrayType")-1)) != NULL &&
4255 …ttr->extraAttributes, WSDL_NAMESPACE":arrayType", sizeof(WSDL_NAMESPACE":arrayType")-1)) != NULL) {
4258 if (end == NULL) {
4270 if (end != NULL) {
4277 sizeof(SOAP_1_2_ENC_NAMESPACE":itemType")-1)) != NULL &&
4279 …attr->extraAttributes, WSDL_NAMESPACE":itemType", sizeof(WSDL_NAMESPACE":arrayType")-1)) != NULL) {
4285 (elementType = zend_hash_get_current_data_ptr(type->elements)) != NULL) &&
4295 sizeof(SOAP_1_2_ENC_NAMESPACE":arraySize")-1)) != NULL &&
4297 …attr->extraAttributes, WSDL_NAMESPACE":itemType", sizeof(WSDL_NAMESPACE":arraySize")-1)) != NULL) {