1 / 4

Example Service: Temperature Conversion

Example Service: Temperature Conversion. public class Converter { public double fahrenheitToCelsius(double fahrenheit) { // convert Fahrenheit to Celsius return (fahrenheit-32.0)*5.0/9.0; } }. Soap: Request Example. <?xml version="1.0"?>

kiril
Download Presentation

Example Service: Temperature Conversion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Example Service: Temperature Conversion public class Converter { public double fahrenheitToCelsius(double fahrenheit) { // convert Fahrenheit to Celsius return (fahrenheit-32.0)*5.0/9.0; } }

  2. Soap: Request Example <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope"> <soap:Body> <fahrenheitToCelsius> <fahrenheit>80</fahrenheit> </fahrenheitToCelsius> </soap:Body> </soap:Envelope>

  3. Soap: Response Example <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope"> <soap:Body> <fahrenheitToCelsiusResponse> <fahrenheitToCelsiusReturn>80 </fahrenheitToCelsiusReturn> </fahrenheitToCelsiusResponse> </soap:Body> </soap:Envelope>

  4. Soap message: Skeleton <?xml version="1.0"?> <soap:Envelopexmlns:soap="http://www.w3.org/2001/12/soap-envelope"> <soap:Header> ... </soap:Header> <-- optional <soap:Body> ... <soap:Fault> ... </soap:Fault> <-- optional ... </soap:Body> </soap:Envelope>

More Related