×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

wsdl2php - PHP Class Generator

wsdl2php - PHP Class Generator

wsdl2php - PHP Class Generator

(OP)
I have come across this tool and have decided to give it a try. I most say, very nice gadget but, I cannot figure out what to do with the classes it generated.

I used composer to install it - I then ran this script

CODE

include 'vendor/autoload.php';
$generator = new \Wsdl2PhpGenerator\Generator();
$generator->generate(
    new \Wsdl2PhpGenerator\Config(array(
        'inputFile' => 'https://connect16.basyspro.net/connect.asmx?WSDL',
        'outputDir' => 'classes/basys'
    ))
); 

I now have a number of PHP scripts (Classes) in classes/basys. Question is, now what? how do I use them?

I like to think that all I have to do is include "classes/basys/autoload.php" and start calling the classes but really, I'm not exactly sure about this.

Are you familiar with wsdl2phpgenerator?

Any and all suggestions will be greatly appreciated.



--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.

RE: wsdl2php - PHP Class Generator

(OP)
OK, so I was correct in that all I needed to do was include the autoload.php script with a minor exception.

Here is how it works:
(a) I renamed autoload.php to basys.php so, include basys.php, which in turn, will load all subsequent classes
(b) I instantiated each class I needed to work with and, well, here is a sample

CODE

$link = new Connect();
$trx = new Transaction();

/* set the parameter values */
$trx->setSyn_Act('');
$trx->setSyn_Pwd('');
...
...
...
$send = new Submit($trx);
$resp = $link->Submit($send); 
Now, I have successfully captured the results ... Hope this helps the next guy/gal!

--
SouthBeach
http://www.fp2php.com
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close