PHP 5.6.0beta1 released

SoapClient::__getTypes

(PHP 5 >= 5.0.1)

SoapClient::__getTypesReturns a list of SOAP types

Descrierea

public array SoapClient::__getTypes ( void )

Returns an array of types described in the WSDL for the Web service.

Notă:

Această funcție funcționează doar în modul WSDL.

Parametri

Această funcție nu are parametri.

Valorile întoarse

The array of SOAP types, detailing all structures and types.

Exemple

Example #1 SoapClient::__getTypes() example

<?php
$client 
= new SoapClient('http://soap.amazon.com/schemas3/AmazonWebServices.wsdl');
var_dump($client->__getTypes());
?>

Exemplul de mai sus va afișa:

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;
}"
}

Vedeți de asemenea

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top