[wsf-c-dev] svn commit r395 - wsf/php/src
svn at wso2.com
svn at wso2.com
Thu Jan 11 03:02:27 PST 2007
Author: buddhika
Date: Thu Jan 11 03:02:06 2007
New Revision: 395
Modified:
wsf/php/src/wsf.c
Log:
fixing bugs in WSDL generation
Modified: wsf/php/src/wsf.c
==============================================================================
--- wsf/php/src/wsf.c (original)
+++ wsf/php/src/wsf.c Thu Jan 11 03:02:06 2007
@@ -1574,9 +1574,9 @@
/** for Wsdl version. default is wsdl 1.1*/
if((stricmp(SG(request_info).query_string, "wsdl")) == 0 )
- wsdl_version = estrdup("wsdl1.1");
+ wsdl_version = strdup("wsdl1.1");
else
- wsdl_version = estrdup("wsdl2.0");
+ wsdl_version = strdup("wsdl2.0");
/** getting the correct binding style */
if ((zend_hash_find(Z_OBJPROP_P(obj), "bindingStyle", sizeof("bindingStyle"),
@@ -1614,20 +1614,20 @@
add_next_index_string(f_val, (char *)f_name, 1);
}
}
- ZVAL_STRING(&func, "ws_generate_wsdl", 0);
- ZVAL_STRING(params[0], "scripts/WS_WsdlCreater.php", 0);
- ZVAL_STRING(params[1], service_name, 0);
+ ZVAL_STRING(&func, "ws_generate_wsdl", 1);
+ ZVAL_STRING(params[0], "scripts/WS_WsdlCreater.php", 1);
+ ZVAL_STRING(params[1], service_name, 1);
ZVAL_ZVAL(params[2], f_val, NULL, NULL);
INIT_PZVAL(params[2]);
- ZVAL_STRING(params[3], binding_name, 0);
- ZVAL_STRING(params[4], wsdl_version, 0);
+ ZVAL_STRING(params[3], binding_name, 1);
+ ZVAL_STRING(params[4], wsdl_version, 1);
script.type = ZEND_HANDLE_FP;
script.filename = "scripts/WS_WsdlScript.php";
script.opened_path = NULL;
script.free_filename = 0;
- if (!(script.handle.fp = VCWD_FOPEN(script.filename, "rb")))
+ if (!(script.handle.fp = VCWD_FOPEN(script.filename, "rb")))
{
php_printf("Unable to open script file or file not found:");
}
More information about the Wsf-c-dev
mailing list