eZSOAPClient Class Reference
[SOAP communication library]

eZSOAPClient is a class which can be used as a SOAP client More...

List of all members.


Public Methods

 eZSOAPClient ($server,$path,$port=80)
send ($request)
 setLogin ($login)
 login ()
 setPassword ($password)
 password ()

Public Attributes

 Server
 The name or IP of the server to communicate with.

 Path
 The path to the SOAP server.

 Port
 The port of the server to communicate with.

 Timeout = 0
 How long to wait for the call.

 Login
 HTTP login for HTTP authentification.

 Password
 HTTP password for HTTP authentification.


Detailed Description

eZSOAPClient is a class which can be used as a SOAP client

eZSOAPClient handles communication with a SOAP server.

// include client classes
include_once( "lib/ezsoap/classes/ezsoapclient.php" );
include_once( "lib/ezsoap/classes/ezsoaprequest.php" );

// create a new client
$client = new eZSOAPClient( "nextgen.bf.dvh1.ez.no", "/sdk/ezsoap/view/server" );

$namespace = "http://soapinterop.org/";

// create the SOAP request object
$request = new eZSOAPRequest( "addNumbers", "http://calkulator.com/simplecalculator" );

// add parameters to the request
$request->addParameter( "valueA", 42 );
$request->addParameter( "valueB", 17 );

// send the request to the server and fetch the response
$response =& $client->send( $request );

// check if the server returned a fault, if not print out the result
if ( $response->isFault() )
{
    print( "SOAP fault: " . $response->faultCode(). " - " . $response->faultString() . "" );
}
else
    print( "Returned SOAP value was: \"" . $response->value() . "\"" );

See also:
eZSOAPResponse

Definition at line ezsoapclient.php.


Constructor & Destructor Documentation

eZSOAPClient::eZSOAPClient   server,
  path,
  port = 80
 

Creates a new SOAP client.

Definition at line ezsoapclient.php.

References Server.


Member Function Documentation

eZSOAPClient::login  
 

Returns the login, used for HTTP authentification

Definition at line ezsoapclient.php.

References Login.

Referenced by setLogin().

eZSOAPClient::password  
 

Returns the password, used for HTTP authentification

Definition at line ezsoapclient.php.

References Password.

Referenced by setPassword().

& eZSOAPClient::send   request
 

Sends a SOAP message and returns the response object.

Definition at line ezsoapclient.php.

References eZDebug::writeNotice().

eZSOAPClient::setLogin   login
 

Sets the HTTP login

Definition at line ezsoapclient.php.

References login().

eZSOAPClient::setPassword   password
 

Sets the HTTP password

Definition at line ezsoapclient.php.

References password().


The documentation for this class was generated from the following file:  

Exponential