From: <Joh...@no...> - 2004-01-26 23:35:28
|
Hi All, I'd like to use a simpleType like the following: <simpleType name="productType"> <xsd:restriction base='xsd:string'> <enumeration value='time-series'/> <enumeration value='glance'/> <enumeration value='digital-tabular'/> <enumeration value='digital-zone'/> </xsd:restriction> </simpleType> I have used the addComplexType method (see below) and was wondering if there was a similar method for adding a simpleType. Assuming there is, what are the arguments needed to call it? In advance, thanks for your help, John $server->wsdl->addComplexType('weatherParametersType', 'complexType', 'struct', 'all', '', array('maxt' => array('name' => 'maxt', 'type' => 'xsd:boolean'), 'mint' => array('name' => 'mint', 'type' => 'xsd:boolean'), 'temp' => array('name' => 'temp', 'type' => 'xsd:boolean'), 'dew' => array('name' => 'dew', 'type' => 'xsd:boolean'), 'pop12' => array('name' => 'pop12', 'type' => 'xsd:boolean'), 'qpf' => array('name' => 'qpf', 'type' => 'xsd:boolean'), 'sky' => array('name' => 'sky', 'type' => 'xsd:boolean'), 'snow' => array('name' => 'snow', 'type' => 'xsd:boolean'), 'wspd' => array('name' => 'wspd', 'type' => 'xsd:boolean'), 'wdir' => array('name' => 'wdir', 'type' => 'xsd:boolean'), 'wx' => array('name' => 'wx', 'type' => 'xsd:boolean'), 'waveh' => array('name' => 'waveh', 'type' => 'xsd:boolean'))); // Expose the function to retrieve the NDFD data $server->register('NDFDgen', array('latitude' => 'xsd:decimal', 'longitude' => 'xsd:decimal', 'product' => 'xsd:string', 'weatherParameters' => 'tns:weatherParametersType'), array('xmlOut' => 'xsd:string'), 'http://www.nws.noaa.gov/mdl/XML/DWMLgen/wsdl/ndfdXML. wsdl', 'http://www.nws.noaa.gov/mdl/XML/DWMLgen/wsdl/ndfdXML. wsdl#NDFDgen', 'rpc', 'encoded', 'Returns National Weather Service digital weather forecast data'); |