topic2 part2 web service creation
TRANSCRIPT
SAP FlashbookProviding Web ServicesPart 2Author: Susanne Rothaug
This e-learning session contains narration!
SAP AG 2003, Title of Presentation, Speaker Name / 2
Objectives
After completing this session, you will be able to:
manually create and edit a
Web Service Definition and a Web Service Configuration
SAP AG 2003, Title of Presentation, Speaker Name / 3
Web Service Definition
A Web service Definition is the assignment of behavior to a Virtual Interface via features
MotivationA 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
SAP AG 2003, Title of Presentation, Speaker Name / 4
Web Service Definition
Benefits
The same Web Service definition can be deployed to various application servers which may differ in their technical capabilities
Web Service Client implementations do not depend on technical server information
Clients are generated based on implementation-independent Web Service definitions
Technical details are configured separately in the Web Service Client Runtime
SAP AG 2003, Title of Presentation, Speaker Name / 5
Create Web Service Definition
Choose “Web Service
Definition”
SAP AG 2003, Title of Presentation, Speaker Name / 6
Create Web Service Definition
Specify a name
Choose a package
SAP AG 2003, Title of Presentation, Speaker Name / 7
Create Web Service Definition
Overview of the WSD
SAP AG 2003, Title of Presentation, Speaker Name / 8
Create Web Service Definition
Features of the WSD: Session
SAP AG 2003, Title of Presentation, Speaker Name / 9
Create Web Service Definition
Features of the WSD:
Authentication
SAP AG 2003, Title of Presentation, Speaker Name / 10
Create Web Service Definition
Features of the WSD:
Authorization
SAP AG 2003, Title of Presentation, Speaker Name / 11
Create Web Service Definition
Features of the WSD:
Transport Guarantee
SAP AG 2003, Title of Presentation, Speaker Name / 12
Create Web Service Definition
Feautures of the WSD:
Message ID
SAP AG 2003, Title of Presentation, Speaker Name / 13
Web Service Configuration & Deployment - 1 -
A Web Service Configuration is the assignment of technical
protocols to abstract features
Based on the Web Service capabilities of the specific SAP Web Application Server
Configuration of additional Web Service Runtime featuresLogging, Tracing, MonitoringSecurity Roles…
Deployment as usualSDM deployment in Java
SAP AG 2003, Title of Presentation, Speaker Name / 14
Web Service Configuration & Deployment - 2 -
Create New Deployment Descriptor
SAP AG 2003, Title of Presentation, Speaker Name / 15
Web Service Configuration & Deployment - 3 -
Select “Web Service
Configurations”…
…and choose “Add”.
SAP AG 2003, Title of Presentation, Speaker Name / 16
Web Service Configuration & Deployment - 4 -
Choose the EJB
Reference
SAP AG 2003, Title of Presentation, Speaker Name / 17
Web Service Configuration & Deployment - 5 -
Choose the WSD
Reference
SAP AG 2003, Title of Presentation, Speaker Name / 18
Web Service Configuration & Deployment - 6 -
Select “CreditCheckWS”
…
…and choose “Add”.
SAP AG 2003, Title of Presentation, Speaker Name / 19
Web Service Configuration & Deployment - 7 -
Choose the transport binding
SAP AG 2003, Title of Presentation, Speaker Name / 20
Web Service Configuration & Deployment - 8 -
Overview of the WSC
SAP AG 2003, Title of Presentation, Speaker Name / 21
Web Service Configuration & Deployment - 9 -
Authentication Types
SAP AG 2003, Title of Presentation, Speaker Name / 22
Web Service Configuration & Deployment - 10 -
Create EAR project
SAP AG 2003, Title of Presentation, Speaker Name / 23
Web Service Configuration & Deployment - 11 -
Build EAR file
SAP AG 2003, Title of Presentation, Speaker Name / 24
Web Service Configuration & Deployment - 12 -
SAP AG 2003, Title of Presentation, Speaker Name / 25
Summary
Now you should be able to:
manually create and edit a
Web Service Definition and a Web Service Configuration