Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion my first demo for sca php has something wrong,help!
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.

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