>
> <?php
> include('SOAP/Client.php');
> $SOAPClient = new
SOAP_Client("http://localhost/SOAP/example/server.php");
> $SOAPOptions = array(
> 'namespace'=> 'urn:SOAP_Example_Server',
> 'trace'=>1
> );
> $sEquation = $SOAPclient->call(
> "echoString",
> $params = array("inputString" => "21 divided by 7
equals: "),
> $SOAPOptions
> );
> $sResult = $SOAPclient->call(
> "divide",
> $params = array("dividend" => "21", "divisor" => 7),
> $SOAPOptions
> );
> ?>
> How do I tell these PHP folks who wont learn and don't have a clue,
> how to use method getthisweeksevents from the web service at
> http://bluegrass.org.au/_cfcs/anniversaries.cfc?wsdl
First you make sure the web service at
http://bluegrass.org.au/_cfcs/anniversaries.cfc?wsdl actually works (I
currently download the source of the webservice if I try it).
At first glance, the code should be something like:
<?php
include('SOAP/Client.php');
$SOAPClient = new
SOAP_Client("http://localhost/SOAP/example/server.php");
$SOAPOptions = array(
'namespace'=>
'urn:http://bluegrass.org.au/_cfcs/anniversaries.cfc?wsdl',
'trace'=>1
);
$sResult = $SOAPclient->call(
"getthisweeksevents",
$SOAPOptions
);
?>
> What code do I change? And to what?
Why do you choose to use SOAP here? I would personally go for using
REST and parse the XML using for instance
http://revjim.net/code/xmlParser/
> So .. if I take a stab in the dark at what has to be changed in the
> above, how do I check I'm giving the right instructions???
Install PHP and test it.
> All I ever get to this question is yet another list of URLS.
Maybe consuming web services in PHP is not exactly trivial and people
want to get compensated for writing code.
Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

