Anamitra and Deepal, Thanks, I'm clear as a blue sky.
--- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote: > Hi Anamitra ; > You are exactly correct , even from the java reflection you can not > directly get the input parameter names . What we have done is, we > read > byte code and from that get the name of the input parameters, so no > way > that we can get the name of the output parameter. That is why we > always > put return as output parameter. > > [EMAIL PROTECTED] wrote: > > >this is because there is no way to reflect on the return variable > inside a > >method in java- at least to the best of my knowledge. > >Anamitra > > > > > > > > > Kinichiro > > > Inoguchi > > > <[EMAIL PROTECTED] > To > > om> [email protected] > > > > cc > > 07/10/2006 12:03 > > > PM > Subject > > [Axis2] response element name > with > > RPCMessageReceiver > > > Please respond to > > > [EMAIL PROTECTED] > > > he.org > > > > > > > > > > > > > > > > > > > >This is not a problem, just my thoughts. > >I wonder why response element name is always "return" ? > > > >If I create MyService like this, > > > > package test; > > public class MyService { > > public String echo(String inparam) { > > String outparam = inparam; > > return outparam; > > } > > } > > > >and packed this to MyService.aar with using RPCMessageReceiver, > >generated WSDL <types> section will be like this, > > > > <wsdl:types> > > <xs:schema ...> > > <xs:element name="echo"> > > <xs:complexType> > > <xs:sequence> > > <xs:element type="xs:string" name="inparam"/> > > </xs:sequence> > > </xs:complexType> > > </xs:element> > > <xs:element name="echoResponse"> > > <xs:complexType> > > <xs:sequence> > > <xs:element type="xs:string" name="return"/> > > </xs:sequence> > > </xs:complexType> > > </xs:element> > > </xs:schema> > > </wsdl:types> > > > >An element name of request is equivalen to method argument variable > >name, "inparam". > >But, element name of response is NOT variable name returned, > >"outparam". > >An element name of response is always "return". > > > >Is there any reason for this ? > >In case for like "return inparam + outparam;" ? > > > >I feel variable name should be an element name of response. > >Then I control WSDL naming convention a little bit. > > > >Any comments will be appreciated :-) > > > >Thanks, > >kinichiro > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam protection around > >http://mail.yahoo.com > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > Thanks, > Deepal > ................................................................ > ~Future is Open~ > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
