[wsf-c-dev] svn commit r357 - wsf/php/src

svn at wso2.com svn at wso2.com
Mon Jan 8 03:01:00 PST 2007


Author: nandika
Date: Mon Jan  8 03:00:59 2007
New Revision: 357

Modified:
   wsf/php/src/wsf.c
Log:
unused functions removed

Modified: wsf/php/src/wsf.c
==============================================================================
--- wsf/php/src/wsf.c	(original)
+++ wsf/php/src/wsf.c	Mon Jan  8 03:00:59 2007
@@ -60,7 +60,6 @@
 PHP_METHOD(ws_client, __destruct);
 PHP_METHOD(ws_client, __call);
 PHP_FUNCTION(ws_client_request);
-PHP_FUNCTION(ws_client_add_header);
 PHP_FUNCTION(ws_client_send);
 PHP_FUNCTION(ws_client_get_last_response);
 PHP_FUNCTION(ws_client_get_last_request);
@@ -124,7 +123,6 @@
 zend_function_entry php_ws_client_class_functions[]=
 {
 	PHP_FALIAS(request, ws_client_request, NULL)
-	PHP_FALIAS(addHeader, ws_client_add_header, NULL)
 	PHP_FALIAS(send, ws_client_send, NULL)
 	PHP_FALIAS(getLastResponse, ws_client_get_last_response, NULL)
 	PHP_FALIAS(getLastRequest, ws_client_get_last_request, NULL)
@@ -1329,50 +1327,7 @@
 			"soap body is not found");
 	}
 }
-/* }}} end SendReceive */
-
-/* {{{ proto long addHeader(mixed header)
-    header can be DomDocument or a SimpleXML element
-	*/
-PHP_FUNCTION(ws_client_add_header)
-{
-	ws_object_ptr intern = NULL;
-	zval *obj = NULL;
-	axis2_svc_client_t *client = NULL;
-	axiom_node_t *header_node = NULL;
-	axiom_xml_reader_t *reader = NULL;
-	zval *header = NULL;
-    xmlNodePtr nodep;
-    	
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &header) == FAILURE) {
-		php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters");
-		return;
-    }
-    AXIS2_OBJ_CHECK(env);
-    
-	if (IS_STRING == Z_TYPE_P(header)) {
-        reader = axiom_xml_reader_create_for_memory(env, 
-				Z_STRVAL_P(header), Z_STRLEN_P(header), "utf-8", AXIS2_XML_PARSER_TYPE_BUFFER);
-	    if (!reader) {
-		    return;
-	    }
-	}
-	else if(Z_TYPE_P(header) == IS_OBJECT && 
-	    instanceof_function(Z_OBJCE_P(header), dom_node_class_entry TSRMLS_CC)) {
-        nodep = ws_get_xml_node(header);
-        reader = axiom_xml_reader_create_for_memory(env, 
-				(void*)nodep->doc, 0, "utf-8", AXIS2_XML_PARSER_TYPE_DOC);
-	    if (!reader) {
-    		zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 1 TSRMLS_CC, 
-	    		"out of memory");
-	    }
-    }	
-	AXIS2_GET_THIS(obj);
-	AXIS2_GET_OBJ(client, obj, axis2_svc_client_t, intern);
-		header_node = ws_util_read_payload(reader, env);
-	AXIS2_SVC_CLIENT_ADD_HEADER(client, env, header_node);
-}
-/* }}} end addHeader */
+/* }}} end request */
 
 /* {{{ proto send(string xmlpaylod)
     Sends the given payload in a robust manner.
@@ -2165,36 +2120,6 @@
 }
 /* }}} end reply */
 
-
-
-/* {{{ engageModule(string module_name, string contentType, string fileName)
-    Save a binary file received as an MTOM/XOP attachment.
-*/    
-PHP_FUNCTION(ws_service_engage_module)
-{
-    ws_object_ptr intern = NULL;
-    zval *obj = NULL;
-    ws_svc_info_t *svc_info = NULL;
-    axis2_char_t *mod_name = NULL;
-    int mod_name_len = 0;
-
-    if(FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
-             &mod_name, &mod_name_len)) {
-       php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid parameters");
-    return;
-    }
-
-    AXIS2_GET_THIS(obj);
-    intern = (ws_object_ptr)zend_object_store_get_object(obj TSRMLS_CC);
-    svc_info = (ws_svc_info_t *)intern->ptr;
-    if(!svc_info->modules_to_engage)
-        svc_info->modules_to_engage = axis2_array_list_create(env, 3);
-    AXIS2_ARRAY_LIST_ADD(svc_info->modules_to_engage, env, mod_name);
-}
-/*  }}} end engageModule */
-
-
-
 /************************** param ******************************/
 /* {{{ proto void WSParam::__construct(string name, mixed value, 
 	[array attributes])
@@ -2445,9 +2370,6 @@
 	
 }
 
-
-
-
 PHP_METHOD(ws_header, __construct) 
 {
 	zval *data = NULL, *role = NULL;




More information about the Wsf-c-dev mailing list