axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kinichiro Inoguchi <ingc1...@yahoo.com>
Subject Re: [Axis2] response element name with RPCMessageReceiver
Date Wed, 12 Jul 2006 14:06:17 GMT
Anamitra and Deepal,

Thanks, I'm clear as a blue sky.

--- Deepal Jayasinghe <deepal@opensource.lk> 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.
> 
> Anamitra.Bhattacharyya@mro.com 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                                               
>       
> >             <ingc1968@yahoo.c                                      
>    To 
> >             om>                       axis-user@ws.apache.org      
>       
> >                                                                    
>    cc 
> >             07/10/2006 12:03                                       
>       
> >             PM                                                   
> Subject 
> >                                       [Axis2] response element name
> with  
> >                                       RPCMessageReceiver           
>       
> >             Please respond to                                      
>       
> >             axis-user@ws.apac                                      
>       
> >                  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: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >  
> >
> 
> -- 
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~ 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message