xref: /PHP-8.3/ext/soap/tests/server012.phpt (revision 5f3e6e34)
1--TEST--
2SOAP Server 12: WSDL generation
3--SKIPIF--
4<?php
5if (PHP_OS_FAMILY === "Windows") {
6    die("skip currently unsupported on Windows");
7}
8?>
9--EXTENSIONS--
10soap
11--GET--
12WSDL
13--ENV--
14LSAN_OPTIONS=detect_leaks=0
15--FILE--
16<?php
17function Add($x,$y) {
18  return $x+$y;
19}
20
21$server = new soapserver(null,array('uri'=>"http://testuri.org"));
22$server->addfunction("Add");
23$server->handle();
24echo "ok\n";
25?>
26--EXPECT--
27<?xml version="1.0" encoding="UTF-8"?>
28<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>
29