Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech IV WEB SERVICES AND SERVICE ORIENTED ARCHITECTURE Previous Question Paper (September - 2022 - R16)
Answer any Five Questions
All Questions Carry Equal Marks
Main
How distributed computing has changed the traditional network programming? Explain with a suitable program.
Answer
Distributed computing has shifted the paradigm of network programming from low-level socket-based communication to high-level abstraction layers. Traditional network programming required developers to manually manage byte streams, serialization, connection handling, and protocol implementation. Distributed computing introduces middleware that hides these complexities, allowing developers to invoke remote methods as if they were local.
Key changes include:
- Abstraction: Developers focus on business logic rather than network I/O.
- Transparency: Location, access, and failure transparency are provided by the framework.
- Interoperability: Standardized protocols enable communication between heterogeneous systems.
Example using Java RMI (Remote Method Invocation):
// Remote Interface
public interface Hello extends Remote {
String sayHello() throws RemoteException;
}
// Implementation
public class HelloImpl extends UnicastRemoteObject implements Hello {
public String sayHello() { return "Hello, World!"; }
}
// Client Invocation
Hello obj = (Hello) Naming.lookup("rmi://localhost/Hello");
System.out.println(obj.sayHello());Compare the limitations of RMI with CORBA.
Answer
| Feature | RMI (Remote Method Invocation) | CORBA (Common Object Request Broker Architecture) |
|---|---|---|
| Language Support | Java only | Language independent (C++, Java, Python, etc.) |
| Platform | Tied to JVM | Platform independent |
| Protocol | JRMP (Java Remote Method Protocol) | IIOP (Internet Inter-ORB Protocol) |
| Complexity | Simple to implement for Java environments | High complexity due to IDL (Interface Definition Language) |
| Interoperability | Limited to Java-to-Java | Excellent for heterogeneous distributed systems |
The primary limitation of RMI is its language dependency; it requires both client and server to be written in Java. In contrast, CORBA uses an IDL to map objects to different programming languages, making it more suitable for large-scale enterprise systems where multiple languages are used. However, CORBA is significantly more difficult to configure and maintain compared to the streamlined, type-safe nature of RMI.
What is a web service? How does it differ from a web application? Explain with example scenarios.
Answer
Sign in to view the complete answer paper.
Briefly discuss any three technologies being used in delays for web services.
Answer
Sign in to view the complete answer paper.
What is XML? How does it complement SOAP, WSDL?
Answer
Sign in to view the complete answer paper.
With an example demonstrate the basic steps of implementing a web service.
Answer
Sign in to view the complete answer paper.
Write code to develop a webservice for weather reporting using J2EE– explain the functions exposed by this service provider.
Answer
Sign in to view the complete answer paper.
How to create a WSDL definition for a web service? Explain with an illustration.
Answer
Sign in to view the complete answer paper.
What is XML element? What is XML namespace? What is the importance of namespaces?
Answer
Sign in to view the complete answer paper.
How are errors handled in Simple Object Access Protocol? Demonstrate with an example.
Answer
Sign in to view the complete answer paper.
Illustrate service roles in a service-oriented architecture.
Answer
Sign in to view the complete answer paper.
What is UDDI? Explain its role in expanding potential business partnerships.
Answer
Sign in to view the complete answer paper.
Explain the need and significance of UDDI business registry with necessary code.
Answer
Sign in to view the complete answer paper.
What is cryptography? Explain the need of cryptography and encryption for web services.
Answer
Sign in to view the complete answer paper.
Define semantic interoperability problem.
Answer
Sign in to view the complete answer paper.
Describe standard distributed management framework.
Answer
Sign in to view the complete answer paper.