EC-CUBE
Public メソッド | 変数
クラス SOAP_Client

Public メソッド

 SOAP_Client ($endpoint, $wsdl=false, $portName=false, $proxy_params=array(), $cache=false)
 _reset ()
 setEncoding ($encoding)
 addHeader ($soap_value)
call ($method, &$params, $namespace=false, $soapAction=false)
 setOpt ($category, $option, $value=null)
 _call ($method, $params, &$return_value)
__getlastrequest ()
 getLastRequest ()
__getlastresponse ()
 getLastResponse ()
 __use ($use)
 setUse ($use)
 __style ($style)
 setStyle ($style)
 __trace ($level)
 setTrace ($trace)
 _generate ($method, &$params, $namespace=false, $soapAction=false)
__parse (&$response, $encoding, &$attachments)
parseResponse ($response, $encoding, &$attachments)
_decodeResponse ($response, $shift=true)
 __get_wire ()
 getWire ()

変数

 $_endpoint = ''
 $_portName = ''
 $_endpointType = ''
 $xml
 $wire
 $_last_request = null
 $_last_response = null
 $_options = array('trace' => false)
 $_encoding = SOAP_DEFAULT_ENCODING
 $headersOut = null
 $headersIn = null
 $_proxy_params = array()
 $_soap_transport = null

関数

& __parse ( &$  response,
encoding,
&$  attachments 
)
__style ( style)
__trace ( level)
__use ( use)
_call ( method,
params,
&$  return_value 
)

Call method supporting the overload extension.

If the overload extension is loaded, you can call the client class with a soap method name: $soap = new SOAP_Client(....); $value = $soap->getStockQuote('MSFT');

public

引数:
string$methodThe method to call.
array$paramsThe method parameters.
mixed$return_valueWill get the method's return value assigned.
戻り値:
boolean Always true.
& _decodeResponse ( response,
shift = true 
)

Converts a complex SOAP_Value into a PHP Array

引数:
SOAP_Value$responsevalue object
boolean$shiftFIXME
戻り値:
Array
addHeader ( soap_value)

Adds a header to the envelope.

public

引数:
SOAP_Header$soap_valueA SOAP_Header or an array with the elements 'name', 'namespace', 'mustunderstand', and 'actor' to send as a header.
& call ( method,
&$  params,
namespace = false,
soapAction = false 
)

Calls a method on the SOAP endpoint.

The namespace parameter is overloaded to accept an array of options that can contain data necessary for various transports if it is used as an array, it MAY contain a namespace value and a soapaction value. If it is overloaded, the soapaction parameter is ignored and MUST be placed in the options array. This is done to provide backwards compatibility with current clients, but may be removed in the future. The currently supported values are:

   namespace
   soapaction
   timeout (HTTP socket timeout)
   transfer-encoding (SMTP, Content-Transfer-Encoding: header)
   from (SMTP, From: header)
   subject (SMTP, Subject: header)
   headers (SMTP, hash of extra SMTP headers)
 

public

引数:
string$methodThe method to call.
array$paramsThe method parameters.
string | array$namespaceNamespace or hash with options.
string$soapAction
戻り値:
mixed The method result or a SOAP_Fault on error.

Returns the XML content of the last SOAP request.

戻り値:
string The last request.

Returns the XML content of the last SOAP response.

戻り値:
string The last response.
getWire ( )

Returns the outgoing and incoming traffic on the transport level.

Tracing has to be enabled.

参照:
setTrace()
戻り値:
string The complete traffic between the client and the server.
& parseResponse ( response,
encoding,
&$  attachments 
)

Parses a SOAP response.

参照:
SOAP_Parser::
引数:
string$responseXML content of SOAP response.
string$encodingCharacter set encoding, defaults to 'UTF-8'.
array$attachmentsList of attachments.
setEncoding ( encoding)

Sets the character encoding.

Limited to 'UTF-8', 'US_ASCII' and 'ISO-8859-1'.

public

引数:
stringencoding
戻り値:
mixed SOAP_Fault on error.
setOpt ( category,
option,
value = null 
)

Sets an option to use with the transport layers.

For example: $soapclient->setOpt('curl', CURLOPT_VERBOSE, 1) to pass a specific option to curl if using an SSL connection.

public

引数:
string$categoryCategory to which the option applies or option name.
string$optionAn option name if $category is a category name, an option value if $category is an option name.
string$valueAn option value if $category is a category name.
setStyle ( style)

Sets the SOAP encoding style.

引数:
string$styleEither 'document' or 'rpc'.
setTrace ( trace)

Sets whether to trace the traffic on the transport level.

参照:
getWire()
引数:
boolean$trace
setUse ( use)

Sets the SOAP encoding.

引数:
string$useEither 'literal' or 'encoded' (section 5).
SOAP_Client ( endpoint,
wsdl = false,
portName = false,
proxy_params = array(),
cache = false 
)

Constructor.

public

引数:
string$endpointAn URL.
boolean$wsdlWhether the endpoint is a WSDL file.
string$portNameThe service's port name to use.
array$proxy_paramsOptions for the HTTP_Request class
参照:
HTTP_Request
引数:
boolean | string$cacheUse WSDL caching? The cache directory if a string.

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数