Lines Matching refs:service

67 static void delete_service(void *service);
1111 soapServicePtr service; in PHP_METHOD() local
1128 service = emalloc(sizeof(soapService)); in PHP_METHOD()
1129 memset(service, 0, sizeof(soapService)); in PHP_METHOD()
1130 service->send_errors = 1; in PHP_METHOD()
1149 service->uri = estrndup(Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in PHP_METHOD()
1156 service->actor = estrndup(Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in PHP_METHOD()
1167 service->encoding = encoding; in PHP_METHOD()
1173 service->class_map = zend_array_dup(Z_ARRVAL_P(tmp)); in PHP_METHOD()
1184 service->features = Z_LVAL_P(tmp); in PHP_METHOD()
1194 service->send_errors = 0; in PHP_METHOD()
1196 service->send_errors = 1; in PHP_METHOD()
1198 service->send_errors = Z_LVAL_P(tmp); in PHP_METHOD()
1206 service->version = version; in PHP_METHOD()
1207 service->type = SOAP_FUNCTIONS; in PHP_METHOD()
1208 service->soap_functions.functions_all = FALSE; in PHP_METHOD()
1209 service->soap_functions.ft = zend_new_array(0); in PHP_METHOD()
1212 service->sdl = get_sdl(getThis(), Z_STRVAL_P(wsdl), cache_wsdl); in PHP_METHOD()
1213 if (service->uri == NULL) { in PHP_METHOD()
1214 if (service->sdl->target_ns) { in PHP_METHOD()
1215 service->uri = estrdup(service->sdl->target_ns); in PHP_METHOD()
1218 service->uri = estrdup("http://unknown-uri/"); in PHP_METHOD()
1224 service->typemap = soap_create_typemap(service->sdl, typemap_ht); in PHP_METHOD()
1227 res = zend_register_resource(service, le_service); in PHP_METHOD()
1239 soapServicePtr service; in PHP_METHOD() local
1244 FETCH_THIS_SERVICE(service); in PHP_METHOD()
1247 if (service->type == SOAP_CLASS) { in PHP_METHOD()
1250 service->soap_class.persistence = value; in PHP_METHOD()
1270 soapServicePtr service; in PHP_METHOD() local
1278 FETCH_THIS_SERVICE(service); in PHP_METHOD()
1287 service->type = SOAP_CLASS; in PHP_METHOD()
1288 service->soap_class.ce = ce; in PHP_METHOD()
1290 service->soap_class.persistence = SOAP_PERSISTENCE_REQUEST; in PHP_METHOD()
1291 service->soap_class.argc = num_args; in PHP_METHOD()
1292 if (service->soap_class.argc > 0) { in PHP_METHOD()
1294 service->soap_class.argv = safe_emalloc(sizeof(zval), service->soap_class.argc, 0); in PHP_METHOD()
1295 for (i = 0;i < service->soap_class.argc;i++) { in PHP_METHOD()
1296 ZVAL_COPY(&service->soap_class.argv[i], &argv[i]); in PHP_METHOD()
1313 soapServicePtr service; in PHP_METHOD() local
1318 FETCH_THIS_SERVICE(service); in PHP_METHOD()
1324 service->type = SOAP_OBJECT; in PHP_METHOD()
1326 ZVAL_COPY(&service->soap_object, obj); in PHP_METHOD()
1337 soapServicePtr service; in PHP_METHOD() local
1346 FETCH_THIS_SERVICE(service); in PHP_METHOD()
1349 if (service->type == SOAP_OBJECT) { in PHP_METHOD()
1350 ft = &(Z_OBJCE(service->soap_object)->function_table); in PHP_METHOD()
1351 } else if (service->type == SOAP_CLASS) { in PHP_METHOD()
1352 ft = &service->soap_class.ce->function_table; in PHP_METHOD()
1353 } else if (service->soap_functions.functions_all == TRUE) { in PHP_METHOD()
1355 } else if (service->soap_functions.ft != NULL) { in PHP_METHOD()
1358 ZEND_HASH_FOREACH_VAL(service->soap_functions.ft, name) { in PHP_METHOD()
1366 …if ((service->type != SOAP_OBJECT && service->type != SOAP_CLASS) || (f->common.fn_flags & ZEND_AC… in PHP_METHOD()
1381 soapServicePtr service; in PHP_METHOD() local
1386 FETCH_THIS_SERVICE(service); in PHP_METHOD()
1395 if (service->type == SOAP_FUNCTIONS) { in PHP_METHOD()
1398 if (service->soap_functions.ft == NULL) { in PHP_METHOD()
1399 service->soap_functions.functions_all = FALSE; in PHP_METHOD()
1400 service->soap_functions.ft = zend_new_array(zend_hash_num_elements(Z_ARRVAL_P(function_name))); in PHP_METHOD()
1420 zend_hash_update(service->soap_functions.ft, key, &function_copy); in PHP_METHOD()
1435 if (service->soap_functions.ft == NULL) { in PHP_METHOD()
1436 service->soap_functions.functions_all = FALSE; in PHP_METHOD()
1437 service->soap_functions.ft = zend_new_array(0); in PHP_METHOD()
1441 zend_hash_update(service->soap_functions.ft, key, &function_copy); in PHP_METHOD()
1445 if (service->soap_functions.ft != NULL) { in PHP_METHOD()
1446 zend_hash_destroy(service->soap_functions.ft); in PHP_METHOD()
1447 efree(service->soap_functions.ft); in PHP_METHOD()
1448 service->soap_functions.ft = NULL; in PHP_METHOD()
1450 service->soap_functions.functions_all = TRUE; in PHP_METHOD()
1461 static void _soap_server_exception(soapServicePtr service, sdlFunctionPtr function, zval *this_ptr)… in _soap_server_exception() argument
1469 if (service->send_errors) { in _soap_server_exception()
1488 soapServicePtr service; local
1506 FETCH_THIS_SERVICE(service);
1507 SOAP_GLOBAL(soap_version) = service->version;
1523 if (service->sdl) {
1534 ZVAL_STRING(&param, service->sdl->source);
1637 SOAP_GLOBAL(sdl) = service->sdl;
1639 SOAP_GLOBAL(encoding) = service->encoding;
1641 SOAP_GLOBAL(class_map) = service->class_map;
1643 SOAP_GLOBAL(typemap) = service->typemap;
1645 SOAP_GLOBAL(features) = service->features;
1647 …function = deserialize_function_call(service->sdl, doc_request, service->actor, &function_name, &n…
1652 _soap_server_exception(service, function, getThis());
1656 service->soap_headers_ptr = &soap_headers;
1659 if (service->type == SOAP_OBJECT) {
1660 soap_obj = &service->soap_object;
1662 } else if (service->type == SOAP_CLASS) {
1665 if (service->soap_class.persistence == SOAP_PERSISTENCE_SESSION) {
1679 Z_OBJCE_P(tmp_soap_p) == service->soap_class.ce) {
1687 object_init_ex(&tmp_soap, service->soap_class.ce);
1694 …if (call_user_function(NULL, &tmp_soap, &constructor, &c_ret, service->soap_class.argc, service->s…
1699 _soap_server_exception(service, function, getThis());
1708 int class_name_len = ZSTR_LEN(service->soap_class.ce->name);
1711 memcpy(class_name, ZSTR_VAL(service->soap_class.ce->name), class_name_len+1);
1715 ZVAL_STR_COPY(&constructor, service->soap_class.ce->name);
1716 … (call_user_function(NULL, &tmp_soap, &constructor, &c_ret, service->soap_class.argc, service->soa…
1722 _soap_server_exception(service, function, getThis());
1737 if (service->soap_class.persistence == SOAP_PERSISTENCE_SESSION) {
1757 if (service->soap_functions.functions_all == TRUE) {
1760 function_table = service->soap_functions.ft;
1774 if (service->sdl && !h->function && !h->hdr) {
1784 ((service->type == SOAP_CLASS || service->type == SOAP_OBJECT) &&
1786 if (service->type == SOAP_CLASS || service->type == SOAP_OBJECT) {
1805 if (service->type == SOAP_CLASS && soap_obj) {zval_ptr_dtor(soap_obj);}
1809 _soap_server_exception(service, function, getThis());
1811 if (service->type == SOAP_CLASS && soap_obj) {zval_ptr_dtor(soap_obj);}
1823 ((service->type == SOAP_CLASS || service->type == SOAP_OBJECT) &&
1825 if (service->type == SOAP_CLASS || service->type == SOAP_OBJECT) {
1827 if (service->type == SOAP_CLASS) {
1829 if (service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) {
1848 _soap_server_exception(service, function, getThis());
1849 if (service->type == SOAP_CLASS) {
1851 if (soap_obj && service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) {
1878 …doc_return = serialize_response_call(function, response_name, service->uri, &retval, soap_headers,…
1887 _soap_server_exception(service, function, getThis());
1888 if (service->type == SOAP_CLASS) {
1890 if (soap_obj && service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) {
1958 service->soap_headers_ptr = NULL;
1980 soapServicePtr service; local
1984 FETCH_THIS_SERVICE(service);
1986 SOAP_GLOBAL(encoding) = service->encoding;
2004 soapServicePtr service; local
2010 FETCH_THIS_SERVICE(service);
2012 if (!service || !service->soap_headers_ptr) {
2021 p = service->soap_headers_ptr;
2173 soapServicePtr service; local
2182 (service = (soapServicePtr)zend_fetch_resource_ex(tmp, "service", le_service)) &&
2183 !service->send_errors) {
4816 soapServicePtr service = (soapServicePtr)data; local
4818 if (service->soap_functions.ft) {
4819 zend_hash_destroy(service->soap_functions.ft);
4820 efree(service->soap_functions.ft);
4823 if (service->typemap) {
4824 zend_hash_destroy(service->typemap);
4825 efree(service->typemap);
4828 if (service->soap_class.argc) {
4830 for (i = 0; i < service->soap_class.argc;i++) {
4831 zval_ptr_dtor(&service->soap_class.argv[i]);
4833 efree(service->soap_class.argv);
4836 if (service->actor) {
4837 efree(service->actor);
4839 if (service->uri) {
4840 efree(service->uri);
4842 if (service->sdl) {
4843 delete_sdl(service->sdl);
4845 if (service->encoding) {
4846 xmlCharEncCloseFunc(service->encoding);
4848 if (service->class_map) {
4849 zend_hash_destroy(service->class_map);
4850 FREE_HASHTABLE(service->class_map);
4852 zval_ptr_dtor(&service->soap_object);
4853 efree(service);