SOAP

目次

SoapClient クラス

はじめに

SoapClient クラスは » SOAP 1.1» SOAP 1.2 サーバー用のクライアントとなります。 WSDL モードあるいは non-WSDL モードで動作します。

クラス概要

SoapClient
/* プロパティ */
private stringnull $uri = null;
private intnull $style = null;
private intnull $use = null;
private stringnull $location = null;
private bool $trace = false;
private intnull $compression = null;
private resourcenull $sdl = null;
private resourcenull $typemap = null;
private resourcenull $httpsocket = null;
private resourcenull $httpurl = null;
private stringnull $_login = null;
private stringnull $_password = null;
private bool $_use_digest = false;
private stringnull $_digest = null;
private stringnull $_proxy_host = null;
private intnull $_proxy_port = null;
private stringnull $_proxy_login = null;
private stringnull $_proxy_password = null;
private bool $_exceptions = true;
private stringnull $_encoding = null;
private arraynull $_classmap = null;
private intnull $_features = null;
private int $_connection_timeout;
private resourcenull $_stream_context = null;
private stringnull $_user_agent = null;
private bool $_keep_alive = true;
private intnull $_ssl_method = null;
private int $_soap_version;
private intnull $_use_proxy = null;
private array $_cookies = [];
private arraynull $__default_headers = null;
private SoapFaultnull $__soap_fault = null;
private stringnull $__last_request = null;
private stringnull $__last_response = null;
private stringnull $__last_request_headers = null;
private stringnull $__last_response_headers = null;
/* メソッド */
public __construct(stringnull $wsdl, array $options = [])
public mixed __call(string $name, array $args)
public stringnull __doRequest(
    string $request,
    string $location,
    string $action,
    int $version,
    bool $oneWay = false
)
public array __getCookies()
public arraynull __getFunctions()
public stringnull __getLastRequest()
public stringnull __getLastRequestHeaders()
public stringnull __getLastResponse()
public stringnull __getLastResponseHeaders()
public arraynull __getTypes()
public void __setCookie(string $name, stringnull $value = null)
public stringnull __setLocation(stringnull $location = null)
public bool __setSoapHeaders(SoapHeaderarraynull $headers = null)
public mixed __soapCall(
    string $name,
    array $args,
    arraynull $options = null,
    SoapHeaderarraynull $inputHeaders = null,
    array &$outputHeaders = null
)

プロパティ

__default_headers

__last_request

__last_request_headers

__last_response

__last_response_headers

__soap_fault

_classmap

_connection_timeout

_cookies

_digest

_encoding

_exceptions

_features

_keep_alive

_login

_password

_proxy_host

_proxy_login

_proxy_password

_proxy_port

_soap_version

_ssl_method

_stream_context

_use_digest

_use_proxy

_user_agent

compression

httpsocket

httpurl

location

sdl

style

trace

typemap

uri

use

SoapServer クラス

はじめに

SoapServer クラスは » SOAP 1.1 および » SOAP 1.2 プロトコル用のサーバーとなります。 WSDL サービス記述を使用することもしないこともできます。

クラス概要

SoapServer
/* プロパティ */
private SoapFaultnull $__soap_fault = null;
/* メソッド */
public __construct(stringnull $wsdl, array $options = [])
public void addFunction(arraystringint $functions)
public void addSoapHeader(SoapHeader $header)
public void fault(
    string $code,
    string $string,
    string $actor = "",
    mixed $details = null,
    string $name = ""
)
public array getFunctions()
public void handle(stringnull $request = null)
public void setClass(string $class, mixed ...$args)
public void setObject(object $object)
public void setPersistence(int $mode)

プロパティ

service

__soap_fault

SoapFault クラス

はじめに

SOAP fault をあらわします。

クラス概要

SoapFault
extends Exception
/* プロパティ */
public string $faultstring;
public stringnull $faultcode = null;
public stringnull $faultcodens = null;
public stringnull $faultactor = null;
public mixed $detail = null;
public stringnull $_name = null;
public mixed $headerfault = null;
/* 継承したプロパティ */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private Throwablenull $previous = null;
/* メソッド */
public SoapFault::__construct(
    arraystringnull $code,
    string $string,
    stringnull $actor = null,
    mixed $details = null,
    stringnull $name = null,
    mixed $headerFault = null
)
public string SoapFault::__toString()
/* 継承したメソッド */
final public string getMessage()
final public Throwablenull getPrevious()
final public int getCode()
final public string getFile()
final public int getLine()
final public array getTrace()
final public string getTraceAsString()
public string __toString()
private void __clone()

プロパティ

_name

detail

faultactor

faultcode

faultcodens

faultstring

headerfault

SoapHeader クラス

はじめに

SOAP ヘッダをあらわします。

クラス概要

SoapHeader
/* プロパティ */
public string $namespace;
public string $name;
public mixed $data = null;
public bool $mustUnderstand;
public stringintnull $actor;
/* メソッド */
public __construct(
    string $namespace,
    string $name,
    mixed $data = ?,
    bool $mustunderstand = ?,
    string $actor = ?
)

プロパティ

actor

data

mustUnderstand

name

namespace

SoapParam クラス

はじめに

SOAP コールのパラメータをあらわします。

クラス概要

SoapParam
/* プロパティ */
public string $param_name;
public mixed $param_data;
/* メソッド */
public __construct(mixed $data, string $name)

プロパティ

param_data

param_name

SoapVar クラス

はじめに

SOAP サービスが使用する変数やオブジェクトをあらわします。

クラス概要

SoapVar
/* プロパティ */
public int $enc_type;
public mixed $enc_value = null;
public stringnull $enc_stype = null;
public stringnull $enc_ns = null;
public stringnull $enc_name = null;
public stringnull $enc_namens = null;
/* メソッド */
public __construct(
    mixed $data,
    intnull $encoding,
    stringnull $typeName = null,
    stringnull $typeNamespace = null,
    stringnull $nodeName = null,
    stringnull $nodeNamespace = null
)

プロパティ

enc_name

enc_namens

enc_ns

enc_type

enc_stype

enc_value