Note Submitter: paulabean73 at gmail dot com
----
@nilzor at gmail dot com 12-May-2010 10:04
It seems that when using a WSDL (for example with a .NET client) the function's arguments are wrapped inside a stdClass. What get_object_vars() does is simply turn the (visible) properties of an object into an associative array.
You could also just do:
<?php
function SomeFunction($data)
{
return Array("SomeFunctionResult" => $data->param1 + $data->param2);
}
?>
You could probably also wrap the return value in a stdClass (or better yet, specify a class map).
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.