Overview

Namespaces

  • None
  • Wei
    • Validator

Classes

  • Apc
  • App
  • ArrayCache
  • Asset
  • Base
  • BaseCache
  • BaseController
  • Bicache
  • Cache
  • Config
  • Cookie
  • Couchbase
  • Counter
  • Db
  • DbCache
  • E
  • Env
  • Error
  • FileCache
  • Gravatar
  • Http
  • Lock
  • Logger
  • Memcache
  • Memcached
  • MongoCache
  • Password
  • PhpError
  • PhpFileCache
  • Pinyin
  • Record
  • Redis
  • Request
  • Response
  • Router
  • SafeUrl
  • Session
  • Soap
  • T
  • Ua
  • Upload
  • Url
  • Uuid
  • Validate
  • View
  • WeChatApp
  • Wei
  • Overview
  • Namespace
  • Class

Class Soap

A Soap client that works like HTTP service

wei\Base
Extended by wei\Soap
Namespace: Wei
Author: Twin Huang twinhuang@qq.com
Located at Soap.php
Methods summary
public
# __construct( array $options = array() )

Constructor

Constructor

Parameters

$options
public
# __invoke( array $options = array() )

Create a new Soap service and execute

Create a new Soap service and execute

Parameters

$options
A options array if the first parameter is string

Returns


$this A new Soap object
public
# execute( )

Execute the request, parse the response data and trigger relative callbacks

Execute the request, parse the response data and trigger relative callbacks

public mixed
# getResponse( )

Returns the parsed response data

Returns the parsed response data

Returns

mixed
public string
# getUrl( )

Returns the request URL

Returns the request URL

Returns

string
public string
# getMethod( )

Returns the request method

Returns the request method

Returns

string
public array|string
# getData( )

Returns the data to send to the server

Returns the data to send to the server

Returns

array|string
public SoapFault
# getErrorException( )

Returns the error exception object

Returns the error exception object

Returns

SoapFault
Properties summary
protected string $url

The request URL

The request URL

#
protected string $method

The name of the SOAP function to call.

The name of the SOAP function to call.

#
protected array $data

The parameters send to the SOAP function

The parameters send to the SOAP function

# array()
protected boolean $global

Whether use the global options in $wei->http object when create a new object

Whether use the global options in $wei->http object when create a new object

# false
protected boolean $throwException

Whether throw exception or keep silent when request error

Whether throw exception or keep silent when request error

Note that the exception is thrown after triggered complete callback, rather than triggered error callback

# true
protected callable $beforeExecute

A callback triggered after prepared the data and before the beforeSend callback

A callback triggered after prepared the data and before the beforeSend callback

#
protected callable $beforeSend

A callback triggered after prepared the data and before the process the request

A callback triggered after prepared the data and before the process the request

#
protected callable $success

A callback triggered after the request is called success

A callback triggered after the request is called success

#
protected callable $error

A callback triggered when the request fails

A callback triggered when the request fails

The $textStatus could be curl, http, and parser

#
protected callable $complete

A callback triggered when request finishes (after success and error callbacks are executed)

A callback triggered when request finishes (after success and error callbacks are executed)

#
protected mixed $response

The parsed response data

The parsed response data

#
protected SoapClient $soapClient

The instance of soap client

The instance of soap client

#
protected ErrorException $errorException

The error exception object

The error exception object

#
Wei Framework API documentation generated by ApiGen