views:

56

answers:

1

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?

+1  A: 

Take a look at Zend's PHP SOAP tutorial. It's quite good.

St. John Johnson