java webservices final

Upload: psp83

Post on 03-Apr-2018

228 views

Category:

Documents


5 download

TRANSCRIPT

  • 7/28/2019 Java WebServices Final

    1/26

    : 50 , 20 ,10 - / ,

  • 7/28/2019 Java WebServices Final

    2/26

    WEB SERVICES

    The worldbefore

    AGENDA

    Situation

    Problems

    Solutions

  • 7/28/2019 Java WebServices Final

    3/26

    Problems

    SolutionsEB SERVICES

    The worldbefore

    Situation

    The World Before Web Services

    Org

    A

    System A

    System B

    System C

    Org

    BSystem A

    System B

  • 7/28/2019 Java WebServices Final

    4/26

  • 7/28/2019 Java WebServices Final

    5/26

    SolutionsSolutionsEB

    SERVICES

    The worldbefore

    Situation

    The World Before Web Services

    Org

    A

    System A

    System B

    System C

    Org

    BSystem A

    System B

    Another Better Solutions

  • 7/28/2019 Java WebServices Final

    6/26

    WEB SERVICES

    The worldbefore

    Situation

    Problems

    Solutions

    Motiv. forWeb Services

    Probs. withCurr. sols.

    Web ServicesSolution

    AGENDA

  • 7/28/2019 Java WebServices Final

    7/26

    WEB SERVICES

    The worldbefore

    Situation

    Problems

    Solutions

    Motiv. forWeb Services

    Probs. withCurr. sols.

    Web ServicesSolution

    Problems with current solutions

    Involve a whole learning curve

    Not based on standardized rules and specifications

    ModuleA

    ModuleB

    ModuleC

    ModuleB

    ModuleA

    CORBA

    CORBACORBA

    RMI

  • 7/28/2019 Java WebServices Final

    8/26

    WEB SERVICES

    The worldbefore

    Situation

    Problems

    Solutions

    Motiv. forWeb Services

    Probs. withCurr. sols.

    Web ServicesSolution

    Web Services

    Standardized method of communication betweensoftware applications

    Provide

    ModuleB

    ModuleA

    C++ Java

    Distributed components are interfacedvia non-object-specific protocols

  • 7/28/2019 Java WebServices Final

    9/26 2012 Copyright Headstrong Genpact. All Rights Reserved.

    9

  • 7/28/2019 Java WebServices Final

    10/26

    LEADING with Domain-Specific IT Solutions

    Fund. OfWeb Services

    WEB SERVICES

    The worldbefore

    Situation

    Problems

    Solutions

    Motiv. forWeb Services

    Probs. withCurr. sols.

    Web ServicesSolution

    +ve and -ve ofWeb Services

    Fundamentals of WSDL

    WSDL

    ServiceImplementation

    Web Service Interface(WSDL)

    Types

    Message

    Operation

    Port Type

    Binding

    Port

    Service

  • 7/28/2019 Java WebServices Final

    11/26

    11

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    What is a Web Service A web service is a piece of business logic, located

    somewhere on the Internet, that is accessiblethrough standard-based Internet protocols such asHTTP or SMTP.

    OR A web service is just a web page meant for acomputer to request and process.

  • 7/28/2019 Java WebServices Final

    12/26 Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    Charaterstics of a Web Service

    XML-based information exchangesystems that is useful for direct application-to-application interaction.

    With Web services you can exchangedata between different applications and

    different platforms.Interoperability among distributed

    applications that span diverse hardwareand software platforms

    Use of Standard protocols andspecification enables integration with Other Messaging Systems, Legacy Systems, etc.

    Seamless Integration of B2B applicationsLoosly Coupled

  • 7/28/2019 Java WebServices Final

    13/26

    13

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    Components of a Web Service

    WSDL-Web Service Description LanguageSOAP-Simple Object Access ProtocolUDDI- Universal Description, Discovery and Integration (UDDI)

    SOAP Message ProtocolSOAP provides a simple and lightweight mechanism for exchanging structured and typed information between peers in adecentralized, distributed environment using XML

    WSDL Service DescriptionWeb Services Description Language (WSDL) is an XML format for describing Web services. WSDL enables one toseparate the description of the abstract functionality offered by a service from concrete details of a service descriptionsuch as "how" and "where" that functionality is offered.

    UDDI Service RegistryThe Universal Description, Discovery and Integration (UDDI) specification defines a standard way to describe a Webservice; register a Web service in a well-known registry; and discover other registered Web services.

  • 7/28/2019 Java WebServices Final

    14/26

    WSDL

    2012 Copyright Headstrong Genpact. All Rights Reserved.

    14

    W S D L a r c h i t e c t u r e Web Services Description Language (WSDL) filesare written in Extensible Markup Language (XML). WSDL is one alternative to make service interfaces andimplementations available in the UDDI registry.WSDL includes the workflow description (business

    process execution language for Web services,BPEL4WS)WSDL is the base for SOAP server deployment and

    SOAP client generation. A WSDL file contains the following parts:

    Web service interface definition This is part contains the elements, as

    well as the namespaces.Web service implementation This part contains the definition of theservice and ports.

    The following is the structure of the information in a WSDLfile : A WSDL file

  • 7/28/2019 Java WebServices Final

    15/26

    15

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    WSDL-Components

    WSDL Layers:-1.Service definition layer describes abstract properties:-Data types

    -Message types-Operations-Services

    2. The binding layer describes concrete properties:-Protocols-Data formats (using SOAP, HTTP, MIME)

    Components :- types - containing XML Schema element and type definitions

    message - consisting of either ?a number of named parts typed by XML Schema elements, or a single part typed by a XML Schema type

    portType - describing a set of operations, each being either ?one-way: receiving an input message,request-response : receiving an input message and then responding with an output message (like Remote Procedure Calls),solicit-response : sending an output message and then receiving an input message, or notification : sending an output message

    binding - selects communication protocol and data formats for each operation and message

    service - describes a collection of named ports, each associated with a binding and a network address An import mechanism allows modularization of definitions.

  • 7/28/2019 Java WebServices Final

    16/26

    16

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    WSDL Components Contd..

    The services and ports define the location of the Web service Service

    The service contains the Web service name and a list of ports. Ports

    The ports contain the location of the Web service and the bindingused for service access.

  • 7/28/2019 Java WebServices Final

    17/26

    17

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    1. Create a Dynamic Web Project

    2.Create Web Service Provider Java Class

    3. Create a Web Service

    4. Test Web Service

    Creation of Web service using Eclipse

  • 7/28/2019 Java WebServices Final

    18/26

    18

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

  • 7/28/2019 Java WebServices Final

    19/26

    19

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

  • 7/28/2019 Java WebServices Final

    20/26

    20

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

  • 7/28/2019 Java WebServices Final

    21/26

    21

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    Creation of Web service using Eclipse

    1. Create a Dynamic Web Project

    2.Create Web Service Provider Java Class

    3. Create a Web Service

    4. Test Web Service

  • 7/28/2019 Java WebServices Final

    22/26

    22

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

  • 7/28/2019 Java WebServices Final

    23/26

    23

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

  • 7/28/2019 Java WebServices Final

    24/26

    24

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

  • 7/28/2019 Java WebServices Final

    25/26

    25

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

  • 7/28/2019 Java WebServices Final

    26/26

    26

    Copyright 2012 Headstrong Confidential and Proprietary Information | www.headstrong.com

    Thank You!

    Q & A