<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>13 Jun 2016 07:00:00 Z</lastBuildDate><pubDate>13 Jun 2016 07:00:00 Z</pubDate><description>I cannot get either WD21 or WB21 to successfully generate a WebService if it contains any Procedures that have Optional Parameters.&#13;
&#13;
For example this test Procedure cannot be now turned into a Wx21 WebService:&#13;
&#13;
PROCEDURE AddTwoNumbers(FirstNumber, SecondNumber = 3)&#13;
nAnswer is int&#13;
nAnswer = FirstNumber + SecondNumber&#13;
RESULT nAnswer&#13;
&#13;
&#13;
The Wx21 WebService generation process stops just prior to making the WSDL with the following error message:&#13;
"The 'SecondNumber' parameter of the 'AddTwoNumbers' procedure is optional. Make it mandatory in order to generate the WSDL."&#13;
&#13;
Earlier versions of Wx generate the WebService for this Procedure correctly. Wx21 can be forced to generate the WebService correctly, but only if the Optional Parameter of 3 for SecondNumber is removed.&#13;
&#13;
How do I get Procedures with Optional Parameters to generate as Wx21 WebServices?</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58081-wx21-websevices-longer-generate-containing-optional-parameters/read.awp</link><title>Wx21 WebSevices no longer generate if containing Optional Parameters</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
