nmukhi      2002/12/10 07:31:20

  Modified:    java/samples/complexsoap/client/dynamic Run.java
               java/samples/complexsoap/client/stub Run.java
               java/samples/simplesoap/client/stub Run.java
  Log:
  Minor edits
  
  Revision  Changes    Path
  1.2       +2 -2      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Run.java  10 Dec 2002 11:03:26 -0000      1.1
  +++ Run.java  10 Dec 2002 15:31:20 -0000      1.2
  @@ -15,7 +15,7 @@
       public static void main(String [] args) throws Exception {
        // args[0] is the zip code
        if(args.length!=2) {
  -         System.out.println("Usage: java samples.ComplexSOAP.client.dynamic.Run 
<wsdl location> <zip code>");
  +         System.out.println("Usage: java samples.complexsoap.client.dynamic.Run 
<wsdl location> <zip code>");
            System.exit(1);
        }
        // create a service factory
  @@ -26,7 +26,7 @@
                                                 "Zip2GeoSoap"); 
        // map types
        service.mapType(new QName("http://ws.cdyne.com","LatLongReturn";),
  -                     Class.forName("com.cdyne.ws.LatLongReturn"));
  +                     
Class.forName("complexsoap.client.stub.com.cdyne.ws.LatLongReturn"));
   
        // get the port
        WSIFPort port = service.getPort();
  
  
  
  1.2       +8 -1      xml-axis-wsif/java/samples/complexsoap/client/stub/Run.java
  
  Index: Run.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/samples/complexsoap/client/stub/Run.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Run.java  10 Dec 2002 11:03:26 -0000      1.1
  +++ Run.java  10 Dec 2002 15:31:20 -0000      1.2
  @@ -3,6 +3,7 @@
   import org.apache.wsif.WSIFService;
   import org.apache.wsif.WSIFServiceFactory;
   import org.apache.wsif.WSIFException;
  +import javax.xml.namespace.QName;
   import java.rmi.RemoteException;
   import complexsoap.client.stub.com.cdyne.ws.LatLongReturn;
   import complexsoap.client.stub.com.cdyne.ws.Zip2GeoSoap;
  @@ -19,7 +20,7 @@
       public static void main(String [] args) {
        try {
            if (args.length!=2) {
  -             System.out.println("Usage: java samples.ComplexSOAP.client.stub.Run 
<wsdl location> <zip code>");
  +             System.out.println("Usage: java samples.complexsoap.client.stub.Run 
<wsdl location> <zip code>");
                System.exit(1);
            }
            // create a service factory
  @@ -28,6 +29,9 @@
            WSIFService service = factory.getService(args[0], null,
                                                     null, "http://ws.cdyne.com";, 
                                                     "Zip2GeoSoap"); 
  +         // map types
  +         service.mapType(new QName("http://ws.cdyne.com","LatLongReturn";),
  +                         
Class.forName("complexsoap.client.stub.com.cdyne.ws.LatLongReturn"));
            Zip2GeoSoap stub = null;
            // create the stub
            stub = (Zip2GeoSoap) service.getStub(Zip2GeoSoap.class);
  @@ -45,6 +49,9 @@
        } catch (RemoteException re) {
            System.out.println("Error while executing sample, received an exception 
due to remote invocation; details:");
            re.printStackTrace();
  +     } catch (ClassNotFoundException ce) {
  +         System.out.println("Error while executing sample, could not find required 
class complexsoap.client.stub.com.cdyne.ws.LatLongReturn; please add it to your 
classpath; details:");
  +         ce.printStackTrace();
        }
       }
   }
  
  
  
  1.2       +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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Run.java  10 Dec 2002 11:03:25 -0000      1.1
  +++ Run.java  10 Dec 2002 15:31:20 -0000      1.2
  @@ -18,7 +18,7 @@
       public static void main(String [] args) {
        try {
            if (args.length!=2) {
  -             System.out.println("Usage: java samples.SimpleSOAP.client.stub.Run 
<wsdl location> <company symbol>");
  +             System.out.println("Usage: java samples.simplesoap.client.stub.Run 
<wsdl location> <company symbol>");
                System.exit(1);
            }
            // create a service factory
  
  
  


Reply via email to