Enterprise Services Repository and Registry

44
Enterprise Services Repository and Registry Applies to: Enterprise Services Repository & Registry together with SAP NetWeaver Process Integration and SAP NetWeaver Composition Environment. For more information, visit the SOA Management homepage . Summary In the article, we will provide a step-by-step guide for definition of Services in ES Repository, generation of proxies along with implementation, publication and discovery of defined Services in Services Registry and testing of the endpoints in WSNavigator. Authors: Goyal Arpit, Nedelcho Delchev Company: SAP Created on: 30 June 2009 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1

Transcript of Enterprise Services Repository and Registry

Page 1: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Applies to: Enterprise Services Repository & Registry together with SAP NetWeaver Process Integration and SAP NetWeaver Composition Environment.

For more information, visit the SOA Management homepage.

Summary In the article, we will provide a step-by-step guide for definition of Services in ES Repository, generation of proxies along with implementation, publication and discovery of defined Services in Services Registry and testing of the endpoints in WSNavigator.

Authors: Goyal Arpit, Nedelcho Delchev

Company: SAP

Created on: 30 June 2009

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1

Page 2: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Table of Contents Overview.............................................................................................................................................................3 Defining Service in the ES Repository................................................................................................................4

1. Modelling Service Interfaces in the ES Repository: ..........................................................................4 1.1. Preparation .......................................................................................................................................................4 1.2. Create a New Model .........................................................................................................................................8 1.3. Create a Service Interface ................................................................................................................................9 1.4. Adding Operations ..........................................................................................................................................10 1.5. Adding Connections........................................................................................................................................11 1.6. Create Assignment .........................................................................................................................................11 1.7. Create Message Types...................................................................................................................................15 1.8. Create Data Types..........................................................................................................................................18 1.9. Create Fault-Message Types..........................................................................................................................20 1.10. Activation of Objects ..................................................................................................................................22 1.11. Publish Service to Services Registry..........................................................................................................22 1.12. Publishing Service Interface.......................................................................................................................23 1.13. Discovery via Services Registry .................................................................................................................24

Proxy Generation and Implementation in Backend ..........................................................................................25 1. Create Enterprise Application and EJB projects .............................................................................25

1.1. Create Enterprise Application Project .............................................................................................................25 1.2. Create EJB Project .........................................................................................................................................25 1.3. Configure SAP NetWeaver Developer Studio.................................................................................................26 1.4. Create Java Bean Skeleton Using Enterprise Services Browser ....................................................................27 1.5. Alternative Approach to Generate Java Bean Skeleton Using Service Registry.............................................32 1.6. Implement the generated methods, build and deploy on AS Java. .................................................................37 1.7. Deploy the Application ....................................................................................................................................37

Publication of Services in Services Registry ....................................................................................................38 1. Publication Rules.............................................................................................................................38 2. Check the Publication of the Service ..............................................................................................39

2.1 Configuration States in Services Registry ............................................................................................................39 3. Test the Endpoint ............................................................................................................................41

Conclusion ........................................................................................................................................................43 Copyright...........................................................................................................................................................44

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 2

Page 3: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Overview SAP delivers an Enterprise Services Repository & Registry together with SAP NetWeaver Process Integration and SAP NetWeaver Composition Environment.

The Enterprise Services Repository stores the definitions and metadata of enterprise services and provides an integrated modeling environment for defining enterprise services, data types, and other design objects for SOA-based business processes in a standards-compliant manner.

The Services Registry supports the publication, classification, discovery, and testing of enterprise services (SAP-defined, partner-defined or custom-defined) across the IT landscape. This UDDI-compliant registry also enables the management and governance of enterprise services.

In the article, we will provide a step-by-step guide for definition of Services in ES Repository, generation of proxies along with implementation, publication and discovery of defined Services in Services Registry.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 3

Page 4: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Defining Service in the ES Repository

1. Modelling Service Interfaces in the ES Repository:

Before we begin with the modelling, look at the diagram below describing the structure of the model

we are about to create:

As you can see, the model specifies the objects that build an enterprise service and the relationships

between them

• A business object represents a specific view on a well defined business content

• A service operation belongs to exactly one business object

• A service interface is a group of one or more service operations

With this knowledge, we will now model our enterprise service. In our example the enterprise service

is provided by Airlines industry depicting search functionality of available Economic, Business and

First Class seats based on Flight ID. Additional parameters are the date of travel and connection ID

in case of break journey.

1.1. Preparation - Log on to the ES Repository using the URL http://<server>:<port>/rep/start/index.jsp

- For modeling in the ES Repository, Software Component version (SWCV) is needed. They are

imported from System Landscape Directory (SLD).

