svn: /phpdoc/en/trunk/reference/soap/soapclient/ getfunctions.xml gettypes.xml

From: Date: Thu, 01 Jul 2010 09:15:35 +0000
Subject: svn: /phpdoc/en/trunk/reference/soap/soapclient/ getfunctions.xml gettypes.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6858@lists.php.net to get a copy of this message
rquadling Thu, 01 Jul 2010 09:15:35 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=300897 Log: Improve example for SoapClient::__getFunctions() & SoapClient::__getTypes(). Fix bug #52217 Bug: http://bugs.php.net/52217 (Open) API manual for SOAP misses detail information for returned values Changed paths: U phpdoc/en/trunk/reference/soap/soapclient/getfunctions.xml U phpdoc/en/trunk/reference/soap/soapclient/gettypes.xml Modified: phpdoc/en/trunk/reference/soap/soapclient/getfunctions.xml =================================================================== --- phpdoc/en/trunk/reference/soap/soapclient/getfunctions.xml 2010-07-01 08:58:14 UTC (rev 300896) +++ phpdoc/en/trunk/reference/soap/soapclient/getfunctions.xml 2010-07-01 09:15:35 UTC (rev 300897) @@ -14,11 +14,9 @@ <void /> </methodsynopsis> <para> - Returns a list of available SOAP functions. + Returns an array of functions described in the WSDL for the Web service. </para> - <para> - This function only works in WSDL mode. - </para> + &soap.wsdl.mode.only; </refsect1> <refsect1 role="parameters"> @@ -29,7 +27,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - The list of SOAP functions. + The <type>array</type> of SOAP function prototypes, detailing the return type, + the function name and type-hinted paramaters. </para> </refsect1> @@ -41,11 +40,31 @@ <programlisting role="php"> <![CDATA[ <?php -$client = new SoapClient('some.wsdl'); +$client = new SoapClient('http://soap.amazon.com/schemas3/AmazonWebServices.wsdl'); var_dump($client->__getFunctions()); ?> ]]> </programlisting> + &example.outputs; + <screen> +<![CDATA[ +array(26) { + [0]=> + string(70) "ProductInfo KeywordSearchRequest(KeywordRequest $KeywordSearchRequest)" + [1]=> + string(79) "ProductInfo TextStreamSearchRequest(TextStreamRequest $TextStreamSearchRequest)" + [2]=> + string(64) "ProductInfo PowerSearchRequest(PowerRequest $PowerSearchRequest)" +... + [23]=> + string(107) "ShoppingCart RemoveShoppingCartItemsRequest(RemoveShoppingCartItemsRequest $RemoveShoppingCartItemsRequest)" + [24]=> + string(107) "ShoppingCart ModifyShoppingCartItemsRequest(ModifyShoppingCartItemsRequest $ModifyShoppingCartItemsRequest)" + [25]=> + string(118) "GetTransactionDetailsResponse GetTransactionDetailsRequest(GetTransactionDetailsRequest $GetTransactionDetailsRequest)" +} +]]> + </screen> </example> </para> </refsect1> Modified: phpdoc/en/trunk/reference/soap/soapclient/gettypes.xml =================================================================== --- phpdoc/en/trunk/reference/soap/soapclient/gettypes.xml 2010-07-01 08:58:14 UTC (rev 300896) +++ phpdoc/en/trunk/reference/soap/soapclient/gettypes.xml 2010-07-01 09:15:35 UTC (rev 300897) @@ -27,7 +27,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - An <type>array</type> of SOAP types. + The <type>array</type> of SOAP types, detailing all structures and types. </para> </refsect1> @@ -39,11 +39,48 @@ <programlisting role="php"> <![CDATA[ <?php -$client = new SoapClient("some.wsdl"); +$client = new SoapClient('http://soap.amazon.com/schemas3/AmazonWebServices.wsdl'); var_dump($client->__getTypes()); ?> ]]> </programlisting> + &example.outputs; + <screen> +<![CDATA[ +array(88) { + [0]=> + string(30) "ProductLine ProductLineArray[]" + [1]=> + string(85) "struct ProductLine { + string Mode; + string RelevanceRank; + ProductInfo ProductInfo; +}" + [2]=> + string(105) "struct ProductInfo { + string TotalResults; + string TotalPages; + string ListName; + DetailsArray Details; +}" +... + [85]=> + string(32) "ShortSummary ShortSummaryArray[]" + [86]=> + string(121) "struct GetTransactionDetailsRequest { + string tag; + string devtag; + string key; + OrderIdArray OrderIds; + string locale; +}" + [87]=> + string(75) "struct GetTransactionDetailsResponse { + ShortSummaryArray ShortSummaries; +}" +} +]]> + </screen> </example> </para> </refsect1>

« previous php.doc.cvs (#6858) next »