note 90379 added to book.soap
| From: | RaphalGertz at osu1 dot php dot net | Date: | Sun, 19 Apr 2009 04:50:43 +0000 |
| Subject: | note 90379 added to book.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153481@lists.php.net to get a copy of this message | ||
Juste a note to avoid wasting time on php-soap protocol and format support.
Until php 5.2.9 (at least) the soap extension is only capable of understanding wsdl 1.0 and 1.1
format.
The wsdl 2.0, a W3C recommendation since june 2007, ISN'T supported in php soap extension.
(the soap/php_sdl.c source code don't handle wsdl2.0 format)
The wsdl 2.0 is juste the 1.2 version renamed because it has substantial differences from WSDL 1.1.
The differences between the two format may not be invisible if you don't care a lot.
The wsdl 1.0 format structure (see http://www.w3.org/TR/wsdl) :
<definitions ...>
<types ...>
</types>
<message ...>
<part ...>
</message>
<portType ...>
<operation ...>
<input ... />
<output ... />
<fault ... />
</operation>
</portType>
<binding ...>
<operation ...>
<input ... />
<output ... />
<fault ... />
</operation>
</binding>
<service ...>
<port ...>
</service>
</definitions>
And the wsdl 2.0 format structure (see http://www.w3.org/TR/wsdl20/) :
<description ...>
<types ...>
</types>
<interface ...>
<fault ... />
<operation ...>
<input ... />
<output ... />
<fault ... />
</operation>
</interface>
<binding ...>
<fault ... />
<operation ...>
<input ... />
<output ... />
<fault ... />
</operation>
</binding>
<service ...>
<endpoint ...>
</service>
</description>
The typical error message if you provide a wsdl 2.0 format file :
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in
'wsdl/example.wsdl' in /path/client.php on line 9
----
Server IP: 89.31.146.176
Probable Submitter: 88.178.10.144
----
Manual Page -- http://www.php.net/manual/en/book.soap.php
Edit -- https://master.php.net/note/edit/90379
Del: integrated -- https://master.php.net/note/delete/90379/integrated
Del: useless -- https://master.php.net/note/delete/90379/useless
Del: bad code -- https://master.php.net/note/delete/90379/bad+code
Del: spam -- https://master.php.net/note/delete/90379/spam
Del: non-english -- https://master.php.net/note/delete/90379/non-english
Del: in docs -- https://master.php.net/note/delete/90379/in+docs
Del: other reasons-- https://master.php.net/note/delete/90379
Reject -- https://master.php.net/note/reject/90379
Search -- https://master.php.net/manage/user-notes.php