• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
SpringPeople Introduction to JAVA Web Services
 

SpringPeople Introduction to JAVA Web Services

on

  • 331 views

Learn how Web Services are used to build interoperable distributed services across different platform.

Learn how Web Services are used to build interoperable distributed services across different platform.

Statistics

Views

Total Views
331
Views on SlideShare
331
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    SpringPeople Introduction to JAVA Web Services SpringPeople Introduction to JAVA Web Services Presentation Transcript

    • © SpringPeople Software Private Limited, All Rights Reserved.© SpringPeople Software Private Limited, All Rights Reserved.Introduction to JAVA WebServices
    • © SpringPeople Software Private Limited, All Rights Reserved.What are Web Services?• Web Services are used to build interoperable distributed services acrossdifferent platform.– The client and server can be developed on different platforms and indifferent languages, yet they can exchange requests and responses.– For example, a Java client can consume a .NET based service and vice-versa• Legacy or new systems can be integrated rather easily by exposing them asweb services.– A better ROI from every system can be achieved.
    • © SpringPeople Software Private Limited, All Rights Reserved.Typical Distributed Architecture
    • © SpringPeople Software Private Limited, All Rights Reserved.Distributed Architecture Examples• Java Platform– RMI (Remote Method Invocation), EJB (Enterprise JavaBeans), CORBA, now not so famous• @Remote interface as the interface• @SessionBean as implementation• JNDI Directory as the registry• JBoss as the service container & publisher• InitialContext.lookup() for fetching proxy on the client side• COM/DCOM on Microsoft platform
    • © SpringPeople Software Private Limited, All Rights Reserved.Major Shortcomings ofDistributed System•Both client and server must be on the same platformClients on other platforms can not utilize the servicesChanges in server-side environment affect all the clients•Client must have server side API for interactionClient can not be developed unless the API is distributedOften the API may be priced, poorly documented and etc.,•The protocol between client and server is also platform specificand often proprietaryClient that wants to connect to several remote objects have to implementall the specified protocols
    • © SpringPeople Software Private Limited, All Rights Reserved.Web Service ArchitectureSolution
    • © SpringPeople Software Private Limited, All Rights Reserved.Web Services Standards• Web Services are build on three foundation standards– Web Service Definition Language (WSDL): An XML based IDL todescribe the service definitions in a language agnostic way– Service Oriented Architecture Protocol (SOAP): An XML based PDU forcommunication between the clients and services– Universal Description Discovery and Integration (UDDI): An XML basedregistry for service publication and discovery• Bodies like OASIS proposed and publicized other standards as well– Standards like WS-Address, WS-Security, WS-Authentication and etc.,are built on top of foundation standards
    • © SpringPeople Software Private Limited, All Rights Reserved.Web Service Definition Language(WSDL)What is WSDL?• Its an IDL for describing a web service interface.• The service is meant for the clients of any platform.• Its XML based.Who develops them?• WSDL is hand-written in Contract-First Approach• WSDL is generated in Contract-Last Approach
    • © SpringPeople Software Private Limited, All Rights Reserved.What WSDL consists of?An abstract section• Types: Describes the XML types & elements that are used in the messagesto/from the web services.• Messages: Describes the input, output and fault messages that comes intoand goes out of web service operations.• PortType: Names the web service and describes the operations offered bythe web serviceA concrete section• Bindings: Describes the transport protocol like HTTP to carry the SOAPenvelope for communicating with web service.• Service: Describes the endpoint where the service is really available forconsumption
    • © SpringPeople Software Private Limited, All Rights Reserved.SOAP/XMLWhat is SOAP?• It stands for Service Oriented Architecture Protocol in theSOA/Web Services combination.– It originally stood for Simple Object Access Protocol when webservices were merely meant for lightweight RPC calls.What is its job?• It carries the payload for request/response between the clientand the server.– Obviously its an XML document (JSON is also supported)
    • © SpringPeople Software Private Limited, All Rights Reserved.Who writes and consumesSOAP/XML?• Web Service clients/servers dynamically prepares andconsumes the SOAP envelopes
    • © SpringPeople Software Private Limited, All Rights Reserved.Who carries SOAP and what itconsist of?• HTTP or protocol (as specified in WSDL) carries it• It consists of optional Header and mandatory Body
    • © SpringPeople Software Private Limited, All Rights Reserved.Web Services v/s SOA•Web Services is one of the technologies to implement Service OrientedArchitectures (SOA)However, Web Services predates SOA.Primary intention of web services was to make RPC calls, later itbecame a technology of choice for SOA implementation•Clients can be developed as an orchestration of services from variousendpoints that confirms to SOABusiness processes can be delivered in accordance with Software AsA Service (SAAS) paradigm.Services needs not be installed at client site, they are just consumed.
    • © SpringPeople Software Private Limited, All Rights Reserved.Become a Web Services Expert In3 Days FlatAttend the 3-Days “Web Services Workshop”View Complete Details
    • © SpringPeople Software Private Limited, All Rights Reserved.Who will benefit?Developers and Programmers, who wish to build interoperable distributedservices across different platform.View Complete Details
    • © SpringPeople Software Private Limited, All Rights Reserved.Q & Atraining@springpeople.com+91 80 65679700www.springpeople.comA SpringSource Certified Partner andVMware Authorized Training Center