You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Glen Daniels <gd...@macromedia.com> on 2002/03/14 15:09:19 UTC
RE: cvs commit: xml-axis/java/samples/userguide/example2 CalcClie
nt.java
Hm. I think Axis should do the best it can at returning something reasonable in ALL cases, personally. What's the harm in allowing the engine to deserialize based on xsi:type, like it used to be able to?
--Glen
> -----Original Message-----
> From: Russell Butek [mailto:butek@us.ibm.com]
> Sent: Thursday, March 14, 2002 8:42 AM
> To: axis-dev@xml.apache.org
> Subject: RE: cvs commit: xml-axis/java/samples/userguide/example2
> CalcClie nt.java
>
>
> We discussed this a few weeks ago. If you don't specify anything (no
> parameters or returnType) then AXIS makes some guesses as to what it
> sends/returns. When you specify ANYTHING, you have to
> specify EVERYTHING.
> So if you specify a parameter and you don't specify a
> returnType, then AXIS
> assumes there is no returnType. Right now it doesn't fail if
> there IS a
> returnType, it just returns null. I wonder if an exception should be
> thrown?
>
> Russell Butek
> butek@us.ibm.com
>
>
> Glen Daniels <gd...@macromedia.com> on 03/13/2002 12:40:30 PM
>
> Please respond to axis-dev@xml.apache.org
>
> To: "'axis-dev@xml.apache.org'" <ax...@xml.apache.org>
> cc:
> Subject: RE: cvs commit: xml-axis/java/samples/userguide/example2
> CalcClie nt.java
>
>
>
>
> Russell:
>
> Any clue why we need this? Are we not sending xsi:types by
> default? I'm
> not saying it's bad, just that it used to work without it, I think.
>
> --G
>
> > -----Original Message-----
> > From: butek@apache.org [mailto:butek@apache.org]
> > Sent: Wednesday, March 13, 2002 12:07 PM
> > To: xml-axis-cvs@apache.org
> > Subject: cvs commit: xml-axis/java/samples/userguide/example2
> > CalcClient.java
> >
> >
> > butek 02/03/13 09:06:33
> >
> > Modified: java/samples/userguide/example2 CalcClient.java
> > Log:
> > Fixed the sample.
> >
> > Revision Changes Path
> > 1.9 +1 -0
> > xml-axis/java/samples/userguide/example2/CalcClient.java
> >
> > Index: CalcClient.java
> >
> ===================================================================
> > RCS file:
> > /home/cvs/xml-axis/java/samples/userguide/example2/CalcClient.java,v
> > retrieving revision 1.8
> > retrieving revision 1.9
> > diff -u -r1.8 -r1.9
> > --- CalcClient.java 4 Jan 2002 22:30:03 -0000 1.8
> > +++ CalcClient.java 13 Mar 2002 17:06:33 -0000 1.9
> > @@ -93,6 +93,7 @@
> > call.setOperationName( method );
> > call.addParameter( "op1", XMLType.XSD_INT,
> > ParameterMode.PARAM_MODE_IN );
> > call.addParameter( "op2", XMLType.XSD_INT,
> > ParameterMode.PARAM_MODE_IN );
> > + call.setReturnType( XMLType.XSD_INT );
> >
> > Integer ret = (Integer) call.invoke( new Object []
> > { i1, i2 });
> >
> >
> >
> >
> >
>
>