Dear Axis Users/Developers

I recently try Axis2 and I realised that something is missing comparing
to Axis1.
I have a web service class with a function like :

public String myFunction (HashMap map)

With both version of axis installed under a tomcat, it is generating
without problem a wsdl.
But when I try to implement a client to the web service, I have some
problem with Axis2

Axis1 serialized without problem the HashMap whereas Axis2 doesn't
serialize...
With Axis1 it was really simple, one just have to write in the service
client something like:

String ret = (String) call.invoke( new Object[] {map} );

with Axis2 I tried (in a RPC client)

QName opExecACommand = new QName("http://...";, "execACommand");
Object[] opExecACommandArgs = new Object[] {args};
Class[] returnTypes = new Class[] { String.class };
// Invoking the method
 Object[] response = rpcServiceClient.invokeBlocking(opExecACommand,
opExecACommandArgs,returnTypes);

But obviously, argument received by the web service is empty....


What is the solution to serialize a HashMap correctly with Axis2 ?

Fabian Lambert
begin:vcard
fn:Fabian Lambert
n:Lambert;Fabian
org:LPSC - CNRS/IN2P3 - UJF Grenoble 1 - INPG<P><b>Tel. +33 (0)4 76 28 41 97</b></P><p><a href="http://ami3.in2p3.fr:8080/opencms/opencms/AMI/www"; style="text-decoration:none" >ATLAS Metadata Interface</a></p>;Service Informatique
adr:;;53, avenue des Martyrs;Grenoble;;38000;France
email;internet:fabian.lamb...@lpsc.in2p3.fr
title;quoted-printable:<br/><b>Ing=C3=A9nieur d'=C3=A9tudes</b>
tel;work:04 76 28 41 97
url:http://annuaire.in2p3.fr/ConsultPerson.php?button=print&cn=Lambert+Fabian&dn=ou=people,+ou=lpsc,+o=in2p3,c=fr
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to