note 49827 added to function.soap-soapheader-construct

From: Date: Wed, 09 Feb 2005 16:52:41 +0000
Subject: note 49827 added to function.soap-soapheader-construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-84733@lists.php.net to get a copy of this message
If you are using WSDL to define your SOAP Headers, note that PHP's SoapServer class will not process incoming headers unless the <message> and <part> names are identical for the header methods. Define a SOAP header function like this in WSDL: <!-- replace "tns:" with your own namespace abbreviation --> <!-- define method arguments using a complexType --> <xsd:complexType name="HeaderMethodArgs"> <xsd:all> <xsd:element ... name="arg1"/> <xsd:element ... name="arg2"/> </xsd:all> </xsd:complexType> <!-- define method message with single part --> <message name='headerMethodName'> <part name='headerMethodName' type='tns:HeaderMethodArgs'/> </message> <!-- add header tag to operations that use this header --> <operation name='someBodyMethod'> ... <input> <soap:body .../> <soap:header ... message='tns:headerMethodName' part='headerMethodName' /> </input> <output>...</output> </operation> ---- Manual Page -- http://www.php.net/manual/en/function.soap-soapheader-construct.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49827 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49827&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49827&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49827&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49827&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49827&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49827&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84733) next »