sap netweaver – demo model: java demo enterprise services ...€¦ · business objects: sales...

13
SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1) SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 1 SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1) Applies to: SAP NetWeaver Composition Environment 7.1, Enterprise Services Repository (ESR) for SAP NetWeaver Composition Environment 7.1 Summary The purpose of this article is to describe the definition and usage of Demo Enterprise Services which are automatically deployed during a CE 7.1 installation. Furthermore it is explained how to import the definitions of these services into the ESR . Besides it is important to mention that the Demo Enterprise Services are one element of the SAP NetWeaver – Demo Model which has been developed to ensure consistent demos, training material, and documentation across all SAP NetWeaver technologies. Author(s): Matthias Kretschmer Company: SAP AG Created on: 11 January 2008 Author Bio Matthias Kretschmer joined SAP in September 2001 as a BA Student (Information Technology). During his studies Matthias had the opportunity to gain an insight into several departments within SAP, e.g. Mobile Infrastructure, Technology Consulting and MaxDB. Matthias successfully completed his studies in September 2004. From 01.10.2004 until 31.07.2006 Matthias worked in the SAP NetWeaver ESI F XPI department (XI Runtime, Monitoring) as a software developer (Java, ABAP). At the moment Matthias works as a product specialist for the SAP NetWeaver Demo Team within SAP NetWeaver Product Management.

Upload: others

Post on 19-Apr-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 1

SAP NetWeaver – Demo Model: Java Demo Enterprise Services(SAP NetWeaver Composition Environment 7.1)

Applies to:SAP NetWeaver Composition Environment 7.1, Enterprise Services Repository (ESR) for SAP NetWeaverComposition Environment 7.1

SummaryThe purpose of this article is to describe the definition and usage of Demo Enterprise Services which areautomatically deployed during a CE 7.1 installation. Furthermore it is explained how to import the definitionsof these services into the ESR. Besides it is important to mention that the Demo Enterprise Services are oneelement of the SAP NetWeaver – Demo Model which has been developed to ensure consistent demos,training material, and documentation across all SAP NetWeaver technologies.Author(s): Matthias KretschmerCompany: SAP AGCreated on: 11 January 2008

Author BioMatthias Kretschmer joined SAP in September 2001 as a BA Student (InformationTechnology). During his studies Matthias had the opportunity to gain an insight into severaldepartments within SAP, e.g. Mobile Infrastructure, Technology Consulting and MaxDB.Matthias successfully completed his studies in September 2004.From 01.10.2004 until 31.07.2006 Matthias worked in the SAP NetWeaver ESI F XPIdepartment (XI Runtime, Monitoring) as a software developer (Java, ABAP).At the moment Matthias works as a product specialist for the SAP NetWeaver Demo Teamwithin SAP NetWeaver Product Management.

Page 2: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 2

Table of ContentsJava Demo Enterprise Services – Definition ................................................................................3

How to get the Demo Enterprise Service Definitions ................................................................4Java Demo Enterprise Services – Usage..................................................................................... 6

Prerequisites ...........................................................................................................................6Sales Order .............................................................................................................................7Purchase Order .......................................................................................................................9Business Partner ................................................................................................................... 10Product.................................................................................................................................. 11

Related Content ........................................................................................................................ 12Copyright .................................................................................................................................. 13

Page 3: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 3

Java Demo Enterprise Services – Definition

This chapter illustrates the definition of the Demo Enterprise Services which operate on the following 4Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. thefoundation of the SAP NetWeaver CE Sample Application Customer Service Care.

As the Demo Enterprise Services follow the Outside-In Approach they were designed in the EnterpriseService Builder of the Enterprise Services Repository. This design content consists of the following elements:

Service Interfaces Message Types Data Types based on Global Data Types

All these elements are part of the software component version NW DEMO 7.10:

Page 4: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 4

How to get the Demo Enterprise Service Definitions

The first way to get (XI CONTENT) NW DEMO 7.10 is to use the following link which can also be found inthe Related Content Area:

SAP_NetWeaver_CE_7.1_SR3_ESR_Sample_Content

Furthermore NW DEMO 7.10 can be downloaded from SAP Service Marketplace: http://service.sap.com.Please navigate to the following section:

