convert perl client code to php - OT
| From: | Jesse Thompson | Date: | Fri, 08 Aug 2003 17:15:55 +0000 |
| Subject: | convert perl client code to php - OT | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-935@lists.php.net to get a copy of this message | ||
Does anyone know how I would convert the following perl SOAP call to php? (using Pear SOAP, not using wsdl, and we are using signed client side certificates).
#!perl -w
use SOAP::Lite;
$ENV{HTTPS_CERT_FILE} = 'dmailtest1.crt';
$ENV{HTTPS_KEY_FILE} = 'dmailtest1.key';
#$ENV{HTTPS_CA_FILE} = '';
#$ENV{HTTPS_DEBUG} = 9999999;
my $soap = SOAP::Lite
->uri('https://host.domain/UWDS/WSTest')
->proxy('https://host.domain/ApacheSoap');
my $result = $soap->Test(data=>"Jeremy");
unless ($result->fault) {
print $result->result() . "\n";
} else {
print join ', ',
$result->faultcode,
$result->faultstring;
die;
}