You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by du...@apache.org on 2001/05/22 00:22:07 UTC

cvs commit: xml-soap/java/samples/addressbook2 Main.java

duftler     01/05/21 15:22:07

  Modified:    java/samples/addressbook2 Main.java
  Log:
  Made the maintainSession property of SOAPHTTPConnection true by default.
    This was as per the discussion on the mailing list.
  
  Revision  Changes    Path
  1.3       +3 -1      xml-soap/java/samples/addressbook2/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/samples/addressbook2/Main.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Main.java	2001/03/08 17:06:52	1.2
  +++ Main.java	2001/05/21 22:22:02	1.3
  @@ -101,6 +101,7 @@
   
     public static void main (String[] args) throws Exception {
       URL serviceURL = null;
  +    SOAPHTTPConnection shc = new SOAPHTTPConnection ();
   
       if (args.length > 1) {
         System.err.println ("Usage: java " + Main.class.getName () + 
  @@ -115,6 +116,8 @@
       if (serviceURL != null) {
         ab1.setEndPoint (serviceURL);
       }
  +    shc.setMaintainSession (false);
  +    ab1.setSOAPTransport (shc);
       doit (ab1);
   
       System.err.println ("\n\nUsing proxy with session maintenance.");
  @@ -122,7 +125,6 @@
       if (serviceURL != null) {
         ab2.setEndPoint (serviceURL);
       }
  -    SOAPHTTPConnection shc = new SOAPHTTPConnection ();
       shc.setMaintainSession (true);
       ab2.setSOAPTransport (shc);
       doit (ab2);