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.
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.
Would you like to see this full item?