RE: [SOAP] Generate PHP Code from WSDL Document
| From: | Mike Carter | Date: | Thu, 20 Nov 2003 16:52:51 +0000 |
| Subject: | RE: [SOAP] Generate PHP Code from WSDL Document | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1161@lists.php.net to get a copy of this message | ||
> -----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
________________________________________________________________________