Creating a Business Service Class
After you create the web service proxy and the value object class, you create a business service class. This business service is a wrapper for the web service proxy. The business service wrapper is necessary because:
Only internal business services that match the JD Edwards EnterpriseOne business service methodology can be called from the enterprise server.
Most likely some conversion between the JD Edwards EnterpriseOne data types and the data types required by the web service provider will be required.
To create a business service class:
Add classes to the business service object.
Create the business service class.
Name the business service class.
Create a transaction, if necessary (IConnection object).
Declare a business service public method.
Add business service logic:
Map from the value object to the format needed by the external web service.
Create a call to the web service proxy.
Use business service properties.
Use softcoding.
Handle errors.
Format data.
After you create the business service for calling an external web service, you can create a JD Edwards EnterpriseOne business function that calls this business service. You can also create or use an existing JD Edwards EnterpriseOne application to call the business function.