o Click on the Create Object icon from the toolbar to open the Create Object dialog in

Enterprise Services Builder.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 4

Page 5: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

o Select Work Area Software Component Version on the left side navigation pane and Import

from SLD radio-button on the right side navigation pane.

o Choose the Display button and select the required SWCVs (say SAPDEMO 7.11 of testdemo)

as shown in List of Software Component Versions.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 5

Page 6: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

- Set Original Language to English and save the Software Component Version as shown in the

figure below.

- Right-click on the Software Component Version to open the context menu and select New.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 6

Page 7: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

- Add a new namespace as shown in the figure below

Note: I have used sap.com in the namespace definition. In customer scenario it is strongly recommended to use customer namespace.

- Click on the Save button to save namespace definition.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 7

Page 8: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

- To create an object under the namespace (http://sap.com/WSTest), right-click on the

namespace to open context menu and select New as shown below. In the Create Object dialog

box, select the required entity type.

1.2. Create a New Model

As shown below create a new Model of type “SAP Integration Scenario Model”. Make sure the Model Type is “SAP ProComp Model”.

We can now model the process component. We will create a service interface, a business object and a respective operation, which relates to this business object

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 8

Page 9: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.1.1. Create a business object by selecting the business object icon from the left side panel and draw

it in the canvas area. Call this object “Flight Booking”.

1.3. Create a Service Interface

By selecting the service interface icon from the left side panel and draw it in the canvas area. Call it

“Query Flight Booking In”.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 9

Page 10: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.4. Adding Operations

Click on operation icon from the left side panel and draw it in the canvas area. Call it “Find Flight Booking ForBusiness”.

A Create relationship popup window will come. Select the Connection occurred check box and click OK.

Repeat step 1.2.3 to create another operation. Call it “Find Flight Booking By ForEconomy”.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 10

Page 11: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.5. Adding Connections

Select the Connection icon and draw it from the business object to the service operation. Click to save the model.

Now that we modelled our process component, we will assign the model objects to technical objects.

1.6. Create Assignment

From the model, right-click on the service interface “Query Flight Booking In” box and choose: Service Interface Assignment Create Assignment.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 11

Page 12: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Rename the Name to FlightSeatAvailabilityQueryIn. From the value list, select the namespace http://sap.com/WSTest. Click to save the model.

1.1.2. From the model, right-click on the service interface “Query Flight Booking In” and choose

Service Interface Assignment Open Assignment. Click on the Create button on the popup

window.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 12

Page 13: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Change the Category to “Inbound”, Mode to “Synchronous” and name of the Operation as

FlightSeatAvailabilityEconomy in the service interface.

Click icon to add another operation to FlightSeatAvailabilityQueryIn. Name it

FlightSeatAvailabilityBusiness and change Mode to “Synchronous”.

Note: Inbound: Determines the proxy behavior as provide proxy. Synchronous: The consumer of the service is blocked until the service call is returned

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 13

Page 14: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.1.3. From the model, right-click on operation “Find Flight Booking By ForEconomy” and choose

Operation Assignment Open Assignment.

Use the Display Input Help and select FlightSeatAvailabilityQueryIn.FlightSeatAvailabilityEconomy operation.

Repeat step 1.8 on operation “Find Flight Booking By ForBusiness” from the model and select FlightSeatAvailabilityQueryIn.FlightSeatAvailabilityBusiness operation.

Click to save the model.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 14

Page 15: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.7. Create Message Types

We need to define Request and Response Message Types for our service interface operations, but as message types comprises of data type, we need to define them first. From the left side menu, right-click on the namespace node and select New.

In the Create Object dialog, choose Interface Object Data Type. Name the data type as FlightID. Default Classification is Free-Style Data Type, do not change it.

Note: Data Type represents the XML Schema based on which the service request-response is send. Using Free-Style Data Type both simple and complex type XML Schema can be defined.

Now we will define the structure of the Data Type.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 15

Page 16: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.1.4. Click on the plus sign , choose Insert Subelement. Call it AirlineID. Also set the type to be

xsd: string by selecting the XSD Types from the dropdown list and then select xsd: string

1.1.5. Repeat step 1.9.1 to create FlightID data type as shown below:

Click to save the data type object.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 16

Page 17: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Note: a) You can use to move Subelement Up/Down.

b) There are two options available – Subelement and Attribute when icon is clicked. Insert Subelement is similar to like adding a sub node in XML Schema node. Similarly Insert Attribute is like adding attribute to any XML Schema node.

For more information about how to model Data Types in ES Repository: http://help.sap.com/saphelp_nwpi71/helpdata/en/45/607415b5b33bdbe10000000a1553f7/content.htm

