Sounds like he wants to have a web service as a frontend for something like this:
Public static final int TYPE_A = 1; Public static final int TYPE_B = 2; Void foo(int type) And have the XML Schema note or restrict the caller somehow to only passing 1 or 2 into foo. Look into XML Schema and its provisions for datatype restrictions. mike -----Original Message----- From: Hansen, Richard [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:23 PM To: '[EMAIL PROTECTED]' Subject: RE: Can constants be declared in WSDL? Constants? If they are constants why would they be parameterized. If you mean "default", then yes, you can do that with xml schema. You should be able to sue anything in your type definitions that you can do with XML schema. Whether any WSDL tool would use the information or not is questionable. > -----Original Message----- > From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 23, 2003 4:09 AM > To: [EMAIL PROTECTED] > Subject: Can constants be declared in WSDL? > > > Hi all, > > Most of my custom types have constant declarations for > certain parameters. > Is there any way to include them in a WSDL descriptor? > > Thanks in advance, > -- > GRIDSYSTEMS Rodrigo Ruiz Aguayo > Parc Bit - Son Espanyol Analista Programador > 07120 Palma de Mallorca [EMAIL PROTECTED] > Baleares - Espa�a Tel:+34-971435085 > www.gridsystems.com Fax:+34-971435082 >
