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 "nadir amra (JIRA)" <ji...@apache.org> on 2012/04/21 06:50:37 UTC

[jira] [Commented] (AXIS2-4972) Second letter capital of a variable value is coming null in server side.

    [ https://issues.apache.org/jira/browse/AXIS2-4972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258767#comment-13258767 ] 

nadir amra commented on AXIS2-4972:
-----------------------------------

My question is what is the setter name for mCouponCode?  

I myself have been trying to determine if there is any way using a POJO class one can define an element in the WSDL where the first character is uppercase.  For example, if one has a variable in a class called TempIn, and you have a setter method, setTempIn, the generated element name is WSDL is:

<xs:element minOccurs="0" name="tempIn" nillable="true" type="xs:string"/>

which is not what I want.  What is curious is that if you have TEmpIn, and the setter is setTEmpIn, then the generated element name is:

<xs:element minOccurs="0" name="TEmpIn" nillable="true" type="xs:string"/>

Note that the element name matches.  

And if I have a variable tEmpIn, the setter is setTEmpIn, the element name in WSDL that is generated is:

<xs:element minOccurs="0" name="TEempIn" nillable="true" type="xs:string"/>

Finally, if I have a variable tempIn, with setter of setTempIn then the element name in WSDL is:

<xs:element minOccurs="0" name="tempIn" nillable="true" type="xs:string"/>


So I am wondering whether this is working correctly and if there is a way for the first character in an element name to be uppercased which the next character is in lowercase?

I am running 1.5.6.  I will try with newest and see what happens but wanted to document my findings.  

                
> Second letter capital of a variable value is coming null in server side.
> ------------------------------------------------------------------------
>
>                 Key: AXIS2-4972
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4972
>             Project: Axis2
>          Issue Type: Bug
>          Components: deployment
>    Affects Versions: 1.3
>         Environment: Java 1.6 ,apache-tomcat-6.0.14, Eclipse
>            Reporter: Mahendra
>              Labels: axis2
>   Original Estimate: 221h
>  Remaining Estimate: 221h
>
> I am using "Axis2_Service_Archiver_1.3.0"  eclipse plugin to deploy and publish my service in tomcat 6.0.14.
> In that one method  takes the Object input and that object has 7 variables.
> Now the issue is when i call the services from my client side app. one variable value is coming null in server but others are working correctly.
> That variable's 2nd letter is Capital letter is it the problem ?
> Variable name is "mCouponCode" .
> Other variable like 'redeemDate' are working correctly.
> In WSDL file it looks like below. (I have pasted the wsdl part here)
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> <xs:complexType name="RedemptionUpdateRequest">
> <xs:sequence>
> <xs:element name="last4digitsOfCardNo" nillable="true" type="xs:string"/>
> <xs:element name="mCouponCode" nillable="true" type="xs:string"/>
> <xs:element name="mobileNo" nillable="true" type="xs:string"/>
> <xs:element name="pvrTxnId" nillable="true" type="xs:string"/>
> <xs:element name="redeemDate" nillable="true" type="xs:string"/>
> <xs:element name="redeemLocation" nillable="true" type="xs:string"/>
> <xs:element name="redeemTime" nillable="true" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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