jackyrong | 19 Feb 2009 04:18
Favicon

my first demo for sca php has something wrong,help!


i just write my first demo for sca php,helloworld,the code is:

include 'SCA/SCA.php';

/**
 *  <at> service
 *  <at> binding.soap
 */
class Greeting
{
    /**
      *  <at> param string $name
      *  <at> 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';

(Continue reading)

jackyrong | 20 Feb 2009 02:35
Favicon

Re: my first demo for sca php has something wrong,help!


it is so crazy that i run it on wi2003 server,it is ok!but can not run
in visita!

On 2月19日, 上午11时18分, jackyrong <jackyr... <at> tom.com> wrote:
> i just write my first demo for sca php,helloworld,the code is:
>
> include 'SCA/SCA.php';
>
> /**
>  *  <at> service
>  *  <at> binding.soap
>  */
> class Greeting
> {
>     /**
>       *  <at> param string $name
>       *  <at> 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:
(Continue reading)

Matthew Peters | 4 Mar 2009 19:41

Re: my first demo for sca php has something wrong,help!


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...@...> wrote:
> it is so crazy that i run it on wi2003 server,it is ok!but can not run
> in visita!
>
> On 2月19日, 上午11时18分, jackyrong <jackyr... <at> tom.com> wrote:
(Continue reading)

jackyrong | 5 Mar 2009 09:16
Favicon

Re: my first demo for sca php has something wrong,help!


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:

 use java create a wsdl which published in Tomcat 6,the wsdl is:
 <?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="IUserserviceService"
targetNamespace="http://
service.tuscanytest.com/" xmlns:tns="http://service.tuscanytest.com/"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://
www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/
wsdl/">
- <wsdl:types>
- <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/
XMLSchema">
- <xs:complexType name="user">
- <xs:sequence>
  <xs:element minOccurs="0" name="address" type="address" />
  <xs:element minOccurs="0" name="id" type="xs:string" />
  <xs:element minOccurs="0" name="name" type="xs:string" />
  <xs:element minOccurs="0" name="password" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
(Continue reading)

jackyrong | 10 Mar 2009 03:24
Favicon

Re: my first demo for sca php has something wrong,help!


no one help me?

On 3月5日, 下午4时16分, jackyrong <jackyr...@...m> 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:
>
>  use java create a wsdl which published in Tomcat 6,the wsdl is:
>  <?xml version="1.0" encoding="UTF-8" ?>
> - <wsdl:definitions name="IUserserviceService"
> targetNamespace="http://
> service.tuscanytest.com/" xmlns:tns="http://service.tuscanytest.com/"
> xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/
> wsdl/">
> - <wsdl:types>
> - <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/
> XMLSchema">
> - <xs:complexType name="user">
> - <xs:sequence>
>   <xs:element minOccurs="0" name="address" type="address" />
>   <xs:element minOccurs="0" name="id" type="xs:string" />
>   <xs:element minOccurs="0" name="name" type="xs:string" />
>   <xs:element minOccurs="0" name="password" type="xs:string" />
(Continue reading)

Dalibor Andzakovic | 10 Mar 2009 11:08
Picon

Re: my first demo for sca php has something wrong,help!

$greeting_service  = SCA::getService('http://172.16.18.15:8085/tuscanytest/UserService?wsdl', ‘soap’);

HTH

dali

On 10/03/09 3:24 PM, "jackyrong" <jackyrong-WVlzvzqoTvw@public.gmane.org> wrote:

greeting_service  = SCA::getService('http://172.16.18.15:8085/
> tuscanytest/UserService?wsdl');

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "phpsoa" group.
To post to this group, send email to phpsoa <at> googlegroups.com
To unsubscribe from this group, send email to phpsoa+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at http://groups.google.co.uk/group/phpsoa?hl=en
-~----------~----~----~----~------~----~------~--~---

jackyrong | 11 Mar 2009 07:54
Favicon

Re: my first demo for sca php has something wrong,help!


it still can not work!it shows "The page cannot be displayed"

On 3月10日, 下午6时08分, Dalibor Andzakovic
<Dalibor.Andzako...@...> wrote:
> $greeting_service  =
SCA::getService('http://172.16.18.15:8085/tuscanytest/UserService?wsdl', 'soap');
>
> HTH
>
> dali
>
> On 10/03/09 3:24 PM, "jackyrong" <jackyr...@...> wrote:
>
> greeting_service  = SCA::getService('http://172.16.18.15:8085/
>
>
>
> > tuscanytest/UserService?wsdl');- 隐藏被引用文字 -
>
> - 显示引用的文字 -
Matthew Peters | 11 Mar 2009 19:58

Re: my first demo for sca php has something wrong,help!


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...@...> wrote:
> it still can not work!it shows "The page cannot be displayed"
>
> On 3月10日, 下午6时08分, Dalibor Andzakovic
>
> <Dalibor.Andzako...@...> wrote:
> > $greeting_service  =
SCA::getService('http://172.16.18.15:8085/tuscanytest/UserService?wsdl', 'soap');
>
> > HTH
>
> > dali
>
> > On 10/03/09 3:24 PM, "jackyrong" <jackyr...@...> wrote:
>
> > greeting_service  = SCA::getService('http://172.16.18.15:8085/
>
> > > tuscanytest/UserService?wsdl');- 隐藏被引用文字 -
>
> > - 显示引用的文字 -
jackyrong | 12 Mar 2009 09:08
Favicon

Re: my first demo for sca php has something wrong,help!


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...@...>
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...@...> wrote:
>
>
>
> > it still can not work!it shows "The page cannot be displayed"
>
> > On 3月10日, 下午6时08分, Dalibor Andzakovic
>
> > <Dalibor.Andzako...@...> wrote:
> > > $greeting_service  =
SCA::getService('http://172.16.18.15:8085/tuscanytest/UserService?wsdl', 'soap');
>
> > > HTH
>
> > > dali
>
> > > On 10/03/09 3:24 PM, "jackyrong" <jackyr...@...> wrote:
>
> > > greeting_service  = SCA::getService('http://172.16.18.15:8085/
>
> > > > tuscanytest/UserService?wsdl');- 隐藏被引用文字 -
>
> > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -
jackyrong | 27 Mar 2009 18:29
Favicon

Re: my first demo for sca php has something wrong,help!


still can not work

On 3月12日, 下午4时08分, jackyrong <jackyr... <at> 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...@...>
> 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...@...> wrote:
>
> > > it still can not work!it shows "The page cannot be displayed"
>
> > > On 3月10日, 下午6时08分, Dalibor Andzakovic
>
> > > <Dalibor.Andzako...@...> wrote:
> > > > $greeting_service  =
SCA::getService('http://172.16.18.15:8085/tuscanytest/UserService?wsdl', 'soap');
>
> > > > HTH
>
> > > > dali
>
> > > > On 10/03/09 3:24 PM, "jackyrong" <jackyr...@...> wrote:
>
> > > > greeting_service  = SCA::getService('http://172.16.18.15:8085/
>
> > > > > tuscanytest/UserService?wsdl');- 隐藏被引用文字 -
>
> > > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -
jackyrong | 10 May 2009 10:59
Picon

Re: my first demo for sca php has something wrong,help!


still can not work!help

On 3月28日, 上午1时29分, jackyrong <jackyr... <at> tom.com> wrote:
> still can not work
>
> On 3月12日, 下午4时08分, jackyrong <jackyr... <at> 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...@...>
> > 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...@...> wrote:
>
> > > > it still can not work!it shows "The page cannot be displayed"
>
> > > > On 3月10日, 下午6时08分, Dalibor Andzakovic
>
> > > > <Dalibor.Andzako...@...> wrote:
> > > > > $greeting_service  =
SCA::getService('http://172.16.18.15:8085/tuscanytest/UserService?wsdl', 'soap');
>
> > > > > HTH
>
> > > > > dali
>
> > > > > On 10/03/09 3:24 PM, "jackyrong" <jackyr...@...> wrote:
>
> > > > > greeting_service  = SCA::getService('http://172.16.18.15:8085/
>
> > > > > > tuscanytest/UserService?wsdl');- 隐藏被引用文字 -
>
> > > > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -

jackyrong | 20 Feb 2009 07:48
Favicon

Re: my first demo for sca php has something wrong,help!


it's so crazy,i run it on win2003,that's ok,all code,apache,php,are
the same

On 2月19日, 上午11时18分, jackyrong <jackyr... <at> tom.com> wrote:
> i just write my first demo for sca php,helloworld,the code is:
>
> include 'SCA/SCA.php';
>
> /**
>  *  <at> service
>  *  <at> binding.soap
>  */
> class Greeting
> {
>     /**
>       *  <at> param string $name
>       *  <at> 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 = file_get_contents('http://localhost:8082/myphp/
> helloworldscawsreference/Greeting.wsdl');
> //file_put_contents("service.wsdl",$wsdl); //write the wsdl to a file
> $service=SCA::
>
> $greeting_service  = 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


Gmane