Message from discussion
my first demo for sca php has something wrong,help!
Mime-Version: 1.0
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable
Received: by 10.100.105.15 with SMTP id d15mr98341anc.29.1235112513958; Thu,
19 Feb 2009 22:48:33 -0800 (PST)
Date: Thu, 19 Feb 2009 22:48:33 -0800 (PST)
In-Reply-To: <cc7a2221-8de6-4661-a50f-1862a56b69c6@w1g2000prk.googlegroups.com>
X-IP: 218.19.67.119
References: <cc7a2221-8de6-4661-a50f-1862a56b69c6@w1g2000prk.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1;
.NET CLR 2.0.50727; .NET CLR 3.0.04506),gzip(gfe),gzip(gfe)
Message-ID: <501c2f7f-e707-42a4-bbf1-8e0dcd1137fa@v35g2000prg.googlegroups.com>
Subject: Re: my first demo for sca php has something wrong,help!
From: jackyrong <jackyr...@tom.com>
To: phpsoa <phpsoa@googlegroups.com>
it's so crazy,i run it on win2003,that's ok,all code,apache,php,are
the same
On 2=D4=C219=C8=D5, =C9=CF=CE=E711=CA=B118=B7=D6, jackyrong <jackyr...@tom.=
com> wrote:
> i just write my first demo for sca php,helloworld,the code is:
>
> include 'SCA/SCA.php';
>
> /**
> * @service
> * @binding.soap
> */
> class Greeting
> {
> /**
> * @param string $name
> * @return string
> */
> public function greet($name)
> {
> return 'hello ' . $name;
> }}
>
> ?>
> and when i run the code above,it generated the wsdl,and the wsdl is:
>
> http://localhost:8082/myphp/helloworldscawsreference/Greeting.wsdl
> and i can use the ie browser to see it.
> the the client code is:
> <?
>
> include 'SCA/SCA.php';
>
> //$wsdl =3D file_get_contents('http://localhost:8082/myphp/
> helloworldscawsreference/Greeting.wsdl');
> //file_put_contents("service.wsdl",$wsdl); //write the wsdl to a file
> $service=3DSCA::
>
> $greeting_service =3D SCA::getService('http://localhost:8082/myphp/
> helloworldscawsreference/Greeting.wsdl');
>
> echo $greeting_service->greet('liaoyurong');
>
> ?>
> but when i runt the code,i wait for a long time,then get the result
> is:
>
> Fatal error: Uncaught SCA_RuntimeException: SDO_Exception in
> setWSDLTypes : SDO_DAS_XML::create - Unable to parse the supplied xsd
> file 1 parse error(s) occurred when parsing the file 'http://localhost:
> 8082/myphp/helloworldscawsreference/Greeting.wsdl': 1.
> xmlSAXUserParseFile returned an error -1 thrown in D:\php5\PEAR\SCA
> \Bindings\soap\Proxy.php on line 104
>
> my php version is php 5.2.8,the run in visita system