server012.phpt 575 B

1234567891011121314151617181920
  1. --TEST--
  2. SOAP Server 12: WSDL generation
  3. --EXTENSIONS--
  4. soap
  5. --GET--
  6. WSDL
  7. --FILE--
  8. <?php
  9. function Add($x,$y) {
  10. return $x+$y;
  11. }
  12. $server = new soapserver(null,array('uri'=>"http://testuri.org"));
  13. $server->addfunction("Add");
  14. $server->handle();
  15. echo "ok\n";
  16. ?>
  17. --EXPECT--
  18. <?xml version="1.0" encoding="UTF-8"?>
  19. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>WSDL generation is not supported yet</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>