Hummm.
Unfortunately I'm just learning Axis myself and why it is returning null is
beyond me...
It looks right to me though...
You can get nulls thought because (I'm guessing here) that axis defines the
QName keys in the map but when it goes to actually put in the value, the
value is null. Think map.put(key, null).
Sorry I can't help you with that issue.
I've given up on most of Axis (the docs are horrid) and just use it for the
transportation stuff. I write my own envelopers and parse the returned XML
myself.
I still ask questions though in the hope that someone will respond. There
are some very knowledgeable people out there... they just don't always
respond.
----- Original Message -----
From: "Brian Dillon (ext. 944)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 9:24 AM
Subject: RE: Has anyone ever tried Axis OUT Parameters
> Sloan,
>
> That is what I was doing, I have included a code extract below;
>
> soapSrv.addParameter("user",new QName("xsd:string"),
> javax.xml.rpc.ParameterMode.IN);
> soapSrv.addParameter("provider_outParmNames",new
> QName("ta:StringSequence"),
> javax.xml.rpc.ParameterMode.OUT);
> soapSrv.addParameter("provider_outParmValues",new
> QName("ta:StringSequence"),
> javax.xml.rpc.ParameterMode.OUT);
> soapSrv.setReturnType(new QName("xsd:boolean"));
>
> Boolean retObj = (Boolean) soapSrv.invoke(new Object[] {user,
> script,
> inParmNames, inParmValues, requestContext});
> boolean retValue =retObj.booleanValue();
>
>
> java.util.Map outputMap = soapSrv.getOutputParams();
> System.out.println(" Map is "+outputMap.keySet().size()); //This
is
> returning 0
> outParmNames.setValue( (java.lang.String[]) outputMap.get(new
> QName("provider_outParmNames")) );//Returns null
> outParmValues.setValue( (java.lang.String[]) outputMap.get(new
> QName("provider_outParmValues")) );//Returns null
>
>
> Is there something special I should be doing on the server side;
>
> The service method signature looks like;
>
> public boolean serverSideMethod(
> String user,
> com.fineos.ta.services.xml.axis.holders.StringSequenceHolder
> outParmNames, com.fineos.ta.services.xml.axis.holders.StringSequenceHolder
> outParmValues)
>
> The two holders here for the out params are null ! Is this correct, how
> would axis know what to pass back if the holders themselves are null ?
>
>
> Thanks,
>
> Brian
> -----Original Message-----
> From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> Sent: 18 February 2003 14:02
> To: [EMAIL PROTECTED]
> Subject: Re: Has anyone ever tried Axis OUT Parameters
>
>
> Here is an example from my code:
> call.addParameter("RequestType",
> org.apache.axis.Constants.XSD_STRING,
> javax.xml.rpc.ParameterMode.IN);
> call.addParameter("Properties",
> org.apache.axis.Constants.XSD_STRING,
> javax.xml.rpc.ParameterMode.IN);
> call.addParameter("Restrictions",
> org.apache.axis.Constants.XSD_STRING,
> javax.xml.rpc.ParameterMode.IN);
> call.addParameter("Result",
> org.apache.axis.Constants.XSD_STRING,
> javax.xml.rpc.ParameterMode.OUT);
>
> Notice the last one.
>
> Do the addParameters() before you do the call.invoke().
>
> And give up on this forum. No one really answers....
>
> Good luck!
>
> --
> Sloan
>
> ----- Original Message -----
> From: "Brian Dillon (ext. 944)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 18, 2003 5:11 AM
> Subject: Has anyone ever tried Axis OUT Parameters
>
>
> > Hi,
> >
> > I asked a similar question before but got no response. Has anyone tried
to
> > get OUT parameters working with SOAP. I have no issue with either IN or
> > INOUT. Is there a bug or am I doing something wrong.
> >
> > Thanks,
> >
> > Brian
> >
> >
> >
**************************************************************************
> > The information contained in this e-mail is confidential,
> > may be privileged and is intended only for the use of the
> > recipient named above. If you are not the intended
> > recipient or a representative of the intended recipient,
> > you have received this e-mail in error and must not copy,
> > use or disclose the contents of this email to anybody
> > else. If you have received this e-mail in error, please
> > notify the sender immediately by return e-mail and
> > permanently delete the copy you received. This email has
> > been swept for computer viruses. However, you should
> > carry out your own virus checks.
> >
> >
> > Registered in Ireland, No. 205721. http://www.FINEOS.com
> >
**************************************************************************
> >
> >
>