In this article we will talk about doing introduction to Web Services and some features related to Web Services. Web services allow different applications to communicate over different platforms and they work together, for example Java-based, such as communicating with a Linux application running on Windows .Net application. This can be done through the HTTP protocol to communicate through XML messages series.

webservices-overview-xml-rpc-soap-and-rest-6-638

Web services without the need to make any changes to the means that will work on any browser, the browser and operating system independent moves. Web Services seviyeweb used in advanced applications. The World Wide Web Consortium (W3C) defines Web services as follows. According to the W3C, “Web services is the design of message-based use in commonly used Web and enterprise software. Web Services, HTTP, XML, SOAP, REST-FUL, WSDL, SPARQL, etc. is based on the technology.” If you are a Java developer is your own and you write Java Web Service methods, or your internet or other developers on your local network (eg .Net developers) you can make available. Web services for Web Services that I intended to write about later interview questions you will see in the interview questions.

Why you need to learn web services?

Developed and used in the past to use the functionality of the new software

I try to explain with a simple example. Let’s say you are working in a finance company to manage the salary you want your software development on Java but the company previously developed software to get the .NET platform. You can write your own functions using this software while developing the old infrastructure software used to develop software for a new section to its employees.

Availability:

Web Services allows business logic to be used in many different systems. Web Services allows the freedom to choose your application needs. Rather than reinvent the wheel for each customer, your needs additional applications that allows you to add to the user-side business logic. using programming languages and tools, we want this allows us to write code on the user side, both at the developer side.

Interoperability:

Web Services can say that these are the most important benefits to us. Web Services typically run outside of the private network, offers a special route is not the solution of the developer. Web Services also allow developers to use the programming language of their choice. In addition, through the use of standards-based communication methods, Web Services platform independent.

Independence:

Each service application that creates moves independently of other services. changes without affecting unrelated areas of the application is made.

Ease of Integration:

Data ‘stores’ creating isolated between applications. Web Services provides easier communication between adjacent moves and organizations among them.

Deployed on:

Web Services are deployed on standard Internet technologies. Web services are distributed to the other side of the world on the internet, even through firewalls. Proven security underlying the use of community standards (such as SSL) are buried.

Some Features of Web Services

Simple Object Access Protocol(SOAP):

Feature is a protocol for exchanging structured information in order to implement the Web service SOAP computer networks. Message format is based on XML as.

Web Services Description Language (WSDL)

WSDL means Web Services Description Language. This XML file technical details on how to implement a web service, especially URI, port, method names, contains arguments and data types. WSDL is an XML both human readable and called up by the machine is capable of dynamically linking.

WSDL elements are:

  • Types: Specifies the data types to be used in the message.
  • Message: Defines measj be used in communication.
  • PortType: include the operations of the Web service (methods) and identify related messages.
  • Binding: Process and define data formats to be used in the message.
  • Port: Defines the service points consisting of Binding and web address. Web address is the URL to run the service.
  • Service: A set of ports used.

Example WSDL file

<message name=”getHelloRequest”><!– hello request –>
<part name=”hello” type=”xs:string”/> <!– request icerisinde string tipinde hello parametresi beklenmektedir. –>
</message>

<message name=”getHelloResponse”><!– hello response –>
<part name=”sayHello” type=”xs:string”/> <!– response output olarak string tipinde sayHello dönderecegiz. –>
</message>

<portType name=”Hello”> <!– portType olusturacagız servisi bind etmek icin –>
<operation name=”getHello”> <!– üzerinde getHello adlı bir method barındırmakta –>
<input message=”getHelloRequest”/> <!– input olarak yukarıdaki requesti reference ediyoruz –>
<output message=”getHelloResponse”/> <!– output olarak yukaridaki response reference ediyoruz –>
</operation>
</portType>

<binding type=”Hello” name=”h1″> <!– bind ediyoruz –>
<soap:binding style=”rpc”
transport=”http://schemas.xmlsoap.org/soap/http” />
<operation>
<soap:operation soapAction=”http://example.com/getHello”/> <!– getHello operasyonunu bind ettik, dikkat edelim –>
<input><soap:body use=”literal”/></input> <!– soap:binding kullandık, intput ve outputu ayarlıyoruz –>
<output><soap:body use=”literal”/></output>
</operation>
</binding>

<service name=”HelloService”>
<port name=”HelloService” binding=”tns:Hello”>
<soap:address
location=”http://localhost:8080/services/HelloService” />
</port>
</service>

<definitions>

UDDI (Universal Description, Discovery and Integration):

UDDI, which can be recorded to the web services of the company and is able to search the directory service. Corporate UDDI Registry Service (UDDI Business Registry) is the server that stores the information agencies and web services. These servers are open access to information from service providers and other organizations by registering their databases.

I wish you plenty of gain plenty of code.

Faik Turan

Java Software Trainer

Introduction to Web Services
Tagged on:                                                     

Leave a Reply

Your email address will not be published. Required fields are marked *