#30302 [NoF->Opn]: Implement Document/Literal with wrapped convention
| From: | julien dot wajsberg at francetelecom dot com | Date: | Tue, 19 Apr 2005 07:31:04 +0000 |
| Subject: | #30302 [NoF->Opn]: Implement Document/Literal with wrapped convention | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77856@lists.php.net to get a copy of this message | ||
ID: 30302
User updated by: julien dot wajsberg at francetelecom dot com
Reported By: julien dot wajsberg at francetelecom dot com
-Status: No Feedback
+Status: Open
Bug Type: SOAP related
Operating System: Windows XP
PHP Version: 5.0.2
New Comment:
Yes, the new location for the article is :
http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html
Previous Comments:
------------------------------------------------------------------------
[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-09 01:00:03] 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".
------------------------------------------------------------------------
[2004-12-01 18:26:25] dmitry@php.net
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;
}
------------------------------------------------------------------------
[2004-10-01 14:45:53] julien dot wajsberg at francetelecom dot com
Description:
------------
The mode "Document/literal with wrapped convention" is the current
industry consensus for exposing Web Services. In particular, the WS-I
explicitely forbids use of "RPC/encoded" mode, and most toolkits
vendors are working towards "document wrapped/literal".
A very good explanation of this convention can be found on
http://www.burtongroup.com/weblogs/annethomasmanes/archives/2004/04/000187.html
I would suggest adding another mode to the "style" options to
SoapClient constructor: SOAP_WRAPPED.
There should also be some logic to understand a wsdl using this
convention, but it could be done afterwards.
This convention is really very similar to "rpc/literal" mode; I didn't
test this mode, but if it's already functional, it shouldn't be hard to
implement "document wrapped/literal".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30302&edit=1