Are there any tutorials on Web Service creation with PHP 5?

Posted by Ole Jak on Stack Overflow See other posts from Stack Overflow or by Ole Jak
Published on 2010-03-17T22:42:49Z Indexed on 2010/03/17 22:51 UTC
Read the original article Hit count: 271

Filed under:
|
|
|
|

I mean I want to understrand how to generate WSDL from my code

So I've rote

<?php
  $soap = new SoapServer(null, array('uri' =>
    'http://php.hoshmand.org/'));
  $soap->addFunction('add');
  $soap->handle();

  function add($a, $b) {
    return $a + $b;
  }
?>

How to call it like a WSDL now?

© Stack Overflow or respective owner

Related posts about php

Related posts about soap