note 99168 added to class.soapserver
| From: | RalphRitoch at osu1 dot php dot net | Date: | Sat, 31 Jul 2010 14:24:34 +0000 |
| Subject: | note 99168 added to class.soapserver | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171285@lists.php.net to get a copy of this message | ||
Is this a bug? PHP seems to be using the name attribute of the wsdl:part element in the wsdl:message
elements as the name for the root element in the message.
The name attribute for the wsdl:part element is used by the soap:header and soap:body bindings
(wsdl:binding) to identify a wsdl:message part which must be included in the request or response. It
seems from the WSDL specifications the element name for the message should be determined by an
xsd:element in the wsdl:types.
To make the WSDL compatible with other systems it seems that you have to set the part name to the
name of the attribute, so you end up with something like this.
<message name="ExampleMethodRequest">
<part name="ExampleMethodRequest" element="tns:ExampleMethodRequest"/>
</message>
When this works with other systems and is more readable.
<message name="ExampleMethodRequest">
<part name="request" element="tns:ExampleMethodRequest"/>
</message>
Where tns:ExampleMethodRequest refers to an element
defined in the wsdl:types schema.
----
Server IP: 69.147.83.197
Probable Submitter: 203.177.237.231
----
Manual Page -- http://www.php.net/manual/en/class.soapserver.php
Edit -- https://master.php.net/note/edit/99168
Del: integrated -- https://master.php.net/note/delete/99168/integrated
Del: useless -- https://master.php.net/note/delete/99168/useless
Del: bad code -- https://master.php.net/note/delete/99168/bad+code
Del: spam -- https://master.php.net/note/delete/99168/spam
Del: non-english -- https://master.php.net/note/delete/99168/non-english
Del: in docs -- https://master.php.net/note/delete/99168/in+docs
Del: other reasons-- https://master.php.net/note/delete/99168
Reject -- https://master.php.net/note/reject/99168
Search -- https://master.php.net/manage/user-notes.php