Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
my first demo for sca php has something wrong,help!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
jackyrong  
View profile   Translate to Translated (View Original)
 More options 19 Feb, 03:18
From: jackyrong <jackyr...@tom.com>
Date: Wed, 18 Feb 2009 19:18:43 -0800 (PST)
Local: Thurs 19 Feb 2009 03:18
Subject: 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';

/**
 * @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 = 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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 20 Feb, 06:48
From: jackyrong <jackyr...@tom.com>
Date: Thu, 19 Feb 2009 22:48:33 -0800 (PST)
Local: Fri 20 Feb 2009 06:48
Subject: 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...@tom.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 20 Feb, 01:35
From: jackyrong <jackyr...@tom.com>
Date: Thu, 19 Feb 2009 17:35:46 -0800 (PST)
Local: Fri 20 Feb 2009 01:35
Subject: 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...@tom.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Peters  
View profile   Translate to Translated (View Original)
 More options 4 Mar, 18:41
From: Matthew Peters <matthew.f.pet...@googlemail.com>
Date: Wed, 4 Mar 2009 10:41:52 -0800 (PST)
Local: Wed 4 Mar 2009 18:41
Subject: 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...@tom.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 5 Mar, 08:16
From: jackyrong <jackyr...@tom.com>
Date: Thu, 5 Mar 2009 00:16:42 -0800 (PST)
Local: Thurs 5 Mar 2009 08:16
Subject: 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>
- <xs:complexType name="address">
- <xs:sequence>
  <xs:element minOccurs="0" name="street" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:schema>
- <xs:schema attributeFormDefault="qualified"
elementFormDefault="unqualified" targetNamespace="http://
service.tuscanytest.com/" xmlns:xs="http://www.w3.org/2001/
XMLSchema">
- <xs:element name="getAllResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" nillable="true"
type="xs:anyType" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="getAll">
  <xs:complexType />
  </xs:element>
  </xs:schema>
  </wsdl:types>
- <wsdl:message name="getAllResponse">
  <wsdl:part name="getAllResponse" element="tns:getAllResponse" />
  </wsdl:message>
- <wsdl:message name="getAll">
  <wsdl:part name="getAll" element="tns:getAll" />
  </wsdl:message>
- <wsdl:portType name="IUserservice">
- <wsdl:operation name="getAll">
  <wsdl:input message="tns:getAll" />
  <wsdl:output message="tns:getAllResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="IUserserviceBinding" type="tns:IUserservice">
  <SOAP:binding style="document" transport="http://
schemas.xmlsoap.org/
soap/http" />
- <wsdl:operation name="getAll">
  <SOAP:operation />
- <wsdl:input>
  <SOAP:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <SOAP:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="IUserserviceService">
- <wsdl:port name="IUserservicePort"
binding="tns:IUserserviceBinding">
  <SOAP:address location="http://172.16.18.15:8085/tuscanytest/
UserService" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

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())
 {

 echo($arr["name"]);
 }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 10 Mar, 02:24
From: jackyrong <jackyr...@tom.com>
Date: Mon, 9 Mar 2009 19:24:51 -0700 (PDT)
Local: Tues 10 Mar 2009 02:24
Subject: Re: my first demo for sca php has something wrong,help!

no one help me?

On 3月5日, 下午4时16分, jackyrong <jackyr...@tom.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dalibor Andzakovic  
View profile   Translate to Translated (View Original)
 More options 10 Mar, 10:08
From: Dalibor Andzakovic <Dalibor.Andzako...@swerve.co.nz>
Date: Tue, 10 Mar 2009 23:08:56 +1300
Local: Tues 10 Mar 2009 10:08
Subject: Re: [phpsoa] 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" <jackyr...@tom.com> wrote:

greeting_service  = SCA::getService('http://172.16.18.15:8085/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 11 Mar, 06:54
From: jackyrong <jackyr...@tom.com>
Date: Tue, 10 Mar 2009 23:54:42 -0700 (PDT)
Local: Wed 11 Mar 2009 06:54
Subject: 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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Peters  
View profile   Translate to Translated (View Original)
 More options 11 Mar, 18:58
From: Matthew Peters <matthew.f.pet...@googlemail.com>
Date: Wed, 11 Mar 2009 11:58:52 -0700 (PDT)
Local: Wed 11 Mar 2009 18:58
Subject: 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...@tom.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 12 Mar, 08:08
From: jackyrong <jackyr...@tom.com>
Date: Thu, 12 Mar 2009 01:08:33 -0700 (PDT)
Local: Thurs 12 Mar 2009 08:08
Subject: 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...@googlemail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 27 Mar, 17:29
From: jackyrong <jackyr...@tom.com>
Date: Fri, 27 Mar 2009 10:29:51 -0700 (PDT)
Local: Fri 27 Mar 2009 17:29
Subject: Re: my first demo for sca php has something wrong,help!
still can not work

On 3月12日, 下午4时08分, jackyrong <jackyr...@tom.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jackyrong  
View profile   Translate to Translated (View Original)
 More options 10 May, 09:59
From: jackyrong <jackyr...@gmail.com>
Date: Sun, 10 May 2009 01:59:30 -0700 (PDT)
Local: Sun 10 May 2009 09:59
Subject: Re: my first demo for sca php has something wrong,help!
still can not work!help

On 3月28日, 上午1时29分, jackyrong <jackyr...@tom.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google