RE: Implementation of "struct" data type in XmlWriter.writeObject(Object)

2004-10-18 Thread Andrew Evers
Hi Oded, The use of these types comes from our desire (and our users desire) to work with Java 1.1, often in Applets in a web browser. This unfortunately means that the more abstract collections framework introduced in 1.2 is not available. While Collection has a toArray() method, Vector (or ma

RE: [VOTE] 1.2 b2 release

2004-05-06 Thread Andrew Evers
Hi guys, I have a small patch that a collegue is working on that I would like to see on the 1.2 branch. It adds support for an input encoding to XmlRpc. This allows it to work correctly on z/OS and other EBCDIC systems, where the default encoding is EBCDIC but the network is ASCII. I will pus

Re: XMLRPC updates ?

2003-09-12 Thread Andrew Evers
Henri Gomez wrote: Working in the financial area, I manage number which should be exact, so I used BigDecimal instead of double or Double. Could it be extended to : else if (obj instanceof Double || obj instanceof Float || obj instanceof BigDecimal) { star

Re: pluggable transport layer

2003-07-17 Thread Andrew Evers
> [EMAIL PROTECTED] wrote: > Guys. This can be done with sane XML-RPC request/response objects > (think servlets) and an interceptor API, instead of creating N endpoint > implementations. In what way are XmlRpcRequest and XmlRpcClientRequest objects not 'sane'? Why is having n implementatio

Re: xml-rpc

2003-07-17 Thread Andrew Evers
> > Yes but this isn't XML-RPC and XML-RPC is what the Apache code is > > supposed to implement. > > I thought the whole idea about abstracting the transport layer was > breaking the spec. The idea of abstracting the transport layer was to make it easier to work with custom or different HTTP imple

Logging, packaging and applets

2003-04-03 Thread Andrew Evers
> > > Craig R. McClanahan wrote: > > > >Why not just provide a trivially simple two-class JAR file that defines > > > >org.apache.commons.logging.Log and org.apache.commons.logging.LogFactory > > > >with exactly the same public APIs as the "real" ones? Then, just ship > > > >this tiny little JAR f

Re: info on 2.0?

2003-04-03 Thread Andrew Evers
> That said, there are several major changes we have informally planned > for 2.0. Some of these include: > - abstraction of HTTP transport from XML-RPC processing > - interceptors and introspection > - use of commons-logging, commons-httpclient, and commons-codec internally Well, I've got the co

Re: WebServer handler threads

2003-03-31 Thread Andrew Evers
> Hi, does anyone know if there is a way to make the server side handlers > multi-threaded. By default when you try to access a particular method on > the server, that method is always run from the same object creating a > potential bottleneck. I realise the Connection objects spawned by the > Web

[Bug 17665] - XML-RPC client doesn't handle the enconding specified by the XmlRpc.setEncoding() method

2003-03-10 Thread Andrew Evers
I've just had a look at this myself, since I refactored some of the classes involved recently. The proposed solution will work OK in a closed system where you already know the encoding sent back by the server. It may well break if you force the encoding to be something non-UTF when it is really

Re: Commons logging issues

2003-02-10 Thread Andrew Evers
> Andrew, Daniel, pay attention: > > Craig R. McClanahan wrote: > >Why not just provide a trivially simple two-class JAR file that defines > >org.apache.commons.logging.Log and org.apache.commons.logging.LogFactory > >with exactly the same public APIs as the "real" ones? Then, just ship > >this ti

Re: [VOTE] Release plan

2003-01-31 Thread Andrew Evers
> While we are making changes, why not vote on the release plan? > > Please vote on the following release plans as follows: > > +1 = In favor > 0 = Don't care > -1 = Against it > > Feel free to comment on why you voted as you did. > > > Plan 1: >

Re: Authentication refactoring

2003-01-29 Thread Andrew Evers
> I committed my authentication refactorings. They did not include any > changes to the SunSSLTransportFactory, as it was too new for me to get > comfortable with. (translation: I didn't take the time to understand it > fully). It's a bit 'magic' due to the way Sun decided to do a few things ;)

Sun SSL transport and transport factories in general.

2003-01-28 Thread Andrew Evers
Hi guys, I've just committed a bunch of changes to allow support for SSL using the new Transport/TransportFactory paradigm. The hard work was done by Chris Jackson and Larry Meader who have already posted to this list. I've created a new DefaultXmlRpcTransportFactory that can load other XmlRpcTra

Re: Authentication: Whose responsibility?

2003-01-27 Thread Andrew Evers
> But I think we should revisit authentication now that we have abstracted > the transport from the XML-RPC client. As I go through implementing > (cleanly) my new XmlRpcTransport, I took a look at the authentication > piece of DefaultXmlRpcTransport and LiteXmlRpcTransport. > > It isn't there! W

Re: Logging API

2003-01-26 Thread Andrew Evers
> I am almost convinced. I am unfamiliar with the functional > requirements of an applet developer for our library, but I will accept > at face value that an 80% increase in the file size of our applet jar > is unacceptable. > My concerns would be that the Commons Logging group already put plent

Logging API

2003-01-24 Thread Andrew Evers
Hi guys, I've just been doing some debugging of one of our packages that uses XML-RPC to perform some of its communication. One thing we needed to do is get accurate information about the methods and parameters sent in RPC's. Having omitted to put this information into our own code, I tried to use

Re: Java2 Collections

2002-12-26 Thread Andrew Evers
> I had a need to use Java2 collections so I changed two > classes (webserver.java and xmlwriter.java). The > changes were fairly trivial - I switched to using > interfaces where possible, so it wouldn't break > existing 1.1 code (eg. Hashtable and Hashmap both > implement Map) also, new collection

Re: SecureXmlRpcTransport?

2002-12-18 Thread Andrew Evers
> Myself and another coder here are looking to implement some secure > xml-rpc clients and services, but it looks like the current code base > is very much in flux with the recent refactoring/addition of the > XmlRpcTransport stuff. My question to the list is should we take a > crack at implementin

Re: New release of Apache XML-RPC

2002-11-28 Thread Andrew Evers
> OK, so I got my system hitting the repository over SSH, but it doesn't > look like the code Andrew sent me has been committed yet. Some of it > is there but theres no new branch and XmlRpcClient is still the old > version at least. > > Should I make a branch with the zip or wait for you to put

Re: New release of Apache XML-RPC

2002-11-22 Thread Andrew Evers
> This issues that you've brought up so far are now taken care of. > Please let us know what other tweaks would make the library more > easily embeddable -- this is an important use case for most of us. > Also, if you plan on adopting CVS HEAD, let me know and I will slap > another tag on the repos

Re: XmlRpcClient Interface

2002-11-04 Thread Andrew Evers
> I have the CLDC code, but didn't find the interface. Is it hidden in > CVS or elsewhere? Also I modified the XmlRpcClientLite, my > recollection is that there are plans for this that will modify it > significantly. Ryan and I are sharing code via private email at the moment. > This is the gis

Re: GNU-GPL compatibility question

2002-10-31 Thread Andrew Evers
> My java project include the xmlrpc-1.1.jar, so it also includes MinML, > which has a BSD-like license. > > Can I release and distribute my project under the GNU-GPL license ? > > Can I apply the GNU-GPL to my own code and ship it in a tar.gz > including xmlrpc-1.1.jar ? > > In that case, can I sa

Re: HttpClient integration

2002-10-30 Thread Andrew Evers
> Had a look over the current snapshot of where you are. I like the > ideas there, although I believe the authentication information may not > belong in the base XmlRpcContext as there are probably people who want > to do authentication "in band" instead of "out of band". I believe > more dis

Re: SSL Resumption Support

2002-10-29 Thread Andrew Evers
> Last January I was inquiring if anyone knew how to perform SSL session > resumption using an XML-RPC client. I did not receive a solution so I > finally went back and addressed the issue. My solution was to copy the > XmlRpcClientLite class and change the init method to use SSL sockets > config

Re: HttpClient integration

2002-10-24 Thread Andrew Evers
> Instead of an XmlRpcClientContext class, I would instead suggest > writing an XmlRpcTransport interface that is then implemented by each > of our HTTPTransport classes: > > public interface XmlRpcTransport() { > >public InputStream executeRequest(URL url, byte[] requestBody); > > } I like

Re: HttpClient integration

2002-10-23 Thread Andrew Evers
> If we decide to go ahead and make an XmlRpcClient interface, > we either have to decide to use some NonImplementedException > framework for the features of the interface that > XmlRpcClientLiteImpl does not implement, or we need to > use an abstract class with the bare minimum for the root > inte

Re: [PATCH]: Alternative type mappings for primitive types.

2002-09-30 Thread Andrew Evers
> Heya Andrew. I committed your code contribution, but used a class > loading pattern instead of the instance pattern you specified. This > allows one to supply new implementations of your TypeFactory interface > without writing sub-class of types. > > java -Dorg.apache.xmlrpc.TypeFactory=path.t

Re: recent patches

2002-09-13 Thread Andrew Evers
> As far as my original attempts to get the interceptors patch noticed, > you can find some of the history here: > http://marc.theaimsgroup.com/?a=9372481891&r=1&w=2 I just looked over the patch, and it seems to me to be inverting things a little. An XmlRpcRequest is really a part of a large

Re: PATCH: Refactor XmlRpcServer and friends for flexible threading.

2002-08-27 Thread Andrew Evers
> Is a handler name which isn't resolvable really an error to a > XmlRpcHandlerMapping implementation? To the caller of getHandler(), > sure it is. But is it to the XmlRpcHandlerMapping itself? (I'm not > sure.) I prefer to use exceptions only in exceptional situations (see > "The Practive of

Re: WebServer.java

2002-08-22 Thread Andrew Evers
> "Andrew Evers" <[EMAIL PROTECTED]> writes: > > It would be nice if one could get ahold of a single threaded object > which can process XML-RPC calls like XmlRpcServer can. It would be > very cool if someone would factor that code out of XmlRpcServer. >

Re: WebServer.java

2002-08-14 Thread Andrew Evers
> I would very much like to dump the WebServer class in favor of > wrapping the XmlRpcServer in a HttpServlet (and not using a XML-RPC > client to make requests like the current XmlRpcProxyServlet does). > Basically, we'd mark it as deprecated and cease maintainence on it. As > is, it has serious