nmukhi 2002/12/20 09:38:42 Modified: java/samples/complexsoap/client/dynamic README.html Run.java java/samples/customfactory/client/stub README.html java/samples/ejb/client/dynamic Run.java java/samples/ejb/client/stub Run.java java/samples/localjava/client/dynamic README.html java/samples/localjava/client/stub Run.java java/samples/simplesoap/client/stub Run.java Log: Minor modifications to samples Revision Changes Path 1.4 +1 -1 xml-axis-wsif/java/samples/complexsoap/client/dynamic/README.html Index: README.html =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/complexsoap/client/dynamic/README.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- README.html 12 Dec 2002 14:41:01 -0000 1.3 +++ README.html 20 Dec 2002 17:38:41 -0000 1.4 @@ -10,7 +10,7 @@ <h2> Web Services Invocation Framework:<br> Invoking the SimpleSOAP Sample using WSIF's dynamic invocation interface</h2> -<p>After you have <a href="../../../../doc/samples.html">set up the CLASSPATH in your environment</a>, to invoke this sample using WSIF's DII, run the <tt>Run</tt> class located in this directory. Specify as command line arguments the location of the WSDL file for the service and the zip code you are interested in. For example, <br><tt>java complexsoap.clients.dynamic.Run samples/complexsoap/Zip2Geo.wsdl 10005</tt></p> +<p>After you have <a href="../../../../doc/samples.html">set up the CLASSPATH in your environment</a>, to invoke this sample using WSIF's DII, run the <tt>Run</tt> class located in this directory. Specify as command line arguments the location of the WSDL file for the service and the zip code you are interested in. For example, <br><tt>java complexsoap.client.dynamic.Run samples/complexsoap/Zip2Geo.wsdl 10005</tt></p> <p>Look at the code in the <tt>Run.java</tt> file in this directory to see how to use WSIF's DII yourself. Note that the <tt>DynamicInvoker</tt> class we used to <a href="../../../simplesoap/client/dynamic/README.html">invoke the simplesoap sample dynamically</a> cannot be used for this one since the <tt>DynamicInvoker</tt> as it stands now is limited to invocation of services using primitive schema types only.</p> <hr width="100%"> </body></html> 1.4 +1 -1 xml-axis-wsif/java/samples/complexsoap/client/dynamic/Run.java Index: Run.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/complexsoap/client/dynamic/Run.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Run.java 12 Dec 2002 20:19:12 -0000 1.3 +++ Run.java 20 Dec 2002 17:38:41 -0000 1.4 @@ -16,7 +16,7 @@ // args[0] is the zip code if (args.length != 2) { System.out.println( - "Usage: java samples.complexsoap.client.dynamic.Run <wsdl location> <zip code>"); + "Usage: java complexsoap.client.dynamic.Run <wsdl location> <zip code>"); System.exit(1); } 1.2 +1 -1 xml-axis-wsif/java/samples/customfactory/client/stub/README.html Index: README.html =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/customfactory/client/stub/README.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- README.html 20 Dec 2002 12:53:22 -0000 1.1 +++ README.html 20 Dec 2002 17:38:42 -0000 1.2 @@ -12,7 +12,7 @@ Invoking the CustomFactory Sample through a high level stub interface</h2> First, you must <a href="../../../../doc/samples.html">set up the CLASSPATH in your environment</a>. <p>This directory contains a file called <tt>Run.java</tt> that contains the <tt>main</tt> method. This is the logic that uses the generated stub interface to run the sample. So you can run this class, specifying on the command line the location of the WSDL file for the sample and the symbol for the company whose stock quote you are interested in. For example, <br> -<tt>java simplesoap.client.stub.Run samples/simplesoap/StockquoteSOAP.wsdl IBM</tt></p> +<tt>java customfactory.client.stub.Run samples/customfactory/StockquoteService.wsdl IBM</tt></p> <p>To generate the stub interface, you can use any tool that generates Java interfaces for WSDL services using their port type descriptions, such as WSDL2Java from Axis. WSIF assumes a correspondence between the generated Java interface and the WSDL port type that has its abstract description as specified in the JAX-RPC specification. This particular sample used WSDL2Java in the following way:<br> <tt>java org.apache.axis.wsdl.WSDL2Java ../../StockquoteSOAP.wsdl</tt><br> After the tool finished running, we deleted all the generated files except <tt>NetXmethodsServicesStockquoteStockQuotePortType.java</tt> (this is the java interface corresponding to the port type and is all that is required by WSIF).</p> 1.2 +1 -1 xml-axis-wsif/java/samples/ejb/client/dynamic/Run.java Index: Run.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/ejb/client/dynamic/Run.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Run.java 13 Dec 2002 22:59:55 -0000 1.1 +++ Run.java 20 Dec 2002 17:38:42 -0000 1.2 @@ -136,7 +136,7 @@ public static void main(String [] args) throws Exception { if(args.length!=1) { - System.out.println("Usage: java samples.java.client.dynamic.Run <wsdl location>"); + System.out.println("Usage: java ejb.client.dynamic.Run <wsdl location>"); System.exit(1); } // create a service factory 1.2 +1 -1 xml-axis-wsif/java/samples/ejb/client/stub/Run.java Index: Run.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/ejb/client/stub/Run.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Run.java 13 Dec 2002 22:59:55 -0000 1.1 +++ Run.java 20 Dec 2002 17:38:42 -0000 1.2 @@ -137,7 +137,7 @@ try { if (args.length != 1) { System.out.println( - "Usage: java samples.ejb.client.stub.Run <wsdl location>"); + "Usage: java ejb.client.stub.Run <wsdl location>"); System.exit(1); } 1.3 +1 -1 xml-axis-wsif/java/samples/localjava/client/dynamic/README.html Index: README.html =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/localjava/client/dynamic/README.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- README.html 12 Dec 2002 14:41:02 -0000 1.2 +++ README.html 20 Dec 2002 17:38:42 -0000 1.3 @@ -10,7 +10,7 @@ <h2> Web Services Invocation Framework:<br> Invoking the Java Sample using WSIF's dynamic invocation interface</h2> -<p>After you have <a href="../../../../doc/samples.html">set up the CLASSPATH in your environment</a>, to invoke this sample using WSIF's DII, run the <tt>Run</tt> 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, <br><tt>java localjava.clients.dynamic.Run samples/java/AddressBook.wsdl</tt></p> +<p>After you have <a href="../../../../doc/samples.html">set up the CLASSPATH in your environment</a>, to invoke this sample using WSIF's DII, run the <tt>Run</tt> 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, <br><tt>java localjava.client.dynamic.Run samples/localjava/AddressBook.wsdl</tt></p> <p>Look at the code in the <tt>Run.java</tt> file in this directory to see how to use WSIF's DII yourself. Note that the <tt>DynamicInvoker</tt> class we used to <a href="../../../simplesoap/client/dynamic/README.html">invoke the SimpleSOAP sample dynamically</a> cannot be used for this one since the <tt>DynamicInvoker</tt> as it stands now is limited to invocation of services using primitive schema types only.</p> <hr width="100%"> </body></html> 1.3 +1 -1 xml-axis-wsif/java/samples/localjava/client/stub/Run.java Index: Run.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/localjava/client/stub/Run.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Run.java 12 Dec 2002 20:19:12 -0000 1.2 +++ Run.java 20 Dec 2002 17:38:42 -0000 1.3 @@ -137,7 +137,7 @@ try { if (args.length != 1) { System.out.println( - "Usage: java samples.localjava.client.stub.Run <wsdl location>"); + "Usage: java localjava.client.stub.Run <wsdl location>"); System.exit(1); } 1.4 +1 -1 xml-axis-wsif/java/samples/simplesoap/client/stub/Run.java Index: Run.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/samples/simplesoap/client/stub/Run.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- Run.java 12 Dec 2002 20:19:13 -0000 1.3 +++ Run.java 20 Dec 2002 17:38:42 -0000 1.4 @@ -21,7 +21,7 @@ if (args.length != 2) { System.out.println( - "Usage: java samples.simplesoap.client.stub.Run <wsdl location> <company symbol>"); + "Usage: java simplesoap.client.stub.Run <wsdl location> <company symbol>"); System.exit(1); }