Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

soapclient.__soapcall(3) [php man page]

SOAPCLIENT.__SOAPCALL(3)						 1						  SOAPCLIENT.__SOAPCALL(3)

SoapClient::__soapCall - Calls a SOAP function

SYNOPSIS
public mixed SoapClient::__soapCall (string $function_name, array $arguments, [array $options], [mixed $input_headers], [array &$out- put_headers]) DESCRIPTION
This is a low level API function that is used to make a SOAP call. Usually, in WSDL mode, SOAP functions can be called as methods of the SoapClient object. This method is useful in non-WSDL mode when soapaction is unknown, uri differs from the default or when sending and/or receiving SOAP Headers. On error, a call to a SOAP function can cause PHP to throw exceptions or return a SoapFault object if exceptions are disabled. To check if the function call failed to catch the SoapFault exceptions, check the result with is_soap_fault(3). PARAMETERS
o $function_name - The name of the SOAP function to call. o $arguments - An array of the arguments to pass to the function. This can be either an ordered or an associative array. Note that most SOAP servers require parameter names to be provided, in which case this must be an associative array. o $options - An associative array of options to pass to the client. The location option is the URL of the remote Web service. The uri option is the target namespace of the SOAP service. The soapaction option is the action to call. o $input_headers - An array of headers to be sent along with the SOAP request. o $output_headers - If supplied, this array will be filled with the headers from the SOAP response. RETURN VALUES
SOAP functions may return one, or multiple values. If only one value is returned by the SOAP function, the return value of __soapCall will be a simple value (e.g. an integer, a string, etc). If multiple values are returned, __soapCall will return an associative array of named output parameters. On error, if the SoapClient object was constructed with the exceptions option set to FALSE, a SoapFault object will be returned. EXAMPLES
Example #1 SoapClient.__soapCall(3) example <?php $client = new SoapClient("some.wsdl"); $client->SomeFunction($a, $b, $c); $client->__soapCall("SomeFunction", array($a, $b, $c)); $client->__soapCall("SomeFunction", array($a, $b, $c), NULL, new SoapHeader(), $output_headers); $client = new SoapClient(null, array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/")); $client->SomeFunction($a, $b, $c); $client->__soapCall("SomeFunction", array($a, $b, $c)); $client->__soapCall("SomeFunction", array($a, $b, $c), array('soapaction' => 'some_action', 'uri' => 'some_uri')); ?> SEE ALSO
SoapClient::SoapClient, SoapParam::SoapParam, SoapVar::SoapVar, SoapHeader::SoapHeader, SoapFault::SoapFault, is_soap_fault(3). PHP Documentation Group SOAPCLIENT.__SOAPCALL(3)

Check Out this Related Man Page

SOAP::WSDL::SOAP::Typelib::Fault11(3pm) 		User Contributed Perl Documentation		   SOAP::WSDL::SOAP::Typelib::Fault11(3pm)

NAME
SOAP::WSDL::SOAP::Typelib::Fault11 - SOAP 1.1 Fault class DESCRIPTION
Models a SOAP 1.1 Fault. SOAP::WSDL::SOAP::Typelib::Fault11 objects are false in boolean context and serialize to XML on stringification. This means you can do something like: my $soap = SOAP::WSDL::Client->new(); # ... my $result = $soap->call($method, $data); if (not $result) { die "Error calling SOAP method: ", $result->get_faultstring(); } METHODS
get_faultcode / set_faultcode Getter/setter for object's faultcode property. get_faultstring / set_faultstring Getter/setter for object's faultstring property. get_faultactor / set_faultactor Getter/setter for object's faultactor property. get_detail / set_detail Getter/setter for detail object's detail property. The detail element is a SOAP::WSDL::SOAP::Typelib::Fault11Detail object. This class is automatically loaded when using SOAP::WSDL::SOAP::Typelib::Fault11, so you can't use it separately. Any string or object not of this class will be automatically wrapped into a detail object. Note that passing a list of detail object is currently not supported (though the SOAP1.1 note allows this). LICENSE AND COPYRIGHT
Copyright 2007 Martin Kutter. All rights reserved. This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself AUTHOR
Martin Kutter <martin.kutter fen-net.de> REPOSITORY INFORMATION
$Rev: 851 $ $LastChangedBy: kutterma $ $Id: Fault11.pm 851 2009-05-15 22:45:18Z kutterma $ $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/SOAP/Typelib/Fault11.pm $ perl v5.10.1 2010-12-21 SOAP::WSDL::SOAP::Typelib::Fault11(3pm)
Man Page