Annotation of embedaddon/php/ext/soap/tests/server012.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SOAP Server 12: WSDL generation
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --GET--
                      6: WSDL
                      7: --FILE--
                      8: <?php
                      9: function 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();
                     16: echo "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>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>