After successfully downloading this .zip file you have to extract it and import it into the ESR. This can bedone in the Enterprise Service Builder: Tools => Import Design Objects.

Page 5: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 5

Page 6: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 6

Java Demo Enterprise Services – Usage

This chapter describes the use of the Demo Enterprise Services which operate on the following 4 BusinessObjects: Sales Order, Purchase Order, Business Partner, and Product. These services are included in thesoftware component archive (SCA) SAPNWDEMO which is automatically deployed during a CE installation.Therefore you can test them via the Web Services Navigator on any SAP NetWeaver CE 7.1 systemhttp://<host>:<port>/wsnavigator (User has to have proper access rights).

Prerequisites

To be able to use these Demo Enterprise Services you have to execute the following procedure:1. Open the start page of the SAP NetWeaver Application Server Java using the following URL:

http://<host>:<port>2. Choose Web Services Navigator.

3. Enter the following URL in the WSDL URL field:http://<host>:<port>/NWDemoAdminBeanService/NWDemoAdminBean?wsdl

4. Choose Go.5. Select the generateData operation and select the Endpoint in WSDL option under Configuration.

6. Choose Execute.

Page 7: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 7

Sales Order

a) Sales Order by ID

Technical Data

Entity Type Service interface

Technical Name in EnterpriseServices Repository (ESR)

SalesOrderByIDQueryResponseIn

Namespace in ESR http://sap.com/xi/JNWDemo

Software Component Versionin ESR

NW DEMO 7.10

Category Inbound

Mode Synchronous

WSDL http://<host>:<port>/SalesOrderByIDQueryResponseInImplBeanService/SalesOrderByIDQueryResponseInImplBean?wsdl

DefinitionA request to and response from Sales Order Processing to provide order data.

UseThe service Sales Order by ID is used by the seller to display a sales order.

The following value must be supplied:

SalesOrderID – number of the sales document in the back-end system, range: 5000000000 to5000000054

FeaturesThis service processes the following message types:

SalesOrderByIDQuery SalesOrderByIDResponse

Error HandlingThe input parameters are checked for consistency and plausibility. If the order cannot be displayed, the errormessage is published in the message log.

Page 8: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 8

b) Sales Order ID by Buyer

Technical Data

Entity Type Service interface

Technical Name in EnterpriseServices Repository (ESR)

SalesOrderIDByBuyerQueryResponseIn

Namespace in ESR http://sap.com/xi/JNWDemo

Software Component Versionin ESR

NW DEMO 7.10

Category Inbound

Mode Synchronous

WSDL http://<host>:<port>/SalesOrderIDByBuyerQueryResponseInImplBeanService/SalesOrderIDByBuyerQueryResponseInImplBean?wsdl

DefinitionA request to and response from Sales Order Processing to provide an order history of a business partner.

UseThe service Sales Order ID by Buyer enables the seller to search for the sales orders per business partner.

The following value must be supplied:

BuyerID – business partner number (sold-to party in the back-end system), range: 1 to 16

FeaturesThis service processes the following message types:

SalesOrderIDByBuyerQuery SalesOrderIDByBuyerResponse

Error HandlingThe input parameters are checked for consistency and plausibility. If the check returns a negative, the errormessage is published in the message log.

Page 9: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 9

Purchase Order

a) Create Purchase Order

Technical Data

Entity Type Service interface

Technical Name in EnterpriseServices Repository (ESR)

PurchaseOrderCreateRequestConfirmationIn

Namespace in ESR http://sap.com/xi/JNWDemo

Software Component Versionin ESR

NW DEMO 7.10

Category Inbound

Mode Synchronous

WSDL http://<host>:<port>/PurchaseOrderCreateRequestConfirmationInImplBeanService/PurchaseOrderCreateRequestConfirmationInImplBean?wsdl

DefinitionA request to and confirmation from Purchase Order Processing to create a purchase order.

UseThe service Create Purchase Order is used by the buyer to create a purchase order. You have to supply allvalues which are mandatory. For SellerID, BuyerID, and ProductID you can use the corresponding valueswhich are mentioned in chapter 2.3 and 2.4 of this document.

FeaturesThis service processes the following message types:

