> Anyway,   so here's an example in that article:

That looks overly complex for what you're doing.  The PHP PEAR libraries
provide a nice and simple way of using a web service when you've got the
WSDL for it, so you don't need to worry about all the SOAP stuff (name
spaces etc) directly.

I've just knocked this together (modified from the example at
http://short.badpen.com/?2R5U89RN) - I don't have a PHP server with PEAR
installed so I can't actually test it, but there's no reason I can see
that it shouldn't work.  It doesn't do anything with the returned data
other than dump it all out, but it's a better start than nothing!

Of course it won't work until your server starts serving up the WSDL
instead of the actual CFC, and you need a PHP server with the SOAP
libraries installed...  ;)

<?
// include the appropriate SOAP client functions etc
require_once 'SOAP/Client.php';

// grab the WSDL from the appropriate URL
$wsdl = new
SOAP_WSDL('http://bluegrass.org.au/_cfcs/anniversaries.cfc?wsdl');

// get the proxy object for the WSDL so we can call methods from it
$proxy = $wsdl->getProxy();

// get stuff going on this week
$thisweek = $proxy->getthisweek();

//just dump the object returned for now
print_r ($thisweek);
?>

Hope that's a start...

> How do I tell these PHP folks who wont learn and don't have a
> clue, how to use method getthisweeksevents

Personally, I'd tell them to get off their a*ses and trying doing
something for themselves instead of relying on other people...  *shrug*

Tim.

--
-------------------------------------------------------
<CF_CodingContest mode="judging" newentries="false">
Maze Solver - http://tech.badpen.com/cfcontest/
-------------------------------------------------------
RAWNET LTD - Internet, New Media and ebusiness Gurus.
WE'VE MOVED - for our new address, please visit our
website at http://www.rawnet.com/ or call us any time
on 0800 294 24 24.
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to