slides/soap/clientapi1.xml
Client API

46/72
Anatomy of a PHP Client
Value API
  • • SOAP_Client
  • • Constructor
  • • Arg 1 Required: String: WSDL or Endpoint URL
  • • Arg 2 Optional: Boolean: Is a WSDL URL? (false)
  • • Arg 3 Optional: String: Port Name (null)
  • • Arg 4 Optional: Array: Proxy Settings (none) - necessary for WSDL proxy
  • • Method: call
  • • Arg 1 Required: String: Method Name
  • • Arg 2 Optional: Array: Arguments (none)
  • • Arg 3 Optional: Array: Options (none)
  • • namespace (URI)
  • • soapaction (URI)
  • • style ('rpc' or 'document')
  • • use ('encoded' or 'literal')
  • • attachments ('Mime' or 'DIME')
  • • parameters (boolean, internal use)
  • • result (empty, set to 'raw' to get unparsed soap result)
  • • input (empty, set to 'raw' to send unparsed soap request)
  • • timeout (socket timeout)
  • • port (socket port)
  • • headers (associative array of extra protocol headers)
  • • trace (0, set to 1 for debug tracing)
  • • from (SMTP)
  • • transfer-encoding (SMTP, sets the Content-Transfer-Encoding)
  • • subject (SMTP, subject header)
  • • CURL:
  • • Any additional CURL options as avialable via the CURL extension.
  • • Method: setOpt
  • • Can be used to set options listed above.
  • • Arg 1 Required: String: Category | Option
  • • Arg 2 Required: String: Option | Value
  • • Arg 3 Optional: String: Value
  • • Method: setEncoding
  • • Arg 1 Required: String: 'UTF-8', 'US_ASCII' or 'ISO-8859-1'
  • • Method: addHeader
  • • Arg 1 Required: SOAP_Header class
  • • Member: wire
  • • Contains raw wire of SOAP transaction if trace is set.
  • • Member: xml
  • • Contains the received xml.
  • • Other:
  • • A bunch of undocumented members, some methods, that may change prior to 1.0