PurchaseOrderCreateRequest PurchaseOrderCreateConfirmation

Error HandlingIf errors occur, the process terminates and a message is transferred to the application.

Page 10: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 10

Business Partner

a) Business Partner by ID

Technical Data

Entity Type Service interface

Technical Name in EnterpriseServices Repository (ESR)

BusinessPartnerByIDQueryResponseIn

Namespace in ESR http://sap.com/xi/JNWDemo

Software Component Versionin ESR

NW DEMO 7.10

Category Inbound

Mode Synchronous

WSDL http://<host>:<port>/BusinessPartnerByIDQueryResponseInImplBeanService/BusinessPartnerByIDQueryResponseInImplBean?wsdl

DefinitionBusiness Partner by ID is a service that reads the (basic) data of a business partner.

UseThe service Business Partner by ID can be used to retrieve business partner details, when the ID is known.

The following value must be supplied:

BusinessPartnerID – business partner number, range: 1 to 16

FeaturesThis service processes the following message types:

BusinessPartnerByIDQuery BusinessPartnerByIDResponse

Error HandlingThe input parameters are checked for consistency and plausibility. If the check returns a negative, the errormessage is published in the message log.

Page 11: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 11

Product

a) Product by ID

Technical Data

Entity Type Service interface

Technical Name in EnterpriseServices Repository (ESR)

ProductByIDQueryResponseIn

Namespace in ESR http://sap.com/xi/JNWDemo

Software Component Versionin ESR

NW DEMO 7.10

Category Inbound

Mode Synchronous

WSDL http://<host>:<port>/ProductByIDQueryResponseInImplBeanService/ProductByIDQueryResponseInImplBean?wsdl

DefinitionProduct by ID is a service that reads the (basic) data of a product.

UseThe service Product by ID can be used to retrieve product details, when the ID is known.

The following value must be supplied:

ProductID – product/material number, range: HT-1000 to HT-1003 & HT-1030 to HT-1032

FeaturesThis service processes the following message types:

ProductByIDQuery ProductByIDResponse

Error HandlingThe input parameters are checked for consistency and plausibility. If the check returns a negative, the errormessage is published in the message log.

Page 12: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 12

Related ContentSAP_NetWeaver_CE_7.1_SR3_ESR_Sample_Content

SAP_NetWeaver_CE_Sample_Application_Customer_Service_Care

Enterprise_Services_Repository_for_SAP_NetWeaver_CE_7.1_SR3

Page 13: SAP NetWeaver – Demo Model: Java Demo Enterprise Services ...€¦ · Business Objects: Sales Order, Purchase Order, Business Partner, and Product. These Services are e.g. the foundation

SAP NetWeaver – Demo Model: Java Demo Enterprise Services (SAP NetWeaver Composition Environment 7.1)

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

© 2008 SAP AG 13

Copyright© Copyright 2008 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, Outlook, and PowerPoint 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, System i, System i5, System p, System p5, System x, System z, System z9, z/OS, AFP, Intelligent Miner, WebSphere,Netfinity, Tivoli, Informix, i5/OS, POWER, POWER5, POWER5+, OpenPower and PowerPC are trademarks or registered trademarks ofIBM Corporation.

Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe SystemsIncorporated 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 ofCitrix Systems, Inc.

HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, MassachusettsInstitute 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 byNetscape.

MaxDB is a trademark of MySQL AB, Sweden.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as theirrespective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. Allother product and service names mentioned are the trademarks of their respective companies. Data contained in this document servesinformational 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 ("SAPGroup") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors oromissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in theexpress warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting anadditional warranty.

These materials are provided “as is” without a warranty of any kind, either express or implied, including but not limited to, the impliedwarranties of merchantability, fitness for a particular purpose, or non-infringement.

SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that mayresult from the use of these materials.

SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within thesematerials. SAP has no control over the information that you may access through the use of hot links contained in these materials anddoes not endorse your use of third party web pages nor provide any warranty whatsoever relating to third party web pages.

Any software coding and/or code lines/strings (“Code”) included in this documentation are only examples and are not intended to beused in a productive system environment. The Code is only intended better explain and visualize the syntax and phrasing rules ofcertain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errorsor damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or grossly negligent.