1.1.6. Create two more Data Type FlightSeatAvailabilityQuery and FlightSeatAvailabilityResponse

as shown below.

Name Category Type Details Description

FlightID Element FlightID

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 17

Page 18: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Name Category Type Details Description

FlightID Element FlightID

EconomyMaxSeat Element xsd:integer Max Economy Class Seat

EconomyFreeSeat Element xsd:integer Free Seat Economy Class

BusinessMaxSeat Element xsd:integer Max Business Class Seat

BusinessFreeSeat Element xsd:integer Free Seat Business Class

FirstMaxSeat Element xsd:integer Max First Class Seat

FirstFreeSeat Element xsd:integer Free Seat First Class

1.8. Create Data Types

Now we have defined the data types, we will now create message types. For technical reasons, a data type alone is not sufficient to describe the instance of a message: Data types are defined in XML Schema as abstract types that are not yet tied to an element. You can only describe an instance of a message when you have specified a data type as an element type. Therefore, a message type defines the root element of a message.

From the left side menu, right-click on the namespace node and select New:

In the Create Object dialog, choose Interface Object Message Type

1.1.7. Create message type and name it FlightSeatAvailabilityQuery.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 18

Page 19: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Drag and Drop the FlightSeatAvailabilityQuery data type into the icon.

Click to save the message type object.

1.1.8. Repeat step 1.10.1 to create two more message type as shown below. Name them

FlightSeatAvailabilityQueryBusiness and FlightSeatAvailabilityQueryResponse.

FlightSeatAvailabilityQueryBusiness using data type FlightSeatAvailabilityQuery

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 19

Page 20: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

FlightSeatAvailabilityResponse using data type FlightSeatAvailabilityResponse

For more information on message types:

http://help.sap.com/saphelp_nwpi71/helpdata/en/2d/c0633c3a892251e10000000a114084/content.htm

1.9. Create Fault-Message Types

When an application-specific error occurs, the provider (inbound services) can send a fault message to report the error. For specifying this information we will create Fault Message Type.

From the left side menu, right-click on the namespace node and select New:

In the Create Object dialog, choose Interface Object Fault Message Type

Create Fault Message type ‘FlightNotFound’ as shown in figure below:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 20

Page 21: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

For more information on fault message types:

http://help.sap.com/saphelp_nwpi71/helpdata/en/dd/b7623c6369f454e10000000a114084/content.htm

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 21

Page 22: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.10. Activation of Objects

For activating all the objects, go to Change List tab page and Activate the changelist as show below:

1.11. Publish Service to Services Registry

1.1.9. Configuring a central Services Registry:

http://help.sap.com/saphelp_nwce711/helpdata/en/47/d391d7b8fc3c83e10000000a42189c/f

rameset.htm

1.1.10. You can also use the Wizard based configuration:

http://help.sap.com/saphelp_nwce711/helpdata/en/f7/6182bd68434595ba5105a0a346efcc/fr

ameset.htm

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 22

Page 23: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.12. Publishing Service Interface

All active service interfaces can be published to Services Registry. In the WSDL tab page of Service Interface Editor, click on Publish button.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 23

Page 24: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.13. Discovery via Services Registry

After publishing the service interfaces from the ES Repository, you can discover the model via the Services Registry:

1.1.11. Log on to the Services Registry using the URL

http://<server>:<port>/sr_central

The state of just published Service Interface is modelled.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 24

Page 25: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Proxy Generation and Implementation in Backend

1. Create Enterprise Application and EJB projects

To create an implementation based on that interface, you can use development tool like SAP NetWeaver Developer Studio, which have to be installed on your development workstation. After launching NWDS you can follow the steps below:

1.1. Create Enterprise Application Project

1.2. Create EJB Project

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 25

Page 26: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.3. Configure SAP NetWeaver Developer Studio

Windows Preferences

Ensure that the Secure Connection (HTTPs) is unchecked. Click Apply and OK.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 26

Page 27: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.4. Create Java Bean Skeleton Using Enterprise Services Browser

1.1.1. Open the Enterprise Services Browser view

Select Window Show View Other…

Select Enterprise Service Browser from the Show View dialog.

In the Enterprise Service Browser click icon to connect to Enterprise Service

Repository. Enter the credentials to logon to Enterprise Service Repository

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 27

Page 28: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.1.2. Generate Java Bean Skeleton

Search for the service under the software component version in the view (in this case

FlightSeatAvailabilityQueryIn under SAPDEMO, 711 by testdemo). Right-click on the service

FlightSeatAvailabilityQueryIn and select Generate Java Bean skeleton.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 28

