Requirements  Typical output for odl2soap.client.xlog1

Chapter 4: Web Services Templates

Running the sample

StepsUsing the SOAP client bridge sample

This sample uses e-Biz Impact and EAServer 5.0 or later with Sybase Web Services Toolkit and Eclipse.

NoteIf you are using EAServer 5.0., skip steps 1 through 3 and use HelloBridgeEAS500.jar.

  1. Install and set up EAServer.

    1. Install EAServer 5.0 or later. See the EAServer installation guide for your platform .

      NoteEclipse is installed as part of the standard EAServer installation when you install Web Services. To run Eclipse, you must have a complete JDK installation (jdk1.4 or later), which is not installed as part of the standard EAServer installation.

    2. Start EAServer.

    3. Start Eclipse and connect to EAServer.

      UNIX From the command line in the Shared/eclipse subdirectory, enter:

      ./starteclipse.sh
      

      Windows From the command line in the Shared\eclipse subdirectory, enter:

      starteclipse.bat
      

      or select Start | Run | Programs | Sybase | EAServer 5.0.0 | Eclipse.

    4. In Eclipse, select Window | Show View | Other.

    5. In the Show View window, expand the Sybase Web Services folder, select Sybase Web Services in the tree, and click OK.

      “Sybase Web Services Servers” displays in the Eclipse left pane with a server profile beneath it.

    6. Right-click the server profile (for example, “Default on <localhost>:8080”) and select Connect.

      Eclipse is now connected to the EAServer SOAP engine.

  2. Compile and deploy the SoapHello.java Web service.

    1. Select File | New | Project.

    2. Select Sybase Web Services and click Next.

    3. Enter the project name SoapHelloService and click Finish.

    4. Select the Package Explorer tab below the left pane, then right-click SoapHelloService and select Import.

    5. Select File System and click Next.

    6. Use Browse to navigate to the soapClientBridge directory (for example, \ImpactServer-5_4\samples\Java\soapClientBridge), and click OK.

    7. Select SoapHello.java and click Finish.

    8. From the Package Explorer, expand the SoapHelloService tree until you see SoapHello.java,

    9. Right-click SoapHello.java and select Quickly Deploy As Web Service.

    10. You see a message that the Web service ws/SoapHello has been successfully created and deployed. Click OK.

  3. Create SOAP client stubs and artifacts.

    1. Create a new project to hold artifacts and Impact DFC/SOAP bridge code.

      1. Select File | New | Project.

      2. Select Sybase Web Services and click Next.

      3. Enter the project name SoapHelloBridge and click Finish.

    2. Generate client artifacts.

      1. Click the Sybase Web Services tab at the bottom of the Eclipse upper-left pane.

      2. Expand the Web Services icon.

      3. Expand the WS icon.

      4. Right-click SoapHello and select Create Web Services Client.

      5. Select SoapHelloBridge and click Next.

      6. Leave the package name blank and click Next twice.

      7. Click Finish.

      8. You see a message that the generation was successful. Click OK.

    The SoapHelloBridge project now contains all required SOAP client stubs and artifacts for the SoapHello service.

  4. Compile the DFC/SOAP bridge plug-in.

    1. Select the Package Explorer tab below the left pane, then select SoapHelloBridge.

    2. Select Project | Rebuild All to compile the bridge.

    3. Right-click SoapHelloBridge and select Import.

    4. Select File system and click Next.

    5. Use Browse and navigate to the soapClientBridge directory (for example, ImpactServer-5_4\samples\Java\soapClientBridge) and click OK.

    6. Select SoapHelloBridge.java and HelloArgsWrapper.java and click Finish.

    7. Right-click SoapHelloBridge and select Properties.

    8. In the Properties window, select Java Build Path in the left pane, then select the Libraries tab in the right pane.

    9. Click Add External JARs.

    10. Navigate to the e-Biz Impact Java runtime directory (for example, \ImpactServer-5_4\classes\), select ims54rt.jar, and click Open.

    11. Click OK.

    12. Select Project | Rebuild All to compile the bridge.

      The e-Biz Impact bridge code and the SOAP client stubs are now compiled.

  5. Package the bridge plug-in.

    1. Right-click the default package icon beneath SoapHelloBridge and select Export.

    2. Select JAR file and click Next.

    3. Select the export destination. Use Browse to navigate to the soapClientBridge directory (for example, \ImpactServer-5_4\samples\Java\soapClientBridge).

    4. Select HelloBridgeEAS500.jar for the File Name and click Save. If you are prompted to save over an existing file, answer yes and continue.

    5. Click Finish in the JAR Export dialog box.

  6. Select File | Exit to close Eclipse.

  7. In a terminal window or at a command line, enter _start.cmd from the soapClientBridge directory.

  8. Inspect the logs odl2soap.client.xlog1, odl2soap.bridge.xlog1, and the SOAP engine log for success indications.





Copyright © 2005. Sybase Inc. All rights reserved. Typical output for odl2soap.client.xlog1

View this book as PDF