Hallo Amila,

thank you for the fast reply.

I will use the mode of the ADBs.

The advantage of the Helper mode is that i can offer the pojos to my clients
and in my application i use the helper mode to generate the xml out of the
pojos. My clients have by using the pojos no dependency to axis2 (and the
libraries axis2 depends on). Perhaps the helper mode can be fixed in later
releases.

Greetings,
Thomas
  -----Ursprüngliche Nachricht-----
  Von: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
  Gesendet am: Mittwoch, 9. Januar 2008 05:53
  An: [email protected]; [EMAIL PROTECTED]
  Betreff: Re: [axis2] SchemeCompiler and setHelperMode(true) -> Problems
with lower case tags
  Please use the normal mode. Helper mode is not in upto date and hence it
is in some what
  depreciated mode since most of the people use the normal mode.

  In normal mode it away does not use the getPullParser method at all. It
user direct serialization
  which is fast as well.

  thanks,
  Amila.


  On Jan 8, 2008 7:44 PM, Thomas Pawlitzki <[EMAIL PROTECTED]> wrote:

    Hello everybody,

    i am using axis2's schema compiler to crate from an xsd pojos + helper
classes.
    Therefore i set the HelperMode in the compiler options to true.

    But i have a problem, when i want tu use the beans for creating an xml
request.

    The xsd defines simplified a structure as follows

    <Request>
           <Head>
                   <Field1></Field1>
           </Head>
    </Request>

    But the Request class generates by using the
RequestHelper.getOMElement() method the following xml
    <Request>
           <head>
                   <field1></field1>
           </head>
    </Request>

    As it can be seen all nested elements are lower case.

    This is the result of the following code in
org.apache.axis2.databinding.utils.BeanUtil

    public static XMLStreamReader getPullParser(Object beanObject,
                                                   QName beanName,
                                                   TypeTable typeTable,
boolean qualified) {
    // ...
    // Line 131 ff
                   BeanInfo beanInfo =
Introspector.getBeanInfo(beanObject.getClass());
               PropertyDescriptor [] propDescs =
beanInfo.getPropertyDescriptors();
               HashMap propertMap = new HashMap();
               for (int i = 0; i < propDescs.length; i++) {
                   PropertyDescriptor propDesc = propDescs[i];
                    propertMap.put(propDesc.getName(), propDesc);
               }
    // ...

    The Inspector.getBeanInfo() converts all properties names in lower
cases.
    Is this issus known?

    Do anyone know how to solve this problem?

    Thanks for help in advance.

    Greetings
    Thomas

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]





  --
  Amila Suriarachchi,
  WSO2 Inc.

Reply via email to