Calling Generated PHP code.

8 views
Skip to first unread message

Joshua

unread,
Mar 4, 2010, 11:08:47 PM3/4/10
to RISE
Can you please point me to a working "hello world" style example of
how to call the generated PHP code from my existing PHP code?

The following attempt produced the error shown below:

<?php
include "ML.WS.IVisitor.php";
$Test=new MLWSIVisitor();
$Test->NewVisitor("222");
?>

Fatal error: Non-static method mysqli::init() cannot be called
statically, assuming $this from incompatible context in P:\GateKeeper
\services\StarRise\ML.WS.IVisitor.php on line 13

Call Stack:
0.0563 58344 1. {main}() P:\GateKeeper\services\StarRise
\AddVisitor.php:0
3.7743 1358688 2. MLWSIVisitor->NewVisitor(???) P:\GateKeeper
\services\StarRise\AddVisitor.php:4

Joar Swenning

unread,
Mar 5, 2010, 7:56:38 AM3/5/10
to RISE
Hi Joshua,
I think the problem is that you are trying to include the actual web
service "ML.WS.IVisitor.php". Which can be called (thru SOAP over the
net) but not included.
If you instead include "ML.DB.IVisitor.php" it should work, I believe.
You can check in "ML.WS.IVisitor.php" how to do it.

However; if what you want to do is to make the SOAP call from your own
PHP solution to the generated solution you should not include our code
but rather implement a SOAP client in PHP (which there is built-in
support for).

Hope this helped,
Joar

Reply all
Reply to author
Forward
0 new messages