What are the Different Approaches to Developing a SOAP Based Web Service

These two approaches The contract-first approach, where you define the contract first with XSD and WSDL and the generate the Java classes from the contract. The contract-last approach where you define the Java classes first and then generate the contract, which is theĀ  WSDL file from the Java classes. Note: The WSDL describes all operations … Read more

Web Services when you can use Traditional Style Middle-Ware such as RPC, CORBA, RMI and DCOM

The traditional middle-wares tightly couple connections to the applications and it can break if you make any modification to your application. Tightly coupled applications are hard to maintain and less reusable. Generally do not support heterogeneity. Do not work across Internet. Can be more expensive and hard to use. Web Services support loosely coupled connections. … Read more

What is the Difference Between SOA and a Web Service

SOA is a software design principle and an architectural pattern for implementing loosely coupled, reusable and coarse grained services. You can implement SOA using any protocols such as HTTP, HTTPS, JMS, SMTP, RMI, IIOP (i.e. EJB uses IIOP), RPC etc. Messages can be in XML or Data Transfer Objects (DTOs). Web service is an implementation … Read more

What Tools do you use to Test your Web Services

SoapUI tool for SOAP WS and the Firefox “poster” plugin for RESTFul services. In Advanced Java, testing web services typically involves the use of specialized tools designed for this purpose. Some commonly used tools for testing web services include: JUnit: JUnit is a widely used testing framework for Java that is often employed for unit … Read more

How would you Decide what Style of Web Service to use? SOAP WS or REST

In general, a REST based Web service is preferred due to its simplicity, performance, scalability, and support for multiple data formats. SOAP is favored where service requires comprehensive support for security and transactionalreliability. The answer really depends on the functional and non-functional requirements. Asking the questions listed below will help you choose. Does the service … Read more