Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 25249 invoked by uid 500); 13 Aug 2001 17:06:48 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 25237 invoked from network); 13 Aug 2001 17:06:46 -0000 Received: from e21.nc.us.ibm.com (32.97.136.227) by h31.sny.collab.net with SMTP; 13 Aug 2001 17:06:46 -0000 Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e21.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id MAA34996 for ; Mon, 13 Aug 2001 12:04:13 -0500 Received: from d04nm204.raleigh.ibm.com (d04nm204.raleigh.ibm.com [9.67.228.13]) by southrelay02.raleigh.ibm.com (8.11.1m3/NCO v4.97) with ESMTP id f7DH6J576108 for ; Mon, 13 Aug 2001 13:06:19 -0400 Importance: Normal Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/client AdminClient.java ServiceClient.java To: axis-dev@xml.apache.org X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000 Message-ID: From: "Doug Davis" Date: Mon, 13 Aug 2001 13:06:20 -0400 X-MIMETrack: Serialize by Router on D04NM204/04/M/IBM(Release 5.0.6 |December 14, 2000) at 08/13/2001 01:06:20 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N But that's part of my use-case - I want to use HTTP but just not the transport chain that's defined - I want to use a different one. -Dug "Glen Daniels" on 08/13/2001 12:56:23 PM Please respond to axis-dev@xml.apache.org To: cc: Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/client AdminClient.java ServiceClient.java I think the implicit decision there was that we'd support it on a per-transport basis. For instance, the HTTPTransport has setTransportName () on it. So I'd be inclined to assume that whoever constructed a Transport object knows better than someone with just a String which chain should be used.... --G ----- Original Message ----- From: "Doug Davis" To: Sent: Monday, August 13, 2001 12:48 PM Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/client AdminClient.java ServiceClient.java > I was wondering about that - but what if you want the functionality of > that transport object (ie. the stuff in transport object's constructor) but > want to use a different chain? Or is that just plain silly? > -Dug > > "Glen Daniels" on 08/13/2001 12:34:31 PM > > Please respond to axis-dev@xml.apache.org > > To: > cc: > Subject: Re: cvs commit: xml-axis/java/src/org/apache/axis/client > AdminClient.java ServiceClient.java > > > > Hi Doug: > > > Index: ServiceClient.java > > =================================================================== > > RCS file: > /home/cvs/xml-axis/java/src/org/apache/axis/client/ServiceClient.java,v > > retrieving revision 1.39 > > retrieving revision 1.40 > > diff -u -r1.39 -r1.40 > > --- ServiceClient.java 2001/08/11 20:19:04 1.39 > > +++ ServiceClient.java 2001/08/13 16:21:39 1.40 > > @@ -174,6 +174,7 @@ > > > > // Our Transport, if any > > private Transport transport; > > + private String transportName ; > > > > /** > > * Basic, no-argument constructor. > > @@ -259,6 +260,13 @@ > > e.printStackTrace(); > > } > > } > > + > > + /** > > + * Set the name of the transport chain to use. > > + */ > > + public void setTransportName(String name) { > > + transportName = name ; > > + } > > > > /** Get the Transport registered for the given protocol. > > * > > @@ -538,6 +546,9 @@ > > if (transport != null) { > > transport.setupMessageContext(msgContext, this, > this.engine); > > } > > + // Pass along the transport chain name if given > > + if ( transportName != null ) > > + msgContext.setTransportName( transportName ); > > You might want this to be an either/or situation - Transports typically set > the MessageContext transportName in their setupMessageContext() method, so > doing it this way would set up everything else, but let transportName get > overridden by the option. That seems like it might get confusing. > > --Glen > > > >