PEAR::SOAP and SOAPpy
| From: | Martin Hicks | Date: | Wed, 26 Feb 2003 01:58:48 +0000 |
| Subject: | PEAR::SOAP and SOAPpy | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-440@lists.php.net to get a copy of this message | ||
Has anyone tried to get PEAR::SOAP to talk to SOAPpy?
I'm interested in getting this working, I'm just not sure how to go about it.
I've got a soap service written in SOAPpy that I'd like to access through PHP.
I was also unable to get my PEAR::SOAP client to do a wire-dump of the XML. I
tried the following:
#!/usr/bin/php
<?php
require_once('SOAP/Client.php');
$endpoint = 'http://socrates/~mort/test/server.php';
$sc = new SOAP_Client($endpoint);
$sc->trace=1;
$method = 'test_soap';
$params = array('p_one' => 1, 'p_two' => 'two');
$options = array('namespace'=>'urn:SOAP_test', 'trace'=>1);
$res = $sc->call($method, $params, $options);
print_r($res);
print("\n");
#print_r($sc->xml);
echo "\n";
?>
I was hoping that the "$sc->trace=1" would make a wiredump come out, but it
doesn't seem to have any effect. The resulting output is:
[mort@socrates test]$ php ./test.php
X-Powered-By: PHP/4.2.2
Content-type: text/html
You sent p_one='1' & p_two='two'
TIA,
mh
--
Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE
plato up 11 days, 5:45, 19 users, load average: 0.16, 0.09, 0.02
Great Spirits have always encountered opposition from mediocre minds
-Albert Einstein