Dear dex, Thanks for your response. I was following that article too and I could not get the value.
Anyway, I've managed to solve my problem using: String value = output.get(new QName("param1")); However, I'm not sure why. Would be great if someone could enlighten. --- <[EMAIL PROTECTED]> wrote: > Hi, > I'm a newbie to axis and webservices, but I got your > example > to work. You need the following > > 1. web service code should use something called > javax.xml.rpc.holders.StringHolder this will allow > you to > modify the input parameter. > > 2. Access the data from getOutputParams() > differently. > > I googled for help and found > http://www.findarticles.com/p/articles/mi_m0MLV/is_1_3/ai_96441467/pg_2 > I just followed the authors instructions. > > -dex > > --- On Thu 08/05, < [EMAIL PROTECTED] > > wrote: > From: [mailto: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Date: Thu, 5 Aug 2004 13:38:12 +0800 (CST) > Subject: Problem with call.getOutputParams() > > Hi,<br><br>I'm testing out the feature for INOUT > params<br>and I almost got it but stuck with a bug > (which I<br>believe is part of Axis > 1.1).<br><br>String methodName = > "getString";<br>Service service = new > Service();<br>Call call = (Call) > service.createCall();<br>call.setTargetEndpointAddress(new<br>java.net.URL(endpointURL));<br>call.setOperationName(new > QName("MyService",<br>methodName));<br><br>call.addParameter("param1",<br> > XMLType.XSD_STRING,<br> > javax.xml.rpc.ParameterMode.INOUT);<br> > <br>call.setReturnType(XMLType.XSD_STRING);<br> > <br>Object[] params = new Object[] { "Input > String" };<br><br>String ret = > (String)call.invoke(params);<br><br>//get the INOUT > Parameters<br>java.util.Map output = > call.getOutputParams();<br><br>//could not retrieve > the param1.<br>String inout = > (String)output.get("param1");<br><br>//returns > null<br>System.out.println("result:["+inout+"]");<br><br>//BUT > dumping out the output map shows that > "param1"<br>and new string value is > there<br>processoutput(output);<br><br><br>The key > in output param seems to have an additional<br>char > behind "param1" such thet > output.get("param1")<br>couldn't find the > key.<br><br>I'm using JBoss 2.4.5 with Axis > 1.1.<br>Would appreciate if anyone could help > enlighten > this<br>problem.<br><br>Thanks!<br><br>/regards<br><br>__________________________________________________<br>Do > You Yahoo!?<br>Download the latest ringtones, games, > and more!<br>http://sg.mobile.yahoo.com<br> > > _______________________________________________ > > > ATTACHMENT part 2 java/* name=A.java > ATTACHMENT part 3 java/* name=StringTestSoapBindingImpl.java __________________________________________________ Do You Yahoo!? Download the latest ringtones, games, and more! http://sg.mobile.yahoo.com