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--FILE-- 14<?php 15function Add($x,$y) { 16 return $x+$y; 17} 18 19$server = new soapserver(null,array('uri'=>"http://testuri.org")); 20$server->addfunction("Add"); 21$server->handle(); 22echo "ok\n"; 23?> 24--EXPECT-- 25<?xml version="1.0" encoding="UTF-8"?> 26<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> 27