xref: /PHP-5.5/ext/soap/tests/server012.phpt (revision 50827378)
1--TEST--
2SOAP Server 12: WSDL generation
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--GET--
6WSDL
7--FILE--
8<?php
9function Add($x,$y) {
10  return $x+$y;
11}
12
13$server = new soapserver(null,array('uri'=>"http://testuri.org"));
14$server->addfunction("Add");
15$server->handle();
16echo "ok\n";
17?>
18--EXPECT--
19<?xml version="1.0" encoding="UTF-8"?>
20<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>
21