Spheon JSOAP Home | Features | Project | Download | Documentation | Webservices | Interop | Links

Spheon JSOAP - Webservices

To test the server implementation of Spheon JSOAP, we set up a a server with a few webservices.
If you find any bugs or incompatibilities, please send me an email.

These services have been discontinued!

The following webservices were online:

ChristmasTree

Name: ChristmasTree
Description: Calculates the number of lights on your christmas tree!

h - the heigth (cm) of your christmas tree
r - the radius (cm) of your christmas tree
l - the radius (cm) of the flare of your lights

SOAP Endpoint URL: http://soap.fmui.de/RPC
SOAP Action: "" (2 double quotes)
Method Namespace: urn:christmas
Method: ChristmasTree
Parameter: double h, double r, double l
Return: long
WSDL URL: http://soap.fmui.de/christmas.wsdl
Example SOAP Request: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:ChristmasTree xmlns:ns1="urn:christmas" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<h xsi:type="xsd:double">223.4</h>
<r xsi:type="xsd:double">112.56</r>
<l xsi:type="xsd:double">12.5</l>
</ns1:ChristmasTree>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example SOAP Response: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:ChristmasTreeResponse xmlns:ns1="urn:christmas" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:long">223</return>
</ns1:ChristmasTreeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

getStatistics

Name: getStatistics
Description: Calculates the average and the standard deviation from given double values.
SOAP Endpoint URL: http://soap.fmui.de/RPC
SOAP Action: "" (2 double quotes)
Method Namespace: urn:SpheonJSOAPStatistics
Method: getStatistics
Parameter: double[] values
Return: struct { double average, double standardDeviation }
WSDL URL: http://soap.fmui.de/statistics.wsdl
Example SOAP Request: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getStatistics xmlns:ns1="urn:SpheonJSOAPStatistics" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<values xsi:type="ns2:Array" ns2:arrayType="xsd:double[6]" xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/">
<item xsi:type="xsd:double">1.2</item>
<item xsi:type="xsd:double">4.0</item>
<item xsi:type="xsd:double">2.4</item>
<item xsi:type="xsd:double">8.2</item>
<item xsi:type="xsd:double">9.234</item>
<item xsi:type="xsd:double">12.0</item>
</values>
</ns1:getStatistics>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example SOAP Response: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getStatisticsResponse xmlns:ns1="urn:SpheonJSOAPStatistics" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="ns2:statisticStruct" xmlns:ns2="http://spheon.bov.de">
<average xsi:type="xsd:double">6.1723333333333334</average>
<standardDeviation xsi:type="xsd:double">4.268970914244634</standardDeviation>
</return>
</ns1:getStatisticsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

isPrimeNumber

Name: isPrimeNumber
Description: Returns true if a given integer is a prime number, false otherwise
SOAP Endpoint URL: http://soap.fmui.de/RPC
SOAP Action: "" (2 double quotes)
Method Namespace: urn:SpheonJSOAPStatistics
Method: isPrimeNumber
Parameter: int
Return: boolean
WSDL URL: http://soap.fmui.de/statistics.wsdl
Example SOAP Request: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:isPrimeNumber xmlns:ns1="urn:SpheonJSOAPStatistics" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<number xsi:type="xsd:int">4120401</number>
</ns1:isPrimeNumber>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example SOAP Response: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:isPrimeNumberResponse xmlns:ns1="urn:SpheonJSOAPStatistics" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:boolean">false</return>
</ns1:isPrimeNumberResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

crossSum

Name: crossSum
Description: Calculates the cross sum of an integer.
SOAP Endpoint URL: http://soap.fmui.de/RPC
SOAP Action: "" (2 double quotes)
Method Namespace: urn:SpheonJSOAPStatistics
Method: crossSum
Parameter: int
Return: int
WSDL URL: http://soap.fmui.de/statistics.wsdl
Example SOAP Request: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:crossSum xmlns:ns1="urn:SpheonJSOAPStatistics" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<number xsi:type="xsd:int">4120401</number>
</ns1:crossSum>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example SOAP Response: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:crossSumResponse xmlns:ns1="urn:SpheonJSOAPStatistics" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:int">12</return>
</ns1:crossSumResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Periodic table by number

Name: Periodic table by number
Description: A set of methods for getting data from the periodic table.
SOAP Endpoint URL: http://soap.fmui.de/RPC
SOAP Action: "" (2 double quotes)
Method Namespace: urn:SpheonJSOAPChemistry
Methods: getElementByNumber
getSymbolByNumber
getNameByNumber
getMassByNumber
getMeltingPointByNumber
getBoilingPointByNumber
foundByNumber
Parameter: int
Return: getElementByNumber: ChemistryElement (see WSDL)
getSymbolByNumber: String
getNameByNumber: String
getMassByNumber: Double
getMeltingPointByNumber: Double
getBoilingPointByNumber: Double
foundByNumber: String
WSDL URL: http://soap.fmui.de/chemistry.wsdl
Sample applet: Sample Chemistry Applet
Example SOAP Request: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getMassByNumber xmlns:ns1="urn:SpheonJSOAPChemistry" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<number xsi:type="xsd:int">42</number>
</ns1:getMassByNumber>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example SOAP Response: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getMassByNumberResponse xmlns:ns1="urn:SpheonJSOAPChemistry" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:double">95.94</return>
</ns1:getMassByNumberResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Periodic table by symbol

Name: Periodic table by symbol
Description: A set of methods for getting data from the periodic table.
SOAP Endpoint URL: http://soap.fmui.de/RPC
SOAP Action: "" (2 double quotes)
Method Namespace: urn:SpheonJSOAPChemistry
Methods: getElementBySymbol
getNumberlBySymbol
getNameBySymbol
getMassBySymbol
getMeltingPointBySymbol
getBoilingPointBySymbol
foundBySymbol
Parameter: String
Return: getElementBySymbol: ChemistryElement (see WSDL)
getNumberBySymbol: String
getNameBySymbol: String
getMassBySymbol: Double
getMeltingPointBySymbol: Double
getBoilingPointBySymbol: Double
foundBySymbol: String
WSDL URL: http://soap.fmui.de/chemistry.wsdl
Sample applet: Sample Chemistry Applet
Example SOAP Request: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getNameBySymbol xmlns:ns1="urn:SpheonJSOAPChemistry" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<symbol xsi:type="xsd:string">ag</symbol>
</ns1:getNameBySymbol>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example SOAP Response: <?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getNameBySymbolResponse xmlns:ns1="urn:SpheonJSOAPChemistry" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:string">Silver</return>
</ns1:getNameBySymbolResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


SourceForge Logo Last update: 08.06.2008, mueller@gotux.de