axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaki <jackie_ja...@infosys.com>
Subject Re: Returning Map / List from web service
Date Mon, 18 Aug 2008 13:16:34 GMT

Any help on this? :( I have exposed the ejbs using @Webservice annotations
and not using the axis wsdd method. Should that be what's causing the
problem? Please help


jaki wrote:
> 
> Hi all, 
> 
> I have an axis WS client calling a remote ejb3 web service as below:
> 
>                   Call call    = (Call) service.createCall();
> 	           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
> 	           call.setOperationName(new QName("http://session.um.com/",
> "getAuc") );
> 
> 	          
> 	           call.addParameter("arg0",
> 	                             org.apache.axis.Constants.XSD_INT,
> 	                             javax.xml.rpc.ParameterMode.IN);
> 	          
>          
> 	           call.setReturnClass(HashMap.class);
> 	           HashMap ret =  (HashMap) call.invoke( new Object[] {"1"}
> 
> Thought it throws no error, the returned Map / List never has any contents
> in them. Also, if instead of setReturnClass I try to use
> setReturnType(org.apache.axis.Constants.XSD_ANY) it gives me the below
> error:
> 
> could not find deserializer for type {http://www.w3.org/2001/XMLSchema}any
> 

-- 
View this message in context: http://www.nabble.com/Returning-Map---List-from-web-service-tp19010233p19031177.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message