__doRequest()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

A few questions from a newb to both PHP and SOAP:

1.  Is __doRequest() implicitly called when a new SOAPClient is instantiated
or does it need to be explicitly called?  The reason I ask is because I need
to extend SOAPClient to add certain parts of the request body using DOM. 
Without extending the class, I would do something like:

$wsdl_url = "urlForWSDLHere";
$paramArray = array("param1","param2","param3");
$client = new SOAPClient();
$response = client->processRequest($paramArray);

At what point in the code above is __doRequest() called in SOAPClient?

2.  If I extend the class so that I can modify the request, I assume I'd
override __doRequest() - the problem is that I can't find what the arguments
could be.  I know __doRequest takes $request, $location, $action, and
$version but what exactly are these?  I gather the following:

$request = the actual XML request that I can modify.  Is this sitting in a
variable somewhere when I create a new SOAPClient?

$location = I assume this is the location of the WSDL file?

$action = don't know what these values could be

$version = not sure what these values could be either

The documentation is a little lax so any additional info you could provide
is appreciated.  I've seen examples on the net where people are overriding
__doRequest but the only part that is ever shown is the overriding class,
not the part of code where they show how they're actually using their new
class.  Does anyone know of a COMPLETE example of using a class that extends
SOAPClient?  Something that expands upon what George has at his site at
http://www.schlossnagle.org/~george/blog/index.php?/archives/235-Salesforce.com-and-PHP.html
would be very helpful.

Thanks
-- 
View this message in context: http://www.nabble.com/__doRequest%28%29-tf3424980.html#a9546232
Sent from the Php - Soap mailing list archive at Nabble.com.

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux