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 "David Rodríguez Alfayate (JIRA)" <ji...@apache.org> on 2007/08/31 14:58:31 UTC

[jira] Created: (AXIS2-3165) Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding

Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding
-----------------------------------------------------------------------------------------

                 Key: AXIS2-3165
                 URL: https://issues.apache.org/jira/browse/AXIS2-3165
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.3
         Environment: JDK 1.4
            Reporter: David Rodríguez Alfayate
            Priority: Blocker


I'm using XMLBeans generation from WSDL, when the message receiver access the skeleton the content response is 
processed as:

wrappedType.get().<<real_method_name>>.

The generated method name is not "get()" but get<<CLASS_NAME>>, so it fails to compile.

I think that i cannot use ADB since I need to know if primitive fields are null or not, and I haven't seen any mechanism in order to verifiy this nullity with this mechanism.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2-3165) Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-3165.
-------------------------------------------------

    Resolution: Fixed

already fixed

> Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding
> -----------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3165
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3165
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: JDK 1.4
>            Reporter: David Rodríguez Alfayate
>            Priority: Blocker
>         Attachments: ProxiaServices2.wsdl
>
>
> I'm using XMLBeans generation from WSDL, when the message receiver access the skeleton the content response is 
> processed as:
> wrappedType.get().<<real_method_name>>.
> The generated method name is not "get()" but get<<CLASS_NAME>>, so it fails to compile.
> I think that i cannot use ADB since I need to know if primitive fields are null or not, and I haven't seen any mechanism in order to verifiy this nullity with this mechanism.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-3165) Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524432 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3165:
-----------------------------------------------------

what are the command line arguments you use? I could successfully generate code with -ss -sd -g
did you use -uw is so please try without it.

BTW - with ADB you can handle primitive fields null values.
ADB uses the MIN,MAX and NaN values to represent null values.
for an example if you have an int field and you want it to serialize as a null
then you have to set the value to Integer.MIN_VALUE and if adb parser
receives and null value for an integer fied it set the value as Integer.MIN_VALUE

                                             <xsl:when test="$propertyType='int'">
                                               if (param==java.lang.Integer.MIN_VALUE) {
                                           </xsl:when>
                                           <xsl:when test="$propertyType='long'">
                                               if (param==java.lang.Long.MIN_VALUE) {
                                           </xsl:when>
                                           <xsl:when test="$propertyType='byte'">
                                               if (param==java.lang.Byte.MIN_VALUE) {
                                           </xsl:when>
                                           <xsl:when test="$propertyType='double'">
                                               if (java.lang.Double.isNaN(param)) {
                                           </xsl:when>
                                           <xsl:when test="$propertyType='float'">
                                               if (java.lang.Float.isNaN(param)) {
                                           </xsl:when>
                                           <xsl:when test="$propertyType='short'">
                                               if (param==java.lang.Short.MIN_VALUE) {
                                           </xsl:when>


> Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding
> -----------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3165
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3165
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: JDK 1.4
>            Reporter: David Rodríguez Alfayate
>            Priority: Blocker
>         Attachments: ProxiaServices2.wsdl
>
>
> I'm using XMLBeans generation from WSDL, when the message receiver access the skeleton the content response is 
> processed as:
> wrappedType.get().<<real_method_name>>.
> The generated method name is not "get()" but get<<CLASS_NAME>>, so it fails to compile.
> I think that i cannot use ADB since I need to know if primitive fields are null or not, and I haven't seen any mechanism in order to verifiy this nullity with this mechanism.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (AXIS2-3165) Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding

Posted by "David Rodríguez Alfayate (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Rodríguez Alfayate updated AXIS2-3165:
--------------------------------------------

    Attachment: ProxiaServices2.wsdl

WSDL used which generates the incorrect code.

> Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding
> -----------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3165
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3165
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: JDK 1.4
>            Reporter: David Rodríguez Alfayate
>            Priority: Blocker
>         Attachments: ProxiaServices2.wsdl
>
>
> I'm using XMLBeans generation from WSDL, when the message receiver access the skeleton the content response is 
> processed as:
> wrappedType.get().<<real_method_name>>.
> The generated method name is not "get()" but get<<CLASS_NAME>>, so it fails to compile.
> I think that i cannot use ADB since I need to know if primitive fields are null or not, and I haven't seen any mechanism in order to verifiy this nullity with this mechanism.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-3165) Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding

Posted by "David Rodríguez Alfayate (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524454 ] 

David Rodríguez Alfayate commented on AXIS2-3165:
-------------------------------------------------

I was trying with the -uw option, I've disabled it and the code generated is correct. So I suppose that perhaps could be a bug with this option.

On the other hand, talking about handling primitive fields null values in ADB... In my opinion (and it's just an opinion) using the MIN_VALUE... is not a real good solution, taking into an account that in Java exists the primitive and the non primitive (Object) type, and that the second one is nilable, perhaps it could be better to convert the input data not to the primitive type but to the object type.

Thanks a lot for your help,
David.

> Accessing to unexistant get() method from MessageReceiver when using xmlbeans databinding
> -----------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3165
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3165
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: JDK 1.4
>            Reporter: David Rodríguez Alfayate
>            Priority: Blocker
>         Attachments: ProxiaServices2.wsdl
>
>
> I'm using XMLBeans generation from WSDL, when the message receiver access the skeleton the content response is 
> processed as:
> wrappedType.get().<<real_method_name>>.
> The generated method name is not "get()" but get<<CLASS_NAME>>, so it fails to compile.
> I think that i cannot use ADB since I need to know if primitive fields are null or not, and I haven't seen any mechanism in order to verifiy this nullity with this mechanism.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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