Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // server.php
- class MyClass {
- public function helloWorld(){
- return 'Hello, ' . implode(" ",func_get_args()) . '!';
- }
- }
- try{
- $server = new SOAPServer(
- NULL,
- array(
- 'uri' => 'http://localhost/soa/soap_hello/server.php'
- )
- );
- $server->setClass('MyClass');
- $server->handle();
- }
- catch (SOAPFault $f){
- print $f->faultstring;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement