Packageindex | Classtrees | Modulegroups | Elementlist | Report | XML Files
###### # soapclient
    nusoap_base
       |
      +-- soapclient
#### public class soapclient extends nusoap_base usage: // instantiate client with server info $soapclient = new soapclient( string path [ ,boolean wsdl] ); // call method, get results echo $soapclient->call( string methodname [ ,array parameters] ); // bye bye client unset($soapclient);
Authors | Dietrich Ayala <dietricha@ganx4.com>
Version | v 0.6
## Methods inherited from nusoap_base
nusoap_base, debug, geterror, seterror, serialize_val, serializeenvelope, timestamp_to_iso8601, iso8601_to_timestamp, formatdump
## Public Method Summary
void | soapclient(string $endpoint, [ string $wsdl, string $portName ]) constructor
mixed | call(string $operation, [ array $params, string $namespace, string $soapAction, boolean $headers ]) calls method, returns PHP native type
array | getOperationData(string $operation) get available data pertaining to an operation
mixed | send(string $msg, [ string $soapaction, integer $timeout ]) send the SOAP message
object SOAPx4 | parseResponse(string $data) processes SOAP message returned from server
void | setHeaders(string $headers) set the SOAP headers
mixed | getHeaders() get the response headers
void | setHTTPProxy(string $proxyhost, string $proxyport) set proxy info here
void | setCredentials(string $username, string $pword) if authenticating, set user credentials here
object soap_proxy | getProxy() dynamically creates proxy class, allowing user to directly call methods from wsdl
## Fields inherited from nusoap_base
$soap_defencoding, $namespaces, $typemap, $xmlentities, $title, $version, $charencoding
## Public Field Summary
string | $fault fault related variables
## Private Field Summary
unknown | $username
unknown | $password
boolean | $requestHeaders
unknown | $responseHeaders
unknown | $endpoint
unknown | $portName
boolean | $error_str
## Included files Summary, Type: require_once
class.soap_transport_http.php | Warning: documentation is missing.
## Public Method Details
#### soapclient
public void soapclient(string $endpoint, [ string $wsdl, string $portName ])
Parameter
string | $endpoint | ``
| SOAP server or WSDL URL
string | $wsdl | `= >>""<<`
| optional, set to true if using WSDL
string | $portName | `= >>""<<`
| optional portName in WSDL document
Returns | void
#### call
public mixed call(string $operation, [ array $params, string $namespace, string $soapAction, boolean $headers ])
Parameter
string | $operation | ``
| SOAP server URL or path
array | $params | `= >>array()<<`
| array of parameters, can be associative or not
string | $namespace | `= >>""<<`
| optional method namespace
string | $soapAction | `= >>""<<`
| optional SOAPAction value
boolean | $headers | `= >>false<<`
| optional array of soapval objects for headers
Returns | mixed
#### getOperationData
public array getOperationData(string $operation)
Parameter
string | $operation | ``
| operation name
Returns | array array of data pertaining to the operation
#### send
public mixed send(string $msg, [ string $soapaction, integer $timeout ])
| Note: if the operation has multiple return values the return value of this method will be an array of those values.
Parameter
string | $msg | ``
| a SOAPx4 soapmsg object
string | $soapaction | `= >>""<<`
| SOAPAction value
integer | $timeout | `= >>0<<`
| set timeout in seconds
Returns | mixed native PHP types.
#### parseResponse
public object SOAPx4 parseResponse(string $data)
Parameter
string | $data | ``
| response data from server
Returns | object SOAPx4 soapval object
#### setHeaders
public void setHeaders(string $headers)
Parameter
string | $headers | ``
Returns | void
#### getHeaders
public mixed getHeaders()
Returns | mixed object SOAPx4 soapval object or empty if no headers
#### setHTTPProxy
public void setHTTPProxy(string $proxyhost, string $proxyport)
Parameter
string | $proxyhost | ``
string | $proxyport | ``
Returns | void
#### setCredentials
public void setCredentials(string $username, string $pword)
Parameter
string | $username | ``
string | $pword | ``
Returns | void
#### getProxy
public object soap_proxy getProxy()
Returns | object soap_proxy object
## Public Field Details
#### $fault
public string $fault >>``<<
## Private Field Details
#### $username
private unknown $username >>``<<
#### $password
private unknown $password >>``<<
#### $requestHeaders
private boolean $requestHeaders >>`false`<<
#### $responseHeaders
private unknown $responseHeaders >>``<<
#### $endpoint
private unknown $endpoint >>``<<
#### $portName
private unknown $portName >>``<<
#### $error_str
private boolean $error_str >>`false`<<
## Included Files, Type: require_once
#### class.soap_transport_http.php
require_once( class.soap_transport_http.php )
Packageindex | Classtrees | Modulegroups | Elementlist | Report | XML Files
Generated on Mon, 22 Apr 2002 16:07:52 -0700 by PHPDoc v1.5 www.phpdoc.de