You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by jony <jo...@bme.ogi.edu> on 2007/08/11 01:14:21 UTC

axis2 - returning a hashmap

Im writing a java client that has to work against a perl (soap::lite) server.
Watching the output of 'tcpmonitor' shows that the data is being sent over
the wire but when I try to deserialize it Im getting a null. 

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:apachens="http://xml.apache.org/xml-soap"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><namesp5:getProcessListResponse
xmlns:namesp5="http://kopernik/auth"><s-gensym15
xsi:type="apachens:Map"><item><key xsi:type="xsd:int">1700</key><value
xsi:type="xsd:string">avguard.exe</value></item><item><key
xsi:type="xsd:int">524</key><value
xsi:type="xsd:string">mdm.exe</value></item><item><key
xsi:type="xsd:int">3816</key><value
xsi:type="xsd:string">issch.exe</value></item><item><key
xsi:type="xsd:int">1728</key><value
xsi:type="xsd:string">mainserv.exe</value></item><item><key
xsi:type="xsd:int">1648</key><value
xsi:type="xsd:string">sched.exe</value></item><item><key
xsi:type="xsd:int">1964</key><value
xsi:type="xsd:string">DWRCS.EXE</value></item><item><key
xsi:type="xsd:int">200</key><value>... and so on.


        QName opClientData =    new QName("http://kopernik/auth",
"getTaskInfo");
        Object[] obArgs = new Object[] {  };
        Class[] returnTypes = new Class[] { HashMap.class };
        Object[] response = serviceClient.invokeBlocking(opClientData,
obArgs, returnTypes);   

response[0] == null when this returns. What am I doing wrong? Ive tried
setting the 'returnTypes' to Object[] with the same result. 

-- 
View this message in context: http://www.nabble.com/axis2---returning-a-hashmap-tf4251711.html#a12100654
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