Hi all,
I have just started out developing with axis2 (version 1.4) and having
trouble with collections and ADB.
I have two pojos and a service class.
The pojos are sth like
public class Other {
public String aVariable;
public BigInteger anotherVariable;
...
}
public class Data {
private String name;
private Set<Other> values;
...
}
and the service is sth like
public class DataService {
public String ping() {
return "The service " + this + " is online";
}
public Set<Data> getValues(Data data) {
Set<Data> values = null;
if(data != null) {
values = data.getValues();
}
if(values == null) {
values = new HashSet<Data>;
values.add(new Other("one", new BigDecimal("1")));
values.add(new Other("two", new BigDecimal("2")));
...
}
return values;
}
...
}
I have been able to deploye the service as an aar file. I am able to call
both the ping and getValues methods from a browser window and the xml of the
response looks good.
I retrieve the wsdl which Axis2 generates for the service and generate an
ADB client for the service. When in comes to call the service using the
generated client I find a lot of troubles.
I don't know whether it's a limitation of ADB or it's me. Please help.
Thanks in advance.
/Roberto.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]