Week6 Examples: Web Services
- Web Services:
- SOAP: Simple Object Access Protocol:
Wikipedia page. Examples
- Search: "Free SOAP services" (e.g.,
http://www.service-repository.com/)
- Locate the WSDL page (Web Service Description Language) for the
SOAP web-service (http://www.webservicex.com/globalweather.asmx?WSDL)
- An example code: In your IDE:
(Thanks to Albert Gardner for showing me the
following):
- Right-Mouse-Button over: References: Add Service
Reference
- Address: Enter the WSDL path, (edit and set an
appropriate name space, e.g., WeatherService), press GO
- Here is the link to the example source code.
- REST: REpresentational State Transfer:
Wikipedia page. Examples
- Some on-line discussions/opinions:
- Imagine a RESTful web service: (a href="http://faculty.washington.edu/ksung/Test/">http://faculty.washington.edu/ksung/Test/)
- My stupid service:
http://faculty.washington.edu/ksung/Test/MyService/MyService.php
- Stupid print out: with out parameters, or with "parm=4"
- Download: "cmd=dlnd" optional "&dfile=fileName"
- Upload: "cmd=upld" <-- how to get this to work?
- Create a simple web-client for our service:
- Pretty stupid, but gives us some sense of how RESTful web-service is
doing at the backend.
- Upload of file does not work. Sorry