Re: soap client error

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

 



I ran into the same problem trying to convert my PHP4/PEAR::SOAP-0.8RC3
scripts to PHP5-RC2/ext/soap.

This is the error I get: [WSDL] SOAP-ERROR: Parsing Schema: unexpected in
simpleType

Apparently it's got something to do with simpleTypes, as the working example
you provided doesn't have a simpleType. Maybe it's a coincedence but the
WSDL I'm trying to use also is a jboss one (then again, I don't know nothing
about SOAP servers, I just use clients to connect to them :). Sorry, can't
provide WSDL URL, NDA-ed stuff :-)

JW


"Randy Heiland" <heiland@indiana.edu> wrote in message
002901c42e2e$13e562f0$0728fea9@escher">news:002901c42e2e$13e562f0$0728fea9@escher...
> 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