Page 29: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Reduce the slide bar to Develop Service and select Web service runtime: Apache Axis to

change the Service Deployment Configuration. Make it to SAP Netweaver.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 29

Page 30: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Change the Service project from WebServiceProject to FlightSeatAvailabilityQueryIn_ejb

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 30

Page 31: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Press Next.

Update WSDL dialog pops-up informing WSDL doesn’t contain any services. Press OK.

Go through the next steps with default settings and press Finish.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 31

Page 32: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.5. Alternative Approach to Generate Java Bean Skeleton Using Service Registry 1.1.3. Import the WSDL using ‘Import’ feature

1.1.4. Select Web Services WSDL.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 32

Page 33: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.1.5. Choose the Services Registry option:

1.1.6. Search for the specific model by its name and state:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 33

Page 34: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.1.7. Choose it from the Service Definitions table and click Finish.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 34

Page 35: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

1.1.8. Generate Java bean skeleton

To generate the Java bean skeleton based on the imported WSDL, right-click on the WSDL item and select from the popup menu:

Inspect the parameters Server, Web service runtime, Service (EJB) project and EAR project:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 35

Page 36: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Usually the model WSDLs contains only wsdl:portType definition without wsdl:binding and wsdl:service. Since the binding information is needed for the proxy generation hence you have to press the:

Update WSDL button in this step:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 36

Page 37: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Go through the next steps with default settings and press Finish.

1.6. Implement the generated methods, build and deploy on AS Java.

1.7. Deploy the Application

Use Add and Remove Projects dialog:

More information about building composite applications with SAP NetWeaver Developer Studio you can find at: http://help.sap.com/saphelp_nwce711/helpdata/en/48/d055f3ddc3035be10000000a42189b/frameset.htm

How to implement the service provider based on ESR model in ABAP you can find at:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/310fc763fc2037e10000000a114a6b/frameset.htm

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 37

Page 38: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Publication of Services in Services Registry The default publication rule should automatically register your service to Services Registry after the next execution. If it is ‘inactive’ you always can create your own publication rule:

1. Publication Rules

Logon to NetWeaver Administrator SOA Management Application and Scenario Communication Publication Rules

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 38

Page 39: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

More information about publication rules you can find at:

http://help.sap.com/saphelp_nwce711/helpdata/EN/48/568377708131c3e10000000a42189d/frameset.htm

How to use SOA Manager to publish services in ABAP, you can find at:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b0/787748cf3a4200bb1ba32a62aa8519/frameset.htm

2. Check the Publication of the Service

You can trigger search again and can see both the service definitions – model and configured

2.1 Configuration States in Services Registry 2.1.1 Modelled

Configuration states in Services Registry depend on the simplified lifecycle of the service. The design phase ends with the publishing the service interface as a service definition by ES Repository or any other similar third-party tool. This state is classified as ‘Modelled’.

Modelled - service definition (port type) representing only a model of the service; no endpoints available.

2.1.2 Activated/Deployed

The following steps are the implementation of the provider side in Java/ABAP/.Net/other and respectively the consumer side. Depending on the technology used the already implemented component is activated, deployed or published on the corresponding application server (NetWeaver, IIS). At this point the publication to Services Registry can be triggered and the result will be a set of services with state “Activated/Deployed”

Implementation is activated (ABAP) / deployed (JAVA) on a physical system; endpoints are not configured.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 39

Page 40: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

2.1.3 Configured

Actual configuration at the backend is the step when the endpoint are exposed and ready to be used. Different configuration options are available for transport protocol, authentication mechanism, encryption, etc. which may reflect on the location address of the WSDL itself. One service can be configured to expose multiple endpoints. During the automatic publication process this information about the services and the endpoints is transferred again to the central Services Registry.

Configured - endpoints are configured and ready to use.

Inspection of the service with an endpoint can be done via the Services Registry:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 40

Page 41: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

3. Test the Endpoint

You can test a call against the endpoint via WSNavigator by pressing Test button:

3.1 Choose an operation from the list and press Next:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 41

Page 42: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

3.2 Fill in the parameters:

3.3 By clicking Next you can perform the actual call to the target address of the endpoint and receive the

response:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 42

Page 43: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

Conclusion To summarize we demonstrated the life-cycle of Enterprise Services by Defining, Implementing, Publishing and testing the web service using Enterprise Services Repository and Registry.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 43

Page 44: Enterprise Services Repository and Registry

Enterprise Services Repository and Registry

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 44

Copyright © Copyright 2009 SAP AG. All rights reserved.

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, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.

IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.

Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.

Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States 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, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.

HTML, XML, XHTML and W3C 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.

SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, 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 other countries.

Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.

All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.