PLEASE HOW CONFIG

174 views
Skip to first unread message

cce...@gmail.com

unread,
Jan 3, 2018, 10:57:10 PM1/3/18
to wsdl2phpgenerator
Hi,guys

I am new in php oop and wsdl2phpgenerator

How do i start a project in wsdl2phpgenerator

<?php

// i dont have to call a require here , before object ??

$generator = new \Wsdl2PhpGenerator\Generator();
$generator->generate(
new \Wsdl2PhpGenerator\Config(array(
'inputFile' => 'filename.wsdl',
'outputDir' => '/tmp/Output'
))
);

Please . I dont understand how set up . Thank you .

Eric Keyte

unread,
Mar 13, 2018, 1:40:52 AM3/13/18
to wsdl2phpgenerator
You should look at using PSR-4 autoloading. Have you tried using Composer to bring this project in?

Check out getcomposer.org. There's a built-in autoloader. If you are not familiar with this, check out this video: https://www.youtube.com/watch?v=VGSerlMoIrY

java...@gmail.com

unread,
May 4, 2018, 11:30:42 AM5/4/18
to wsdl2phpgenerator
After installed by composer, there will be wsdl2phpgenerator package downloaded to the vendor folder under your web root path and the autoload.php in the vendor folder will be updated to include wsdl2phpgenerator library.

In your php program, you need to import this autoload.php, for example, require_once('../vendor/autoload.php'); Then you can use Wsdl2PhpGenerator class.
Wsdl2PhpGenerator works for me. it can generate all the classes from WSDL. Perfect.

Reply all
Reply to author
Forward
0 new messages