I got error, when I run test.php file

*Fatal error*: Class 'SoapClient' not found in *C:\Program Files\Apache
Software Foundation\Apache2.2\htdocs\coba.php* on line *3*
What I must do?
2008/9/6 krsyoung <[EMAIL PROTECTED]>

>
> On Sep 6, 2:21 am, "pauline kurniawan" <[EMAIL PROTECTED]>
> wrote:
> > I try simple example fromhttp://dada.pe.kr/464and I got error.
> > this is my error:
> > ============ERROR===============
> > ERROR: Failure: TypeError (Response is "application/soap+xml", not
> > "text/xml")
> >
> [...snip...]
> > can you give me simple example about TGwebservices in server side and
> client
> > side? (I hope in english)
> >
> > thank,
> >
> > -pauline
> >
>
> Maybe give it a shot with the PHP client if you can.  I never had luck
> validating a complex type so here is how I got it to work:
>
> class CodeGeass(WebServicesRoot):
>    @wsexpose(int)
>    @wsvalidate(int, str)
>    def getPerson(self, id, name):
>        person = Person()
>        person.id = id
>        person.name = name
>        return id
>
> Then the test PHP code:
>
> <?php
> ini_set("soap.wsdl_cache_enabled", 0);
> $client = new SoapClient('http://localhost/codegeass/soap/api.wsdl');
>
> $params = array('id'=>5, 'name'='Chris');
>
> print_r($client->__soapCall('getPerson', array('parameters' =>
> $params)));
> ?>
>
> Let's see if the server is functioning properly then we can try to
> focus on the client side.
>  -Chris
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to