I fixed the bug. Please check now.
Thanks,
Samisa...
Plamen Neykov wrote:
Hi Samisa,
this bug is gone - thank you very much!
Unfortunately there is one more bug which causes the server to crash after
processing the request. The crash occurs in adb_calculate_free (my service is
called calculate). The reason for the crash is in the way how
adb_calculate_deserialize is implemented - I have two lists as parameters for
the ws call. In adb_calculate_deserialize the first parameter is initialised
with:
/**
* building param0 array
*/
arr_list = axutil_array_list_create( env, 10);
But when it comes to the second parameter no initialization is performed:
/**
* building param1 array
*/
/**
* building param1 element
*/
and then uses the same arr_list to populate the content of the second
parameter - which clearly overrides the content of the previous list!
When the second free is performed the list was freed already and it crashes
(well it looses some memory in the process too, but this is secondary ...)
I'm attaching the wsdl here so that you can take look by yourself.
Thanks,
Plamen
--
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]