O grupo no qual você está postando é um grupo da Usenet. As mensagens postadas neste grupo farão com que o seu e-mail fique visível para qualquer pessoa na internet.
//$wsdl = file_get_contents('http://localhost:8082/myphp/ helloworldscawsreference/Greeting.wsdl');
//file_put_contents("service.wsdl",$wsdl); //write the wsdl to a file
$service=SCA::
?>
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
> ?>
> 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
> ?>
> 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
Hi Jacky,
sorry you had difficulties. You did everything right. If I try out
your example the sytax is all just fine.
I can sort of see what is going wrong without knowing straightaway how
to fix it.
The error message says that xmlSAXUserParseFile returned an error.
This is a routine in the libxml code that we use to do all the XML
parsing.
libxml is a piece of open source code that gets built into php. libxml
is here -> http://xmlsoft.org/ and you can see that it is built into
php when you do phpinfo() - look in the extensions and you'll see
libxml.
On our WinXP systems the versions of php we have mostly use libxml2
version 2.6.26. I guess that either the php you have is using 2.6.26
and that does not like Vista, or the version of PHP you have is using
a different libxml. Take a look in phpinfo() and tell us what version
you see.
Matthew
On Feb 20, 1:35 am, jackyrong <jackyr...@tom.com> wrote:
thank you very much,and i already reinstall my os system,and now is
win2003,and it's is fine,
but another question is :when i use the php sca to reference the wsdl
which generated by apache tuscany sca,
the php can not get the result,even the sample is helloworld,why?
and this is the wsdl which generated by apache tuscany sca:
when i use php to call it,i use the code :
include 'SCA/SCA.php';
$greeting_service = SCA::getService('http://172.16.18.15:8085/ tuscanytest/UserService?wsdl');
while ($arr=$greeting_service->getAll())
{
> thank you very much,and i already reinstall my os system,and now is
> win2003,and it's is fine,
> but another question is :when i use the php sca to reference the wsdl
> which generated by apache tuscany sca,
> the php can not get the result,even the sample is helloworld,why?
> and this is the wsdl which generated by apache tuscany sca:
> when i use php to call it,i use the code :
> include 'SCA/SCA.php';
> $greeting_service = SCA::getService('http://172.16.18.15:8085/ > tuscanytest/UserService?wsdl');
> while ($arr=$greeting_service->getAll())
> {
Jacky,
just a quick note to let you know I am looking at this one. I am
making up a simple php UserService.php that will generate wsdl close
to what you have below. I will post a working example when I have it.
Thanks to dali for spotting you need the 'soap' argument.
Matthew
On Mar 11, 6:54 am, jackyrong <jackyr...@tom.com> wrote:
because i use the PHP SCA to reference a wsdl made by TUSCANY SCA
JAVA,it can not work,
and I notice that there is two files in PEAR\SCA\Bindings\tuscany,but
I don't know how to use it
On 3月12日, 上午2时58分, Matthew Peters <matthew.f.pet...@googlemail.com>
wrote:
> Jacky,
> just a quick note to let you know I am looking at this one. I am
> making up a simple php UserService.php that will generate wsdl close
> to what you have below. I will post a working example when I have it.
> Thanks to dali for spotting you need the 'soap' argument.
> Matthew
> On Mar 11, 6:54 am, jackyrong <jackyr...@tom.com> wrote:
> > it still can not work!it shows "The page cannot be displayed"
> Thank you very much,but I am so curious about it,
> because i use the PHP SCA to reference a wsdl made by TUSCANY SCA
> JAVA,it can not work,
> and I notice that there is two files in PEAR\SCA\Bindings\tuscany,but
> I don't know how to use it
> On 3月12日, 上午2时58分, Matthew Peters <matthew.f.pet...@googlemail.com>
> wrote:
> > Jacky,
> > just a quick note to let you know I am looking at this one. I am
> > making up a simple php UserService.php that will generate wsdl close
> > to what you have below. I will post a working example when I have it.
> > Thanks to dali for spotting you need the 'soap' argument.
> > Matthew
> > On Mar 11, 6:54 am, jackyrong <jackyr...@tom.com> wrote:
> > > it still can not work!it shows "The page cannot be displayed"
> On 3月12日, 下午4时08分, jackyrong <jackyr...@tom.com> wrote:
> > Thank you very much,but I am so curious about it,
> > because i use the PHP SCA to reference a wsdl made by TUSCANY SCA
> > JAVA,it can not work,
> > and I notice that there is two files in PEAR\SCA\Bindings\tuscany,but
> > I don't know how to use it
> > On 3月12日, 上午2时58分, Matthew Peters <matthew.f.pet...@googlemail.com>
> > wrote:
> > > Jacky,
> > > just a quick note to let you know I am looking at this one. I am
> > > making up a simple php UserService.php that will generate wsdl close
> > > to what you have below. I will post a working example when I have it.
> > > Thanks to dali for spotting you need the 'soap' argument.
> > > Matthew
> > > On Mar 11, 6:54 am, jackyrong <jackyr...@tom.com> wrote:
> > > > it still can not work!it shows "The page cannot be displayed"