soap client error

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

 



Can someone tell me why the following script (PHP5-RC2) fails?

<html>
 <head>
  <title>PDB client</title>
 </head>
 <body>
 <?php 
 // This client works...
// $client = new
SoapClient("http://services.xmethods.net/soap/urn:xmethods-delayed-quote
s.wsdl");
// print($client->getQuote("ibm"));

 // But not this...
// $client = new
SoapClient("http://alpha.rcsb.org/jboss-net/services/pdbWebService";);
 $client = new
SoapClient("http://alpha.rcsb.org/jboss-net/services/pdbWebService?wsdl";
);
// $ret = $client->pubmedAbstractQuery("luciferase");
 ?>

</body>
</html>


This Perl client works fine:

use SOAP::Lite;
$url = 'http://alpha.rcsb.org/'
      .'jboss-net/services/pdbWebService';
$ids_ref = SOAP::Lite
        -> uri($url) -> proxy($url)
        -> pubmedAbstractQuery($ARGV[0])
        -> result;
@ids = @{$ids_ref};
print "@ids\n";


% ./ws_test.pl luciferase
1AMU 1BA3 1BKJ 1BRL 1BSL 1EZW 1F07 1H88 1H89 1H8A 1IZY 1IZZ 1J42 1LCI 
1LUC 1LX5 1LXI 1M41 1NFP 1PG3 1PG4 1RY2 1XKJ

thanks,
--Randy

-- 
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