This project implements a SOAP-based web service for temperature conversion using Python and the Spyne framework.
The service:
- Converts Fahrenheit → Celsius
- Converts Celsius → Fahrenheit
- Uses SOAP XML over HTTP
- Automatically generates WSDL
##Technologies Used
- Python 3
- Spyne (SOAP framework)
- lxml (XML validation)
- SoapUI (testing)
##Setup Instructions
git clone https://github.com/fk2295/temp-soap-service.git
cd temp-soap-service
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt##Run the Service
python -m temp_soap_service.app##Service Endpoint
http://127.0.0.1:8000/##WSDL
http://127.0.0.1:8000/?wsdlOpen this in your browser to view the XML service description.
- FahrenheitToCelsius
- CelsiusToFahrenheit
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://example.com/temperature/wsdl">
<soapenv:Body>
<tns:FahrenheitToCelsius>
<tns:Fahrenheit>98.6</tns:Fahrenheit>
</tns:FahrenheitToCelsius>
</soapenv:Body>
</soapenv:Envelope><FahrenheitToCelsiusResult>37.00</FahrenheitToCelsiusResult>- Open SoapUI
- Create New SOAP Project
- Enter WSDL:
http://127.0.0.1:8000/?wsdl-
Run operations:
- FahrenheitToCelsius
- CelsiusToFahrenheit
##Screenshots
##Project Structure
src/temp_soap_service/service.py→ conversion logicapp.py→ SOAP service
##License
MIT License
##Author
fk2295


