Consume Enterprise Services in Java Using SAP NetWeaver Developer Studio to Achieve Your Business Process Goals

  • by Prasad Illapani, Solution Architect/PL RIG Specialist, SAP Labs LLC
  • January 15, 2009
Find out how to connect to the Services Registry, download the service from it, and design, deploy, and test the service using the Java 2 Platform, Enterprise Edition (J2EE) engine in an SAP NetWeaver Developer Studio environment. Learn how you can publish a service using SAP NetWeaver Administrator on the Java side, browse and download an enterprise service to SAP NetWeaver Developer Studio, and finally, develop, implement, and deploy a Web service client application using SAP NetWeaver Developer Studio.
Key Concept

Publication restriction means that only authorized consumers may publish certain information, and that the restriction may be enforced by legal means.

Enterprise services form the backbone of many business processes in SAP customer landscapes. Recently, they’ve also become extremely important in the development of consumer applications (a.k.a. Web service client applications).

Using the example of the ManageCustomer enterprise service, I’ll show you how to create, connect to, and consume those enterprise services with Java (designed in the Enterprise Services [ES] Repository of the service-oriented architecture [SOA] infrastructure). In an earlier article, Susanne Rothaug, SAP’s product manager for SAP NetWeaver, and I explained the same process using ABAP: “Use SAP NetWeaver PI 7.1 tools for provisioning and consuming enterprise services in ABAP,” which was posted to the SAP Professional Journal knowledgebase in September/October 2008.

I also discuss how to publish an enterprise service to the Services Registry via SAP NetWeaver Administrator. Then, I give you a step-by-step approach for how to consume a service from the Services Registry using SAP NetWeaver Developer Studio. You can implement, configure, and consume services in Java from the Services Registry using the SAP NetWeaver Developer Studio tools.

Next, the article takes a closer look at SAP NetWeaver Developer Studio, how to use it to connect to the Services Registry, how to download the service from the Services Registry, and what steps are required to design and deploy the service to the J2EE engine in an SAP NetWeaver Developer Studio environment and test the service.

Figure 1 provides an overview of the main steps and tools involved in creating a service. Using SAP NetWeaver Developer Studio, you connect to the Services Registry, browse and search for the service, download it to SAP NetWeaver Developer Studio, and develop a consumer application scenario using the Web Services Description Language (WSDL) service that I show you how to download below. (The WSDL represents the model used to describe a Web service defined as a collection of network endpoints or ports.) The steps show you how to configure SAP NetWeaver Developer Studio to connect to the Services Registry and download the WSDL service via the wizard.

Prasad Illapani

Prasad Illapani is a solution architect/PL RIG specialist with the BST SAP NetWeaver Solution Management RIG team at SAP Labs LLC, in Redmond, Washington, where he focuses on both the development and systems areas of SOA middleware technologies. He has been with SAP Labs for nearly eight years. During this time, he has also been part of the SAP Supplier Relationship Management (SAP SRM) team, working as a Regional Implementation Group (RIG) Specialist in various Ramp-Up SAP SRM integration projects. Prasad holds a master’s degree in computer science and a bachelor’s degree in civil engineering. He is a regular speaker at SAP TechEd, SAP SDN, and Wellesley Information Services’ SAP Insider conferences.

See more by this author


Comments

No comments have been submitted on this article. 


Please log in to post a comment.

To learn more about subscription access to premium content, click here.