Hi.
I have been using Axis1 for a long time in a
simple way, just creating web services to retrieve
some records of databases. Making the methods
return "java.util.ArrayList" of
"java.util.Hashtable" Java Objects the WSDL auto
generated by Axis1 was enough to consume this
webservices in PHP with soapclient, get as a
result arrays of associative arrays.
Now I'm trying to use Axis2 but the best I can do
is to retrieve arrays of "java.util.String" or
just simple data types like "int". When I try to
return an Hashtable the result (in the browser) is
something like this:
<ns:getHashResponse><ns:return><ns:empty>false</ns:empty></ns:return></ns:getHashResponse>
Based on this simple example code:
public Hashtable<String,String> getHash()
{
Hashtable<String,String> h = new
Hashtable<String,String>();
h.put("nome", "Jose Silva");
h.put("idade", "36");
return h;
}
I'm using Axis2 plugin to Netbeans to build the
webservices. The problem seems to be related with
the databindings, but I do not want to deal with
WSDL directly, because I believe that "language"
is "machine domain" not for human beings.
I want something as simple as Axis1, is that
possible?
Thank's in advance to any one who can help me.
José Silva
--
|
José
Luís Mendonça da Silva
Departamento
de Gestão de
Património e
Infra-estruturas
|
|
Email:
[email protected]
|
|
|
Instituto
Politécnico de Coimbra | Serviços
da Presidência
|
|
Av. Dr.
Marnoco e Sousa, nº 30
3000 - 271 Coimbra
Tel.:
+351
239791250 | Fax: +351
239791262
Site: www.ipc.pt
|
|