ID: 30302 Comment by: bones at winning dot com Reported By: julien dot wajsberg at francetelecom dot com Status: No Feedback Bug Type: SOAP related Operating System: Windows XP PHP Version: 5.0.2 New Comment:
I would like to reopen this bug report. We can't get our soap service running in PHP 5.2.2 using a WSDL file in "document/literal_wrapped" style. The function to call needs 3 parameters and we can't change it to the suggested way by [EMAIL PROTECTED] to use an array with 3 elements. When we call the function in the way $soapClient->foo($x, $y, $z); we always get "SOAP-ERROR: Encoding" with the notice that their is a problem with the parameters. When we call $soapClient->__getFunctions(); the result is fooResponce foo(foo $parameters); but this is the fault result, I think. When we change the WSDL document to the "document/literal" style, $soapClient->__getFunctions(); gives the correct result fooResponce foo(Test1 $x, Test2 $y, Test3 $z); but now the server thows an SOAP-Exception: "Procedure 'Test1' not present". PHP falsely believes that Test1 is a function, but with "document/literal" the function name is not transmitted in the SOAP-Request. Can you change the way PHP handles "document/literal_wrapped" WSDL files so the function can be called with 3 parameters ? Previous Comments: ------------------------------------------------------------------------ [2005-04-27 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-04-20 00:07:58] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-04-19 09:31:03] julien dot wajsberg at francetelecom dot com Yes, the new location for the article is : http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html ------------------------------------------------------------------------ [2005-04-18 22:21:51] peter dot ordal at rochester dot edu The article linked in the initial report has been taken down, but is available via archive.org. http://web.archive.org/web/20041012031835/http://www.burtongroup.com/weblogs/annethomasmanes/archives/2004/04/000187.html There are some formatting issues to watch out for. I tried dmitry's idea but I just get an emtpy stdClass object back. ------------------------------------------------------------------------ [2004-12-01 18:26:25] [EMAIL PROTECTED] ext/soap works fine with this WSDL file. To call function on a client side use: $client->add(array("arg1"=>2,"arg2"=>3)); On server side you can use the following function: function add($args) { return $args->arg1 + $args->arg2; } ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30302 -- Edit this bug report at http://bugs.php.net/?id=30302&edit=1