Rabu, 23 November 2011

JDE Business Services

JDE Business Services

About: JD Edwards EnterpriseOne Business Services

E1 Business Services is the alternate name for Web Services. With the world moving towards Service Oriented Architecture (SOA), EnterpriseOne too has implemented Business Services as a gateway that provides native web services capabilities. JD Edwards EnterpriseOne business services enable you to fully capitalize on the benefits of service oriented architecture (SOA) by providing native support of Web services, including the capabilities to develop, publish, consume, and administer Web services directly from JD Edwards EnterpriseOne Tools. Business services are a set of Java-based business functions created to perform discrete units of work. They can interact with external systems in the form of a Web service.
Business Services – A set of Self-contained, stateless Business Functions that accept one or more requests and returns one of more responses through a well-defined, standards based interface. These services perform discrete units of work such as editing and processing a transaction (e.g. Price Lookup, Currency conversion, Add Order, Weather check etc.)

Web Services & WSDL Overview

Interoperability has Highest Priority with respect to EnterpriseOne, where all major platforms can access the Web using Web browsers, different platforms can interact. For these platforms to work together, Web-applications are developed. Web-applications are simple applications that run on the web. These are built around the Web browser standards and can be used by any browser on any platform.
Web Services take Web-applications to the Next Level. By using Web services, your application can publish its function or message to the rest of the world. Web services use XML to code and to decode data, and SOAP to transport it (using open protocols).
Web Services are published, found, and used through the Web. These services communicate using open, Platform independent protocols like HTTP, SOAP, XML etc. Web services can be discovered using UDDI.
By using Web services, your application can publish its function or message to the rest of the world. Web services can be used by other applications. Web services use XML to code and to decode data, and SOAP to transport it (using open protocols). We can expose business logic of an application that can be accessed by any other application, by using SOAP calls over HTTP protocol.
Web Services have Two Types of Uses
  • Reusable application-components.
    • Web services can offer application-components like: currency conversion, weather reports, or even language translation as services.
  • Connect existing/legacy software.
    • Interoperability is the key to using Web Services which gives different applications a way to link their data through standard XML.
    • Using Web services you can exchange data between different applications and different platforms.
Elements of Web Services:
  • SOAP (Simple Object Access Protocol)
    SOAP is an XML-based communication protocol to let applications exchange information messages over HTTP via Internet, also allows to get around firewalls.
  • WSDL (Web Services Description Language)
    WSDL is an XML-based language for locating and describing Web services. Client can read the WSDL to determine what functions are available on the server and can then use SOAP to call one of the functions listed in the WSDL
  • UDDI (Universal Description, Discovery and Integration)
    UDDI is a directory service where companies can register and search for Web services, described by WSDL
BSSV tools release

Business Services do undergo the same standard life-cycle as other E1 objects. Its security too can be controlled via the standard E1 Security workbench.
E1 provides interoperability with other Oracle products and third-party products and systems by natively producing and consuming web services.
  • As a web service provider, E1 exposes Web Service for consumption by external systems or JDE itself.
  • As a web service consumer, E1 calls an external web service from within the E1 business logic layer that in turn calls the BSFN.
Business Services being E1 Objects, it is tightly integrated with the development methodologies and follows the similar change management procedure. They provides lookup, add, change and delete to process a business transaction. It can also post XML data over HTTP and Queues, and similarly can be used to connect to external Databases, external Queues, FTP server locations etc
Business Services Server
The business services server enables E1 to natively produce and consume web services. It is built on top of J2EE server it can run on either Oracle Application Server or Websphere Application Server. Oracle Application Server or Websphere Application Server  can be used as its J2EE server.
BSSV server contains Business Service foundation and Business Service reference implementation. It sets access to run published business services is managed through the E1 security Workbench.
It also regulates the authentication for consuming Web services, which uses standard JD Edwards E1 user credentials or anonymous login. BSSV server uses JAAS module to validate the JD E1 users against the E1 security Server.
Web Services Providers – (Outbound / Inbound to JDE)
  • Exposes web services for consumption by external system
  • Web service is generated from a Java class called a published business service class
Web Services Consumers – (Outbound / Inbound to JDE)
  • Calls an external web service from within the JD Edwards Enterprise One business logic layer.
Web Services Event Notification – Outbound to JDE
  • Real time transaction notification
  • RTE – Real time events
  • XAPI events
  • Table Z.
  • Legal System to support Web Services.

Sabtu, 19 November 2011

Web Service

About Web services

Web services allow you to use preexisting components (available on the Internet or on a local network) instead of writing new business logic to perform common tasks invoked by the applications that you develop. Web services originated when the Simple Object Access Protocol (SOAP) was introduced. SOAP leverages Extensible Markup Language (XML) and usually employs Hypertext Transfer Protocol (HTTP) as the transport. Invoking Web services through SOAP requires serialization and deserialization of datatypes, and the building and parsing of SOAP messages.
Part of the value of Web services comes from the Web Services Description Language (WSDL), which enables a service to be self-describing. WSDL defines an XML grammar for describing Web services as collections of communication endpoints capable of exchanging messages. WSDL service definitions provide documentation for distributed systems and serve as a recipe for automating the details involved in applications communication.
With SOAP and WSDL, using third-party components is easier because interfaces between applications become standardized across disparate platforms.
PowerBuilder supports the following Web services standards:
  • SOAP 1.1 or later
  • WSDL 1.1 or later
  • HTTP or HTTPS

 

Service-enable JD Edwards EnterpriseOne with Oracle SOA Suite 11gR1

In this tutorial, we show how to implement native web services integration to JD Edwards EnterpriseOne from Oracle SOA Suite 11gR1.
There are several new features in Fusion Middleware 11g that enable the creation of Service Oriented Architectures with JD Edwards EnterpriseOne applications and to develop business processes and composite applications using the relevant Fusion Middleware technology.
New features include:

  • Simplified development experience via support for Service Component Architecture and the SOA Composite Editor (JDeveloper)
  • Enhanced human workflow offers new JSF based rich client framework, ADF task flow forms and integration with Microsoft Office
  • WebCenter Spaces to facilitate efficient interaction and collaboration among project teams
  • Unified management and monitoring capability, including end-to-end instance tracking across all service engines
  • Automated upgrade path from 10g
  • Robust performance and scalability via the underlying WebLogic Application Server infrastructure

While a detailed discussion (or the list) of the new features is outside the scope of this discussion, this whitepaper talks about "What's new in Oracle SOA Suite 11g".Tutorial overviewJD Edwards EnterpriseOne supports native web services and exposes a number of functions as Business Services. We show how BPEL makes a service call out to a JD Edwards web service to retrieve the customer credit information. The resulting data is then transformed to output only the fields of interest.
Software Used

  • JD Edwards EnterpriseOne Apps 8.12 with Tools 8.97
  • Oracle SOA Suite version 11gR1 (available for download from OTN)
  • Oracle JDeveloper version 11gR1 (available for download from OTN)
Implementation
The main process steps are:

  1. Generate a WSDL in EnterpriseOne for Customer Credit information*
  2. Create a synchronous BPEL process to consume this WSDL.
  3. Transform the resulting output from getCustomerCreditInfo operation into the desired format.

Note:
  1. We assume step #1 has already been executed. Details on exposing a web service and generating the corresponding WSDL are available here.
  2. The WSDL and the schema used in steps #2 and #3 are available here and here.