Building Web Services With Abap and Sap Web Application Server

  • Upload
    nregula

  • View
    229

  • Download
    0

Embed Size (px)

Citation preview

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    1/54

    Building Web Services withABAP and SAP WebApplication Server

    Timm FalterProject Manager Web Services / SAP AG Walldorf

    Martin HuvarProduct Manager Enterprise Services / SAP AG Walldorf

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 2

    Learning Objectives

    As a result of this lecture, you willbe able to: Comprehend the main ideas of SAPs Web Service

    definition

    Understand the architecture of the Web Service Framework

    Understand what Virtual Interfaces, Web Service

    Definitions, Web service Configurations and other concepts

    of the Web Service Framework are

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    2/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 3

    Agenda

    Web Service Overview

    What are Web services?

    Why do we need them?

    SAP NetWeaver

    Web Service Technology

    SAP Web Application Server 6.40

    Providing Web Services

    Consuming Web Services

    Summary

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 4

    Web Services Definition

    Web Services are

    application functionalities

    supporting direct interaction

    by responding to service requests

    based on open Internet Standards

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    3/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 5

    The nature of Web Services

    Web Services

    act like a black-box that may require input and deliver a result

    are modular, self-contained and self-describing

    work on top of any communication technology stack

    can be published, discovered and invoked based on open

    technology standards

    work in synchronous and asynchronous scenarios

    facilitate integration within an enterprise as well

    as cross enterprises

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 6

    UDDI

    Web Service Paradigm

    3

    ServiceExecution

    2

    Service Requestor

    ServiceDiscovery

    Service Provider

    Service Directory

    1

    ServicePublication

    WSDL/

    XSD

    XML/

    SOAPhttp

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    4/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 7

    Web Services: Examples

    Intelligent product catalog search

    Product availability check

    Pricing inquiry

    Customer credit check

    Order status check

    Vendor managed inventory

    Demand forecasts, stock

    replenishment

    Dynamic auctioning and bidding

    Publish and analyze financial

    reports (XBRL based)

    Electronic bill presentment and

    payment

    Matching vacancies and job

    applicants profiles

    Postal service address check

    UDDI registration and discovery

    services

    Automated web searches(Google)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 8

    Demo

    Demo

    Web Service

    Example

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    5/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 9

    Example: Web Service Szenario Credit Limit Check

    CRM

    Order Create

    Order

    Credit

    Management

    System

    Credit

    Limit

    Check

    Financial

    ProcessOrder

    Creditlimit

    OK?

    Credit

    standing

    Database

    History

    Database

    OK

    rejected

    = Web Service

    Customer Company Service Provider

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 10

    Credit Limit Check Example: Architecture

    RFC Function Module

    (External Id -> Internal ID)

    R/3 Enterprise 4.7

    Session Enterprise Java Bean

    SAP Web

    AS 6.30 (Java)SAP JCo Proxy SAP JCo Proxy

    RFC Function Module

    (Credit Limit Check)

    Virtual Interface Virtual Interface

    SAP Web AS 6.30 (Java)

    Cell Phone Shop

    Web Application (JSP)

    Microsoft Excel XP / 2003 Beta

    Credit Limit Check

    Company Worksheet

    Web Service Web Service

    Web Service ProxyWeb Service Proxy

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    6/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 11

    Fundamental Elements of the complete Web ServiceSolution

    Web Service

    Technology

    Open TechnologyStandards for Web

    Services

    Web Service

    TechnologyReferent

    to business

    semantics

    SAP NetWeaver

    RosettaNet,

    Spec2000,

    HR-XML,XBRL, IFX,

    papiNet,

    ....

    XML, WSDL, SOAP, UDDI, WSI

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 12

    Agenda

    Web Service Overview What are Web services?

    Why do we need them?

    SAP NetWeaver

    Web Service Technology

    SAP Web Application Server 6.40

    Providing Web Services

    Consuming Web Services

    Summary

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    7/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 13

    Providing Web services based on Open Standards

    UDDI

    SOAP Processing

    Bus

    iness

    App

    lica

    tion

    Web Service Configuration

    UDDI Publishing

    WSDL Generation

    Development

    Environment

    Web Service

    Consumer

    Web Service

    Configuration

    We

    bServ

    ice

    Interface

    s

    RFC

    BA

    PI

    IDoc

    EJB

    SAP Web

    Application

    Server

    Extensible RuntimePluggable Features

    Security

    Transactions

    Protocols

    WSDL

    SOAP

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 14

    Consuming Web services based on Open Standards

    UDDI

    SOAP Processing

    Bus

    inessA

    pp

    lica

    tion

    UDDI based Web Service

    discovery

    Web Service Proxy

    Generation

    Proxy Configuration

    DevelopmentEnvironment

    ProxyConfig.

    We

    bServ

    ice

    Prox

    ies

    SAP WebApplication

    Server

    Extensible runtime

    Pluggable features

    Security

    Transactions

    Protocols

    WSDL

    SOAP

    Web Service

    Provider

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    8/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 15

    Exchange Infrastructure & Web Services

    Exchange Infrastructure

    mySAP

    Component

    mySAP

    ComponentmySAP

    Component

    mySAP

    ComponentNON SAP

    Component

    NON SAP

    ComponentNON SAP

    Component

    NON SAP

    Component

    SOAP

    Adapter

    Native

    Protocol

    Native

    Protocol

    SAP Web Application Server

    SOAP

    SOAP

    SOAP

    Web Services Infrastructure

    Web Services Infrastructure

    Business Process

    Engine

    Business Process

    Engine

    Routing

    Routing

    Mapping

    MappingIntegra

    tion

    Run

    time

    Integration

    Repository &Directory

    Integration

    Repository &Directory

    RMI

    RMI...

    ...

    Persistency

    Persistency

    RFC

    RFC

    Adapter

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 16

    Enterprise Services: Runtime View

    SAP Web AS as client SAP Web AS as server

    Application

    Application

    XI

    Integration

    Server

    Outbound

    Proxy

    Mediated Executionvia Web Services

    WebServiceInfrastru

    cture

    Web

    ServiceInfrastructure

    Inbound

    Proxy

    Standard Web ServiceExecution (P2P)

    Integration

    Repository

    & Directory

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    9/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 17

    Agenda

    Web Service Overview

    What are Web services?

    Why do we need them?

    SAP NetWeaver

    Web Service Technology

    SAP Web Application Server 6.40

    Providing Web Services

    Consuming Web Services

    Summary

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 18

    Web Service within SAP Web Application Server

    The Web Service capability within SAP Web AS is

    the foundation for all mySAP.com solutions

    a scalable, reliable Web application infrastructure that delivers high-

    performance Web Services

    offering Web Service functionality for the ABAP and J2EE

    personality with a common architecture

    allowing to expose existing functionality (BAPIs, RFMs, IDOCs,

    EJBs, Java Classes, XI Server Proxies) as Web Service

    easily allowing to consume Web Service from any source

    requiring only configuration (no coding)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    10/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 19

    Benefits

    Web Service interfaces provide a virtual abstraction from theimplementation layer

    Fully integrated into development environment

    Full fledged UDDI capabilities

    UDDI server implementation

    UDDI client functionality

    Standard compliant WSDL generation

    Support of client proxy generation for ABAP and J2EE

    Extensible SOAP Runtime

    Pluggable Features

    Security

    Protocols

    ....

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 20

    SAP Web Services Infrastructure- Role-based Approach -

    Provider-side Web Service Developer

    defines design time information of a Web Service

    Web Service Configurator

    defines runtime information of a Web service

    Consumer-side Web Service Client Developer

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    11/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 21

    Agenda

    Web Service Overview

    What are Web services?

    Why do we need them?

    SAP NetWeaver

    Web Service Technology

    SAP Web Application Server 6.40

    Providing Web Services

    Consuming Web Services

    Summary

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 22

    The Web Service Creation Wizard- Background -

    Creating a Web Service in less than 1 minute

    - The Web Service Creation wizard

    proves that Web services are easy and out-of-the-box

    allows to expose an existing endpoint as a Web Service with few

    mouse-clicks

    Only shows the most important settings in the wizard

    Default values for other settings

    hides technical details

    implicitly creates all necessary objects

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    12/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 23

    Steps for the Web Service Wizard

    Implement Business Logic1

    UDDI

    Start Web Service Wizard2

    Publish Web Service

    (optional)3a

    Deploy Web Service3

    Virtual

    Interface

    Web

    Service

    Definition

    Web

    Service

    Config.

    generate

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 24

    Demo

    Demo

    Web ServiceCreation Wizard

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    13/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 25

    Step 1 Implement Business Logic

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 26

    Step 2 Start Web Service Wizard

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    14/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 27

    Step 2 Web Service Wizard (1)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 28

    Step 2 Web Service Wizard (2)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    15/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 29

    Step 2 Web Service Wizard (3)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 30

    Step 2 Web Service Wizard (4)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    16/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 31

    Step 2 Web Service Wizard (5)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 32

    Web Service Wizard Results

    All necessary files are created

    Virtual Interfaces

    Web service Definition

    Web Service Configuration

    Enterprise Application Project (optional)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    17/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 33

    The Web Service Homepage

    The Web Service Homepage

    is available for each activated Web Service

    shows the documentation for the Web Service

    allows to retrieve WSDL descriptions in different styles

    offers testing capabilities

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 34

    Demo

    Demo

    Web Service

    Homepage

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    18/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 35

    Invoke Web Service Homepage

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 36

    Homepage - Overview

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    19/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 37

    Homepage WSDL View

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 38

    Homepage Test View (1)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    20/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 39

    Homepage Test View (2)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 40

    Homepage Test View (3)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    21/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 41

    The Web Service Creation Wizard- Background -

    The Step-by-Step approach

    Create all objects by hand

    Full flexibility and options

    More expenses

    but still configuration only

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 42

    The Step by Step Approach

    Implement Business Logic1

    UDDI

    Define Virtual Interface (VI)2

    Create Web Service Definition (WSD)3

    Publish Web Service

    (optional)5a

    Publish WSD

    (optional)3a

    Activate Web Service5

    Configure Web Service4

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    22/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 43

    The Web Service Creation Wizard- Background -

    The Step-by-Step approach

    Create all objects by hand

    Full flexibility and options

    More expenses

    but still configuration only

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 44

    Support for Web Service Developers (1)- Background -

    The Web Service developer

    knows/defines the application logic

    knows/defines the Web Service Interface

    which should be accessible for clients

    knows/defines the behavior of the Web Service

    e.g. Stateless / Stateful, Security requirements, etc.

    does not need to have detailed knowledge about

    technical protocols which implement abstract behavior

    concrete application servers on which the Web Service will be running

    Defines Design-Time information of a Web Service

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    23/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 45

    Support for Web Service Developers (2)- Tasks of a Web Service Developer -

    Step 1: Implementing the business logic

    Supported by the standard IDE

    Takes place in Endpoint-specific standard Tools

    Java: SAP NetWeaver Developer Studio

    ABAP: SE80

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 46

    Support for Web Service Developers (3)- Tasks of a Web Service Developer -

    Step 2: Definition of Virtual Interface

    Web Service Interface = Interface visible to clients (via WSDL, UDDI, )

    Supported by the Web Service Infrastructure via Virtual Interface Editor

    A Virtual Interface

    provides abstraction from concrete implementation (=endpoint)

    allows to publish a view on existing implementations as Web Service

    Interfaces

    i.e. renaming, hiding of parameters/methods, default values

    allows to define how the Web Service Interface is represented in the

    SOAP message

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    24/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 47

    Virtual Interfaces

    Virtual

    Interface

    Implementation

    Layer

    i_credit

    segment (I)i_partner

    (I)

    e_score

    (O)FSCM_Cr_Limit_Check

    e_limit

    (O)

    e_currency

    (O)

    e_valid_to

    (O)

    1001

    980

    500000.00

    USD

    2005-01-01

    idNumber

    (I)

    score

    (O)credit

    Limit (O)

    limit

    Currency (O)

    valid To

    (O)creditLimitCheck

    Request

    Default Value:

    BUP001

    Response

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 48

    Virtual Interfaces

    Virtual

    Interface

    Implementation

    Layer

    i_credit

    segment (I)i_partner

    (I)

    e_score

    (O)FSCM_Cr_Limit_Check

    e_limit

    (O)

    e_currency

    (O)

    e_valid_to

    (O)

    1001

    980

    500000.00

    USD

    2005-01-01

    idNumber

    (I)

    score

    (O)credit

    Limit (O)

    limit

    Currency (O)

    valid To

    (O)creditLimitCheck

    Request

    Default Value:

    BUP001

    Response

    Rename Methods

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    25/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 49

    Virtual Interfaces

    Virtual

    Interface

    Implementation

    Layer

    i_credit

    segment (I)i_partner

    (I)

    e_score

    (O)FSCM_Cr_Limit_Check

    e_limit

    (O)

    e_currency

    (O)

    e_valid_to

    (O)

    1001

    980

    500000.00

    USD

    2005-01-01

    idNumber

    (I)

    score

    (O)credit

    Limit (O)

    limit

    Currency (O)

    valid To

    (O)creditLimitCheck

    Request

    Default Value:

    BUP001

    Response

    Rename Parameters

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 50

    Virtual Interfaces

    Virtual

    Interface

    Implementation

    Layer

    i_credit

    segment (I)i_partner

    (I)

    e_score

    (O)FSCM_Cr_Limit_Check

    e_limit

    (O)

    e_currency

    (O)

    e_valid_to

    (O)

    1001

    980

    500000.00

    USD

    2005-01-01

    idNumber

    (I)

    score

    (O)credit

    Limit (O)

    limit

    Currency (O)

    valid To

    (O)creditLimitCheck

    Request

    Default Value:

    BUP001

    Response

    Hide parameters and

    / or provide default

    values

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    26/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 51

    Demo

    Demo

    Virtual Interfaces

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 52

    Virtual Interface Editor- Creation of a default Virtual Interface -

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    27/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 53

    Virtual Interface Editor- Rename operation -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 54

    Virtual Interface Editor- Parameter Mapping -

    Rename

    Parameter

    Type

    mapping

    Define

    default value

    Hide

    parameter

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    28/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 55

    Virtual Interface Editor- Type Mapping (1) -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 56

    Virtual Interface Editor- Type Mapping (2) -

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    29/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 57

    Virtual Interface Editor- Type Mapping (3) -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 58

    Virtual Interface EditorType Mapping (4)

    Rename

    Field

    Copied

    Type

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    30/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 59

    Virtual Interface EditorType Mapping (5)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 60

    Virtual Interface EditorType Mapping (6)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    31/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 61

    Virtual Interface Editor- Type Mapping (7) -

    Original

    type

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 62

    Virtual Interface Editor- Type Mapping (8) -

    Choose new

    type

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    32/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 63

    Virtual Interface Editor- Type Mapping (9) -

    new type

    assigned

    Type mappings

    applied

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 64

    Support for Web Service Developers (4)- Tasks of a Web Service Developer -

    Step 3: Creation of Web Service Definition Web Service Definition = Assignment of behavior to a Web Service

    Interface via features

    Motivation

    a Web Service is not only described by its interface but also by its behavior

    with respect to

    stateless/stateful communication,

    transactional behavior,

    security requirements,

    Idea:

    describe this kind of behavior via abstract features

    leave it to the Web Service Configurator to assign technical protocols to

    these abstract features

    Example:

    Feature: Stateful

    Technical Protocols: Stateful via HTTP-Cookies,Stateful via URL-Extensions

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    33/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 65

    Support for Web Service Developers (5)- Tasks of a Web Service Developer -

    Benefits

    The same Web Service definition can be activated on various systems which

    may differ in their technical capabilities

    Web Service Client implementations do not depend from technical server

    information

    Clients are generated based on implementation-independent Web

    Service definitions

    Technical details are configured separately in the Web Service Client

    Runtime

    Supported by the Web Service Infrastructure via

    Web Service Definition Editor

    UDDI Publication of Web Service Definitions

    WSDL Generation for Web Service Definitions

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 66

    Demo

    Demo

    Web ServiceDefinition

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    34/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 67

    Web Service Definition- General Properties -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 68

    Web Service Definition- Feature Configuration -

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    35/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 69

    Web Service Definition- UDDI Publishing -

    Start UDDI

    publishing

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 70

    UDDI Publishing Authentication

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    36/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 71

    UDDI Publishing Name of Service Definition

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 72

    UDDI Publishing Categories

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    37/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 73

    UDDI Publishing Service Definition Details

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 74

    UDDI Publishing Result View

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    38/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 75

    Support for Web Service Configurators (1)- Background -

    The Web Service Configurator

    knows the technical protocols which implement the abstract features

    knows the System Landscape

    knows the Web Service capabilities of the single Application Servers

    Defines Runtime information of a Web Service

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 76

    Support for Web Service Configurators (2)- Tasks of a Web Service Configurator -

    Step 1: Technical configuration and Activation of a Web ServiceDefinition

    Assignment of technical protocols to the abstract features

    based on the Web Service capabilities of the Application Server

    Configuration of additional Web Service Runtime features

    Logging, Tracing, Monitoring

    Security Roles

    Saving and automatic registration in the Web Service Runtime Registry

    Supported by Web Service Infrastructure via

    Web Service Configuration Transaction (WSCONFIG)

    Web Service Administration Transaction (WSADMIN)

    WSDL Generation for deployed Web Services

    UDDI Publishing

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    39/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 77

    Demo

    Demo

    Web Service

    Configuration

    and

    Administration

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 78

    Web Service Configuration- Show configurations of Web Service Definition -

    Transaction

    WSCONFIG

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    40/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 79

    Web Service Configuration- Create new Configuration (Overall Settings) -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 80

    Web Service Configuration- Create new Configuration (Transport Level Config) -

    Configure

    Transport Settings

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    41/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 81

    Web Service Configuration- Create new Configuration (Transport Level Config) -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 82

    Web Service Configuration- Create new Configuration (Operation configuration) -

    Configure

    Security Settings

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    42/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 83

    Web Service Administration- List of Available Web Services -

    Transaction

    WSADMIN

    Display WSDL

    Open WS

    Homepage

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 84

    Web Service Administration- Configure Web Service -

    Configure

    Logging, Tracing

    Start UDDI

    Publishing

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    43/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 85

    UDDI Publishing Authentication

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 86

    UDDI Publishing Service Publication: Names

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    44/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 87

    UDDI Publishing Service Publication: Binding Templates

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 88

    Agenda

    Web Service Overview What are Web services?

    Why do we need them?

    SAP NetWeaver

    Web Service Technology

    SAP Web Application Server 6.40

    Providing Web Services

    Consuming Web Services

    Summary

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    45/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 89

    Support for Web Service Consumers (1)- Background -

    The Web Service client developer

    implements the client application

    knows how to use the Web Service client proxy in the client application

    knows how to get the description of a Web Service

    (UDDI, WSDL, )

    knows how to generate the Web Service client proxy

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 90

    Support for Web Service Consumers (2)- Tasks of a Web Service Consumer -

    Step 1: Retrieve description of Web Service

    Retrieval of URL of WSDL description

    either manually,

    or using UDDI Browsing

    Supported by the Web Service Infrastructure via

    Web Service Proxy generation

    UDDI Client Browser

    Exchange Infrastructure IFR - browsing

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    46/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 91

    Support for Web Service Consumers (3)- Tasks of a Web Service Consumer -

    Step 2: Generate Web Service Client Proxy

    Start proxy generator based on imported WSDL Document

    Supported by the Web Service Infrastructure via

    Web service Proxy Definition

    Step 3: Implementation of Client Application

    Use generated client proxies

    Supported by the Web Service Infrastructure via

    SAP Development Workbench (SE80)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 92

    Demo

    Demo

    Web ServiceProxy Project

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    47/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 93

    Create Web Service Client Proxy (1)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 94

    Create Web Service Client Proxy (2)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    48/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 95

    Create Web Service Client Proxy (3)

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 96

    Create Web Service Client Proxy (4)

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    49/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 97

    Display generated Client Proxy (1)- Main properties -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 98

    Display generated Client Proxy (2)- Generated entities -

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    50/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 99

    Display generated Client Proxy (3)- Generated structure -

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 100

    Display generated Client Proxy (4)- Warnings during generation -

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    51/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 101

    Proxy Runtime configuration- Global settings -

    Transaction

    LPCONFIG

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 102

    Proxy Runtime configuration- Global settings -

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    52/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 103

    Proxy Runtime configuration- Operation-specific settings -

    Configure

    Security Settings

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 104

    Summary

    The Enterprise Service Architecture (ESA), SAPs approach forbuilding services-oriented business applications utilizes Web

    Services as vital part of its communication and integration

    strategy

    SAPs rich business functionality, in conjunction with

    state-of-the-art technology, enables you to establish cross-

    company business processes as an integrated part of your

    development efforts based on Web Services

    SAP Web Application Server 6.40 offers an easy, convenient way

    to build Web services

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    53/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 105

    Q AQuestions?

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 106

    Please complete your session evaluation and

    drop it in the box on your way out.

    Feedback

    Thank YouThe SAP TechEd 03 Basel Team

  • 8/13/2019 Building Web Services With Abap and Sap Web Application Server

    54/54

    SAP AG 2003, TechED_Basel / OSI202, Timm Falter / Martin Huvar / 107

    No part of this publication may be reproduced or transmitted in any form or for any purpose without the express

    permission of SAP AG. The information contained herein may be changed without prior notice.

    Some software products marketed by SAP AG and its distributors contain proprietary software components of other

    software vendors.

    Microsoft, WINDOWS, NT, EXCEL, Word, PowerPoint and SQL Server are registered trademarks of

    Microsoft Corporation.

    IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390,

    OS/400, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix

    and Informix Dynamic ServerTM are trademarks of IBM Corporation in USA and/or other countries.

    ORACLE is a registered trademark of ORACLE Corporation.

    UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.

    Citrix, the Citrix logo, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, MultiWin and

    other Citrix product names referenced herein are trademarks of Citrix Systems, Inc.

    HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C, World Wide Web Consortium,

    Massachusetts Institute of Technology.

    JAVA is a registered trademark of Sun Microsystems, Inc.

    JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for technology invented

    and implemented by Netscape.

    MarketSet and Enterprise Buyer are jointly owned trademarks of SAP AG and Commerce One.

    SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver and other SAP products and services mentioned

    herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in

    several other countries all over the world. All other product and service names mentioned are the trademarks of

    their respective companies.

    Copyright 2003 SAP AG. All Rights Reserved

    Corporate Colors for PPT

    SAP Blue SAP Gold SAP Gray

    You can use these colors with gradations

    Removepageforsli

    deshow