[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: WSDL Example for Discussion
As we talked about yesterday please find below information regarding an example WSDL service that I have put up. The service converts temperature and requires a value and a unit as input parameters. The URL of the WSDL is http://chalk.coas.unf.edu:8080/axis2/services/tempConvert?wsdl Example queries are http://chalk.coas.unf.edu:8080/axis2/services/tempConvert/getKelvin?value=25.0&unit=C http://chalk.coas.unf.edu:8080/axis2/services/tempConvert/getKelvin?value=25.00&unit=C http://chalk.coas.unf.edu:8080/axis2/services/tempConvert/getKelvin?value=-300&unit=C You can play around with the other methods getCelcius and getFarenheit and units F and K Attached is an example file with the unitsML WSDLConversionFrom element referencing the WSDL above. (Bob the code references a slightly diferent version of the SimpleSchema I put up) Personally, I think the initialUnit is not required because the pointer is to the generic conversion service not to a method that requires a unit of kelvin as default. Thoughts? Stuart Chalk, Ph.D. Associate Professor of Chemistry Department of Chemistry and Physics University of North Florida 1 UNF Drive Jacksonville FL 32224 P: 904-620-1938 F: 904-620-1989 E: schalk@unf.edu W: http://www.unf.edu/coas/chemphys/
<?xml version="1.0" encoding="UTF-8"?> <SimpleSchemaRoot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://chalk.coas.unf.edu/Schema/SimpleSchema.xsd" xmlns:unitsml="urn:oasis:names:tc:unitsml:schema:xsd:UnitsMLSchema-0.9.17 http://unitsml.nist.gov/Schema/unitsmlSchema-0.9.17.xsd"> <Text>The temperature of the room is:</Text> <Measurement unit="#K" conversion="#tempwsdl"> <NumericValue>298.16</NumericValue> </Measurement> <unitsml:Unit symbolicID="K"> <unitsml:UnitName>kelvin</unitsml:UnitName> <unitsml:Symbol type="ASCII">K</unitsml:Symbol> </unitsml:Unit> <unitsml:Conversions> <unitsml:WSDLConversionFrom id="tempwsdl" wsdlURL="http://chalk.coas.unf.edu:8080/axis2/services/tempConvert?wsdl" initialUnit="gov:nist:unitsdb:kelvin"> <unitsml:WSDLDescription>A Service to convert temperatures. There are three services getCelsius, getKelvin, and getFarenheit. Answers are quoted to the correct significant digits/decimal places.</unitsml:WSDLDescription> </unitsml:WSDLConversionFrom> </unitsml:Conversions> <Text>This is more text.</Text> </SimpleSchemaRoot>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]