6 Testing Published Business Services from JDeveloper 11g

This chapter contains the following topics:

6.1 Editing the SBFProjects.library

The SBFProjects.library file contains the list of JD Edwards EnterpriseOne foundation JAR files that are added to the classpath of any business service project opened in JDeveloper. The SBFProjects.library file must be edited to add three additional JAR files.

The SBFProjects.libraryfolder is at this location:

\\EnterpriseOne InstallDirectory\system\classes

Open the SBFProjects.library file in notepad and add the ApplicationAPIs_JAR.jar, ApplicationLogic_JAR.jar and BizLogicContainerClient_JAR.jar files.

Add ApplicationAPIs_JAR.jar and ApplicationLogic_JAR.jar as the first entries under the <entries> element and the BizLogicContainerClient_JAR.jar after the BizLogicContainer_JAR.jar element, as illustrated in this example:

<?xml version = '1.0' encoding = 'UTF-8'?>
<JLibraryNode nselem="JLibraryNode" class="oracle.jdeveloper.library.JLibraryNode" deployedByDefault="false" xmlns="http://xmlns.oracle.com/jdeveloper/101303/jlibrarynode">
   <classPath>
      <entries>       
                <Item path="ApplicationAPIs_JAR.jar " jar-entry=""/>"
                <Item path="ApplicationLogic_JAR.jar " jar-entry=""/>"
                <Item path="Base_JAR.jar " jar-entry=""/>"
                <Item path="BizLogicContainer_JAR.jar " jar-entry=""/>"
                <Item path="BizLogicContainerClient_JAR.jar " jar-entry=""/>"

Save the changes.

6.2 Starting the Integrated WebLogic Server

Next you start the Integrated WebLogic Server.

To start the Integrated WebLogic Server:

  1. In JDeveloper 11g, go to View, and then click Application Server Navigator:

  2. Go to View, and then click Application Server Navigator.

    IntegratedWebLogicServer appears under Application Servers.

  3. Right-click on IntegratedWebLogicServer, and then select Start Server Instance.

6.3 Creating Web Services

You create web services using JDeveloper 11g.

To create web services:

In JDeveloper 11g:

  1. Right-click on your java code (for example, CustomerManager.java), and then select Create Web Service.

  2. Accept the default value for Web Service Name (for example, CustomerManagerService.)

  3. Accept the default value for Port Name (for example, CustomerManagerPort.)

  4. Next, take the default values.

  5. In Message Format, change the SOAP Message Format to Document/Literal.

  6. In Available Methods, select the Available Method that you want to test.

  7. Accept the defaults for the remaining values.

  8. Click Finish.

    This message appears:

    **
    Generating WSDL and mapping file
    WARNING: OWS-00077 The Value Type class: oracle.e1.bssvfoundation.base.ValueObject does not have a valid Java Bean pattern.
    Adding service files to deployment profile
    Service generation finished
    Generation complete. **
    

6.4 Editing Project Properties

Edit the project properties to ensure that the SBFProjects library is added to the deployment profile of the business service project in JDeveloper 11g.

To edit project properties:

  1. In JDeveloper 11g, right-click the business service project, and then select Project Properties.

  2. Click Deployment and highlight your deployment profiles; for example, JP010020.

  3. Click Edit on the right-hand side.

  4. In Web-INF/lib, click Contributors, and then select SBFProjects library.

  5. In the Filter section, select the Presence of the E1 Specific Jar files.

    This should already be selected, but make sure that BizLogicContainerClient_JAR.jar is selected.

  6. In the Platform, click Target connection, and then select the Integrated WebLogic Server.

    The default platform should be WebLogic 10.3.

  7. Click OK, and then click OK again to save your changes.

6.5 Deploying the Project

You deploy your business services project by right clicking on your project and selecting Deploy. Then select the Integrated WLS.

You should receive messages similar to the following during the deployment process:

**
[01:00:32 PM] ----  Deployment started.  ----
[01:00:32 PM] Target platform is  (Weblogic 10.3).
[01:00:38 PM] Retrieving existing application information
[01:00:39 PM] Running dependency analysis...
[01:00:39 PM] Building...
[01:00:48 PM] Deploying profile...
[01:01:02 PM] Wrote Web Application Module to C:\E900\PS900\Java\source\oracle\e1\bssv\JP010020\deploy\JP010020.war
[01:01:04 PM] Redeploying Application...
[01:01:44 PM] [Deployer:149192]Operation 'deploy' on application 'JP010020' is in progress on 'DefaultServer'
[01:01:45 PM] [Deployer:149194]Operation 'deploy' on application 'JP010020' has succeeded on 'DefaultServer'
[01:01:45 PM] Application Redeployed Successfully.
[01:01:45 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
[01:01:45 PM] http://10.139.119.189:7101/context-root-JP010020
[01:01:45 PM] Elapsed time for deployment:  1 minute, 13 seconds
[01:01:45 PM] ----  Deployment finished.  ----
**

6.6 Testing the Business Service

After you deploy your business service project, you should test it. You test your business service on your Integrated WebLogic Server. Use one of these links to access your WebLogic Server:

  • http://localhost:7101/console/login/LoginForm.jsp

  • http://IPorMachineNameofJdev11g:7101/console/login/LoginForm.jsp

The default user ID and password to log in to the Integrated WebLogic Server are weblogic and weblogic1, respectively.

To test the business service:

  1. Open your Integrated WebLogic Server.

  2. In the Integrated WebLogic Server Admin Console, navigate to:

    Environment::Servers::Default Server::Deployments

  3. Expand the BSSV for example, JP010020.

  4. Click on your web service; for example, CustomerManagerService.

  5. Select the Testing tab.

  6. Expand the name and click on the test client.

  7. Modify your request document and test your business service.

The following example shows the test request and results for getCustomerCreditInformation:

Request:

<getCustomerCreditInformation xmlns="http://oracle.e1.bssv.JP010020/">
<entity>
<entityId>1001</entityId>
</entity>
</getCustomerCreditInformation>

Result:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Header />
    <env:Body>
    <orac:getCustomerCreditInformationResponse xmlns:orac="http://oracle.e1.bssv.JP010020/">
      <orac:e1MessageList />
      <orac:creditHoldExempt>false</orac:creditHoldExempt>
      <orac:amountTotalExposure>191976.8</orac:amountTotalExposure>
      <orac:entity>
        <orac:entityLongId />
        <orac:entityTaxId>66595263000170      </orac:entityTaxId>
        <orac:entityId>1001</orac:entityId>
      </orac:entity>
      <orac:amountCreditLimit>30000.00</orac:amountCreditLimit>
    </orac:getCustomerCreditInformationResponse>
  </env:Body>
  </env:Envelope>

Note:

If you are using SQL Server 2008, add sqljdbc4.jar to the SBFProjects.library and 000\MISC folder.

6.7 Troubleshooting Tips

If you have any issues while testing the business service, configure the following logs for further information.

  • BSSV log-configured using jdelog.properties.

  • IntegratedWeblogicServer log-This log is located at:

    C:\Documents and Settings\USER_PROFILE\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs