Sekundarni povzetek: |
We focused on web services and their development. We presented two of the most common types of web services: SOAP and REST web services. We showed how they work, how to develop and ways how client can invoke them. Looking into SOAP web service details we described it's SOAP protocol and WSDL file for describing web service. We also described WS–* specifications and WS–I Basic Profile, which helps with interoperability. After describing SOAP web services, we described REST web services. Here we explained REST architecture style, which is a backbone for this kind of services, and WADL file to describe service. We also compared SOAP and REST web services, explained why REST service is better and why SOAP service is better and which one is better in different situations. We described API interfaces for development of web services in Java environment. We also compared JAX–RS and JAX–WS. We developed an example of SOAP web service, which has functions to view or modify records in specified tables in database. In the end, we generated SOAP client for my SOAP web services from its WSDL file. We also developed an example of REST web service. It utilizes database as source of resources. We set access root and URIs for accessing the developed web service and defined methods for each type of requests and URIs. We also developed REST client at the end. We developed both web services with NetBeans tool together with GlassFish server, where we successfully deployed them and have been testing them. |