Web Services Invocation Framework:
Invoking the EJB Sample using WSIF's dynamic invocation interface

First you need to set up the CLASSPATH in your environment. Beyond the standard classpath setting, you also need to add the J2EE client jar files to your classpath. The set of J2EE client JARs is vendor specific. We have included below instructions for some app servers, follow that link if you happen to be using one of those, otherwise refer to the documentation in your application server on how to set up the environment for an EJB client.

Setting up the client on some app servers

Running the client

After you have set up your classpath, you can invoke this sample using WSIF's DII by running the Run class located in this directory. This class will populate an addressbook with two names and then query each of them by invoking various operations supported by the service. To run this class, specify on the command line the location of the WSDL file for the service. For example,
java ejb.client.dynamic.Run samples/ejb/AddressBook.wsdl

Look at the code in the Run.java file in this directory to see how to use WSIF's DII yourself. Note that the DynamicInvoker class we used to invoke the simplesoap sample dynamically cannot be used for this one since the DynamicInvoker as it stands now is limited to invocation of services using primitive schema types only.