[wsf-c-dev] [jira] Commented: (WSFPHP-201) When two WSClient
objects are
created on the same .php file using WSDL mode, the second client proxy
calls fail
Nandika Jayawardana (JIRA)
jira at wso2.org
Mon Feb 4 08:04:59 PST 2008
[ http://wso2.org/jira/browse/WSFPHP-201?page=comments#action_15343 ]
Nandika Jayawardana commented on WSFPHP-201:
--------------------------------------------
This issue happens because we use php_lint_script in the code, when this function is called more than ones within the same php script, it gives a fatal error complaining about the redeclaration of the functions defined in the executed php file.
I worked out the following solution.
we can define the wsdl mode scripting executing code with in a function like "ws_init_wsdlmode". Then calling this function at the top of the script sof all clients and services using wsdl mode will fix the issue.
Once we implement the wsdl mode in c , this problem will not be there.
> When two WSClient objects are created on the same .php file using WSDL mode, the second client proxy calls fail
> ---------------------------------------------------------------------------------------------------------------
>
> Key: WSFPHP-201
> URL: http://wso2.org/jira/browse/WSFPHP-201
> Project: WSO2 WSF/PHP
> Issue Type: Bug
> Components: WSDL Mode
> Affects Versions: Current (nightly)
> Environment: Linux/Windows
> Reporter: Nandika Jayawardana
>
> $client0 = new WSClient(array("wsdl"=>"a.wsdl"));
> $proxy0 = $client0->getProxy();
> $proxy0->method();
> $client1 = new WSClient(array("wsdl"=>"b.wsdl"));
> $proxy1 = $client1->getProxy();
> $proxy1->method1();
> When a script as above is executed, the second call fails with the error message
> Cannot redeclare wsf_process_wsdl()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Wsf-c-dev
mailing list