axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Fell" <sf...@salesforce.com>
Subject verbosity of client code
Date Thu, 12 Jan 2006 05:12:43 GMT
Are there any plans to reduce the verbosity of the code that needs to be written by the client?
a 2 liner in Axis 1.x (create the stub, call login), now takes 7 lines of code. Do you really
think this is an improvement ?

SoapStub stub = new SoapStub();
Login l = Login.Factory.newInstance();
l.setUsername(args[0]);
l.setPassword(args[1]);
LoginDocument ld = LoginDocument.Factory.newInstance();
ld.setLogin(l);
LoginResult lr = stub.login(ld).getLoginResponse().getResult();

I notice that in the more recent builds of Indigo which also suffers with an overly verbose
programming model, they at least added some constructors to make it a little better.

Cheers
Simon

Mime
View raw message