RE: [SOAP] Generate PHP Code from WSDL Document
| From: | James Nunnerley | Date: | Fri, 21 Nov 2003 10:02:56 +0000 |
| Subject: | RE: [SOAP] Generate PHP Code from WSDL Document | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1162@lists.php.net to get a copy of this message | ||
Mike,
Where can I get the "SOAP/WSDL.php" file from? Or what is it?
Nunners
-----Original Message-----
From: Mike Carter [mailto:mikeatwork@ukonline.co.uk]
Sent: 20 November 2003 16:53
To: 'Arne Kösling'; soap@lists.php.net
Subject: RE: [SOAP] Generate PHP Code from WSDL Document
> -----Original Message-----
> From: Arne Kösling [mailto:phphelp@koesling.net]
>
> ok, first of all, thanx for the help on my other questions. I
> am thankful to
> every person,
> who spends some of his time and cares about the questions of
> the newbies and
> rookies :)
>
> My question is :
>
> Is there a working tool / code that converts a WSDL Document
> into php Code,
> so that I can use that to implement my Code ?
Try this:
require_once('SOAP/WSDL.php');
$wsdl = new SOAP_WSDL($wsdlurl);
$origcode = $wsdl->generateProxyCode();
print "<pre>".$origcode."</pre>";
Regards,
Mike C.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php