OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

unitsml message

[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

Example queries are

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.


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";
    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">
    <unitsml:Unit symbolicID="K">
        <unitsml:Symbol type="ASCII">K</unitsml:Symbol>
        <unitsml:WSDLConversionFrom id="tempwsdl"
            <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>
    <Text>This is more text.</Text>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]