I did the following test with an generated ADBBean.

MyInfo myInfo = new MyInfo();
        myInfo.setAge(23);
        myInfo.setName("amila");

        try {
            OMElement omElement = myInfo.getOMElement(GetMyInfo.MY_QNAME,
OMAbstractFactory.getOMFactory());
            omElement.build();
        } catch (ADBException e) {
            e.printStackTrace();
        }

although I call build it does not call to serialize method at the ADBBean.
But if I call cloneOMElement it calls that.

is there any other way to build the whole OMElement without traversing one
by one.

thanks,
Amila.

-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Reply via email to