incubator-stonehenge-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r743257 [2/47] - in /incubator/stonehenge/trunk/stocktrader/wsas: ./ business_service/ business_service/resources/ business_service/resources/META-INF/ business_service/resources/config/ business_service/src/ business_service/src/com/ busin...
Date Wed, 11 Feb 2009 07:32:20 GMT
Added: incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/META-INF/xsd1.xsd
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/META-INF/xsd1.xsd?rev=743257&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/META-INF/xsd1.xsd (added)
+++ incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/META-INF/xsd1.xsd Wed Feb 11 07:32:15 2009
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/">
+    <xs:element name="anyType" nillable="true" type="xs:anyType"/>
+    <xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
+    <xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
+    <xs:element name="boolean" nillable="true" type="xs:boolean"/>
+    <xs:element name="byte" nillable="true" type="xs:byte"/>
+    <xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
+    <xs:element name="decimal" nillable="true" type="xs:decimal"/>
+    <xs:element name="double" nillable="true" type="xs:double"/>
+    <xs:element name="float" nillable="true" type="xs:float"/>
+    <xs:element name="int" nillable="true" type="xs:int"/>
+    <xs:element name="long" nillable="true" type="xs:long"/>
+    <xs:element name="QName" nillable="true" type="xs:QName"/>
+    <xs:element name="short" nillable="true" type="xs:short"/>
+    <xs:element name="string" nillable="true" type="xs:string"/>
+    <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
+    <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
+    <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
+    <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
+    <xs:element name="char" nillable="true" type="tns:char"/>
+    <xs:simpleType name="char">
+        <xs:restriction base="xs:int"/>
+    </xs:simpleType>
+    <xs:element name="duration" nillable="true" type="tns:duration"/>
+    <xs:simpleType name="duration">
+        <xs:restriction base="xs:duration">
+            <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
+            <xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
+            <xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:element name="guid" nillable="true" type="tns:guid"/>
+    <xs:simpleType name="guid">
+        <xs:restriction base="xs:string">
+            <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:attribute name="FactoryType" type="xs:QName"/>
+</xs:schema>

Added: incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/config/sec.jks
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/config/sec.jks?rev=743257&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/config/sec.jks
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/config/security-policy.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/config/security-policy.xml?rev=743257&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/config/security-policy.xml (added)
+++ incubator/stonehenge/trunk/stocktrader/wsas/business_service/resources/config/security-policy.xml Wed Feb 11 07:32:15 2009
@@ -0,0 +1,75 @@
+<wsp:Policy wsu:Id="SgnEncrAnonymous" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+			   <wsp:ExactlyOne>
+				  <wsp:All>
+					 <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+						<wsp:Policy>
+						   <sp:ProtectionToken>
+							  <wsp:Policy>
+								 <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+									<wsp:Policy>
+									   <sp:RequireThumbprintReference />
+									   <sp:WssX509V3Token10 />
+									</wsp:Policy>
+								 </sp:X509Token>
+							  </wsp:Policy>
+						   </sp:ProtectionToken>
+						   <sp:AlgorithmSuite xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+							  <wsp:Policy>
+								 <sp:Basic256 />
+							  </wsp:Policy>
+						   </sp:AlgorithmSuite>
+						   <sp:Layout>
+							  <wsp:Policy>
+								 <sp:Lax />
+							  </wsp:Policy>
+						   </sp:Layout>
+						   <sp:IncludeTimestamp />
+						   <sp:OnlySignEntireHeadersAndBody />
+						</wsp:Policy>
+					 </sp:SymmetricBinding>
+					 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+						<sp:Body />
+					 </sp:SignedParts>
+					 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+						<sp:Body />
+					 </sp:EncryptedParts>
+					 <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+						<sp:Policy>
+						   <sp:MustSupportRefKeyIdentifier />
+						   <sp:MustSupportRefIssuerSerial />
+						   <sp:MustSupportRefThumbprint />
+						   <sp:RequireSignatureConfirmation />
+						</sp:Policy>
+					 </sp:Wss11>
+					 <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+						<wsp:Policy>
+						   <sp:RequireClientEntropy />
+						   <sp:RequireServerEntropy />
+						   <sp:MustSupportIssuedTokens />
+						</wsp:Policy>
+					 </sp:Trust10>
+					   <rampart:RampartConfig xmlns:rampart="http://ws.apache.org/rampart/policy">
+						  <rampart:user>bob</rampart:user>
+						  <rampart:encryptionUser>bob.cer</rampart:encryptionUser>
+						  <rampart:timestampPrecisionInMilliseconds>true</rampart:timestampPrecisionInMilliseconds>
+						  <rampart:timestampTTL>300</rampart:timestampTTL>
+						  <rampart:timestampMaxSkew>300</rampart:timestampMaxSkew>
+						  <rampart:signatureCrypto>
+						<rampart:crypto provider="org.apache.ws.security.components.crypto.Merlin">
+							<rampart:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</rampart:property>
+							<rampart:property name="org.apache.ws.security.crypto.merlin.file">sec.jks</rampart:property>
+							<rampart:property name="org.apache.ws.security.crypto.merlin.keystore.password">password</rampart:property>
+						</rampart:crypto>
+					</rampart:signatureCrypto>
+					<rampart:encryptionCypto>
+						<rampart:crypto provider="org.apache.ws.security.components.crypto.Merlin">
+							<rampart:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</rampart:property>
+							<rampart:property name="org.apache.ws.security.crypto.merlin.file">sec.jks</rampart:property>
+							<rampart:property name="org.apache.ws.security.crypto.merlin.keystore.password">password</rampart:property>
+						</rampart:crypto>
+					</rampart:encryptionCypto>
+						  <rampart:passwordCallbackClass>org.wso2.stocktrader.services.TradeOrderServiceClientPasswordCB</rampart:passwordCallbackClass>
+					   </rampart:RampartConfig>
+				  </wsp:All>
+			   </wsp:ExactlyOne>
+			</wsp:Policy>

Added: incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/com/ibm/websphere/samples/trade/AccountDataBean.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/com/ibm/websphere/samples/trade/AccountDataBean.java?rev=743257&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/com/ibm/websphere/samples/trade/AccountDataBean.java (added)
+++ incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/com/ibm/websphere/samples/trade/AccountDataBean.java Wed Feb 11 07:32:15 2009
@@ -0,0 +1,1238 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * AccountDataBean.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: SNAPSHOT  Built on : Jun 20, 2008 (01:53:25 IST)
+ */
+            
+                package com.ibm.websphere.samples.trade;
+            
+
+            /**
+            *  AccountDataBean bean class
+            */
+        
+        public  class AccountDataBean
+        implements org.apache.axis2.databinding.ADBBean{
+        /* This type was generated from the piece of schema that had
+                name = AccountDataBean
+                Namespace URI = http://trade.samples.websphere.ibm.com
+                Namespace Prefix = ns1
+                */
+            
+
+        private static java.lang.String generatePrefix(java.lang.String namespace) {
+            if(namespace.equals("http://trade.samples.websphere.ibm.com")){
+                return "ns1";
+            }
+            return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+        }
+
+        
+
+                        /**
+                        * field for AccountID
+                        */
+
+                        
+                                    protected int localAccountID ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localAccountIDTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return int
+                           */
+                           public  int getAccountID(){
+                               return localAccountID;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param AccountID
+                               */
+                               public void setAccountID(int param){
+                            
+                                       // setting primitive attribute tracker to true
+                                       
+                                               if (param==java.lang.Integer.MIN_VALUE) {
+                                           localAccountIDTracker = false;
+                                              
+                                       } else {
+                                          localAccountIDTracker = true;
+                                       }
+                                   
+                                            this.localAccountID=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for LoginCount
+                        */
+
+                        
+                                    protected int localLoginCount ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localLoginCountTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return int
+                           */
+                           public  int getLoginCount(){
+                               return localLoginCount;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param LoginCount
+                               */
+                               public void setLoginCount(int param){
+                            
+                                       // setting primitive attribute tracker to true
+                                       
+                                               if (param==java.lang.Integer.MIN_VALUE) {
+                                           localLoginCountTracker = false;
+                                              
+                                       } else {
+                                          localLoginCountTracker = true;
+                                       }
+                                   
+                                            this.localLoginCount=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for LogoutCount
+                        */
+
+                        
+                                    protected int localLogoutCount ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localLogoutCountTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return int
+                           */
+                           public  int getLogoutCount(){
+                               return localLogoutCount;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param LogoutCount
+                               */
+                               public void setLogoutCount(int param){
+                            
+                                       // setting primitive attribute tracker to true
+                                       
+                                               if (param==java.lang.Integer.MIN_VALUE) {
+                                           localLogoutCountTracker = false;
+                                              
+                                       } else {
+                                          localLogoutCountTracker = true;
+                                       }
+                                   
+                                            this.localLogoutCount=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for LastLogin
+                        */
+
+                        
+                                    protected java.util.Calendar localLastLogin ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localLastLoginTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.util.Calendar
+                           */
+                           public  java.util.Calendar getLastLogin(){
+                               return localLastLogin;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param LastLogin
+                               */
+                               public void setLastLogin(java.util.Calendar param){
+                            
+                                       if (param != null){
+                                          //update the setting tracker
+                                          localLastLoginTracker = true;
+                                       } else {
+                                          localLastLoginTracker = false;
+                                              
+                                       }
+                                   
+                                            this.localLastLogin=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for CreationDate
+                        */
+
+                        
+                                    protected java.util.Calendar localCreationDate ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localCreationDateTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.util.Calendar
+                           */
+                           public  java.util.Calendar getCreationDate(){
+                               return localCreationDate;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param CreationDate
+                               */
+                               public void setCreationDate(java.util.Calendar param){
+                            
+                                       if (param != null){
+                                          //update the setting tracker
+                                          localCreationDateTracker = true;
+                                       } else {
+                                          localCreationDateTracker = false;
+                                              
+                                       }
+                                   
+                                            this.localCreationDate=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for Balance
+                        */
+
+                        
+                                    protected java.math.BigDecimal localBalance ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localBalanceTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.math.BigDecimal
+                           */
+                           public  java.math.BigDecimal getBalance(){
+                               return localBalance;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param Balance
+                               */
+                               public void setBalance(java.math.BigDecimal param){
+                            
+                                       if (param != null){
+                                          //update the setting tracker
+                                          localBalanceTracker = true;
+                                       } else {
+                                          localBalanceTracker = false;
+                                              
+                                       }
+                                   
+                                            this.localBalance=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for OpenBalance
+                        */
+
+                        
+                                    protected java.math.BigDecimal localOpenBalance ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localOpenBalanceTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.math.BigDecimal
+                           */
+                           public  java.math.BigDecimal getOpenBalance(){
+                               return localOpenBalance;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param OpenBalance
+                               */
+                               public void setOpenBalance(java.math.BigDecimal param){
+                            
+                                       if (param != null){
+                                          //update the setting tracker
+                                          localOpenBalanceTracker = true;
+                                       } else {
+                                          localOpenBalanceTracker = false;
+                                              
+                                       }
+                                   
+                                            this.localOpenBalance=param;
+                                    
+
+                               }
+                            
+
+                        /**
+                        * field for ProfileID
+                        */
+
+                        
+                                    protected java.lang.String localProfileID ;
+                                
+                           /*  This tracker boolean wil be used to detect whether the user called the set method
+                          *   for this attribute. It will be used to determine whether to include this field
+                           *   in the serialized XML
+                           */
+                           protected boolean localProfileIDTracker = false ;
+                           
+
+                           /**
+                           * Auto generated getter method
+                           * @return java.lang.String
+                           */
+                           public  java.lang.String getProfileID(){
+                               return localProfileID;
+                           }
+
+                           
+                        
+                            /**
+                               * Auto generated setter method
+                               * @param param ProfileID
+                               */
+                               public void setProfileID(java.lang.String param){
+                            
+                                       if (param != null){
+                                          //update the setting tracker
+                                          localProfileIDTracker = true;
+                                       } else {
+                                          localProfileIDTracker = true;
+                                              
+                                       }
+                                   
+                                            this.localProfileID=param;
+                                    
+
+                               }
+                            
+
+     /**
+     * isReaderMTOMAware
+     * @return true if the reader supports MTOM
+     */
+   public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
+        boolean isReaderMTOMAware = false;
+        
+        try{
+          isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
+        }catch(java.lang.IllegalArgumentException e){
+          isReaderMTOMAware = false;
+        }
+        return isReaderMTOMAware;
+   }
+     
+     
+        /**
+        *
+        * @param parentQName
+        * @param factory
+        * @return org.apache.axiom.om.OMElement
+        */
+       public org.apache.axiom.om.OMElement getOMElement (
+               final javax.xml.namespace.QName parentQName,
+               final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
+
+
+        
+               org.apache.axiom.om.OMDataSource dataSource =
+                       new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
+
+                 public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+                       AccountDataBean.this.serialize(parentQName,factory,xmlWriter);
+                 }
+               };
+               return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
+               parentQName,factory,dataSource);
+            
+       }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                                       final org.apache.axiom.om.OMFactory factory,
+                                       org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
+                                throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+                           serialize(parentQName,factory,xmlWriter,false);
+         }
+
+         public void serialize(final javax.xml.namespace.QName parentQName,
+                               final org.apache.axiom.om.OMFactory factory,
+                               org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
+                               boolean serializeType)
+            throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
+            
+                
+
+
+                java.lang.String prefix = null;
+                java.lang.String namespace = null;
+                
+
+                    prefix = parentQName.getPrefix();
+                    namespace = parentQName.getNamespaceURI();
+
+                    if ((namespace != null) && (namespace.trim().length() > 0)) {
+                        java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
+                        if (writerPrefix != null) {
+                            xmlWriter.writeStartElement(namespace, parentQName.getLocalPart());
+                        } else {
+                            if (prefix == null) {
+                                prefix = generatePrefix(namespace);
+                            }
+
+                            xmlWriter.writeStartElement(prefix, parentQName.getLocalPart(), namespace);
+                            xmlWriter.writeNamespace(prefix, namespace);
+                            xmlWriter.setPrefix(prefix, namespace);
+                        }
+                    } else {
+                        xmlWriter.writeStartElement(parentQName.getLocalPart());
+                    }
+                
+                  if (serializeType){
+               
+
+                   java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://trade.samples.websphere.ibm.com");
+                   if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           namespacePrefix+":AccountDataBean",
+                           xmlWriter);
+                   } else {
+                       writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
+                           "AccountDataBean",
+                           xmlWriter);
+                   }
+
+               
+                   }
+                if (localAccountIDTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"accountID", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"accountID");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("accountID");
+                                    }
+                                
+                                               if (localAccountID==java.lang.Integer.MIN_VALUE) {
+                                           
+                                                         throw new org.apache.axis2.databinding.ADBException("accountID cannot be null!!");
+                                                      
+                                               } else {
+                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAccountID));
+                                               }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localLoginCountTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"loginCount", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"loginCount");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("loginCount");
+                                    }
+                                
+                                               if (localLoginCount==java.lang.Integer.MIN_VALUE) {
+                                           
+                                                         throw new org.apache.axis2.databinding.ADBException("loginCount cannot be null!!");
+                                                      
+                                               } else {
+                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLoginCount));
+                                               }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localLogoutCountTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"logoutCount", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"logoutCount");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("logoutCount");
+                                    }
+                                
+                                               if (localLogoutCount==java.lang.Integer.MIN_VALUE) {
+                                           
+                                                         throw new org.apache.axis2.databinding.ADBException("logoutCount cannot be null!!");
+                                                      
+                                               } else {
+                                                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLogoutCount));
+                                               }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localLastLoginTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"lastLogin", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"lastLogin");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("lastLogin");
+                                    }
+                                
+
+                                          if (localLastLogin==null){
+                                              // write the nil attribute
+                                              
+                                                     throw new org.apache.axis2.databinding.ADBException("lastLogin cannot be null!!");
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastLogin));
+                                            
+                                          }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localCreationDateTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"creationDate", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"creationDate");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("creationDate");
+                                    }
+                                
+
+                                          if (localCreationDate==null){
+                                              // write the nil attribute
+                                              
+                                                     throw new org.apache.axis2.databinding.ADBException("creationDate cannot be null!!");
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCreationDate));
+                                            
+                                          }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localBalanceTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"balance", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"balance");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("balance");
+                                    }
+                                
+
+                                          if (localBalance==null){
+                                              // write the nil attribute
+                                              
+                                                     throw new org.apache.axis2.databinding.ADBException("balance cannot be null!!");
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBalance));
+                                            
+                                          }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localOpenBalanceTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"openBalance", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"openBalance");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("openBalance");
+                                    }
+                                
+
+                                          if (localOpenBalance==null){
+                                              // write the nil attribute
+                                              
+                                                     throw new org.apache.axis2.databinding.ADBException("openBalance cannot be null!!");
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOpenBalance));
+                                            
+                                          }
+                                    
+                                   xmlWriter.writeEndElement();
+                             } if (localProfileIDTracker){
+                                    namespace = "http://trade.samples.websphere.ibm.com";
+                                    if (! namespace.equals("")) {
+                                        prefix = xmlWriter.getPrefix(namespace);
+
+                                        if (prefix == null) {
+                                            prefix = generatePrefix(namespace);
+
+                                            xmlWriter.writeStartElement(prefix,"profileID", namespace);
+                                            xmlWriter.writeNamespace(prefix, namespace);
+                                            xmlWriter.setPrefix(prefix, namespace);
+
+                                        } else {
+                                            xmlWriter.writeStartElement(namespace,"profileID");
+                                        }
+
+                                    } else {
+                                        xmlWriter.writeStartElement("profileID");
+                                    }
+                                
+
+                                          if (localProfileID==null){
+                                              // write the nil attribute
+                                              
+                                                     writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
+                                                  
+                                          }else{
+
+                                        
+                                                   xmlWriter.writeCharacters(localProfileID);
+                                            
+                                          }
+                                    
+                                   xmlWriter.writeEndElement();
+                             }
+                    xmlWriter.writeEndElement();
+               
+
+        }
+
+         /**
+          * Util method to write an attribute with the ns prefix
+          */
+          private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
+                                      java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+              if (xmlWriter.getPrefix(namespace) == null) {
+                       xmlWriter.writeNamespace(prefix, namespace);
+                       xmlWriter.setPrefix(prefix, namespace);
+
+              }
+
+              xmlWriter.writeAttribute(namespace,attName,attValue);
+
+         }
+
+        /**
+          * Util method to write an attribute without the ns prefix
+          */
+          private void writeAttribute(java.lang.String namespace,java.lang.String attName,
+                                      java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
+                if (namespace.equals(""))
+              {
+                  xmlWriter.writeAttribute(attName,attValue);
+              }
+              else
+              {
+                  registerPrefix(xmlWriter, namespace);
+                  xmlWriter.writeAttribute(namespace,attName,attValue);
+              }
+          }
+
+
+           /**
+             * Util method to write an attribute without the ns prefix
+             */
+            private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
+                                             javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+                java.lang.String attributeNamespace = qname.getNamespaceURI();
+                java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
+                if (attributePrefix == null) {
+                    attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
+                }
+                java.lang.String attributeValue;
+                if (attributePrefix.trim().length() > 0) {
+                    attributeValue = attributePrefix + ":" + qname.getLocalPart();
+                } else {
+                    attributeValue = qname.getLocalPart();
+                }
+
+                if (namespace.equals("")) {
+                    xmlWriter.writeAttribute(attName, attributeValue);
+                } else {
+                    registerPrefix(xmlWriter, namespace);
+                    xmlWriter.writeAttribute(namespace, attName, attributeValue);
+                }
+            }
+        /**
+         *  method to handle Qnames
+         */
+
+        private void writeQName(javax.xml.namespace.QName qname,
+                                javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+            java.lang.String namespaceURI = qname.getNamespaceURI();
+            if (namespaceURI != null) {
+                java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
+                if (prefix == null) {
+                    prefix = generatePrefix(namespaceURI);
+                    xmlWriter.writeNamespace(prefix, namespaceURI);
+                    xmlWriter.setPrefix(prefix,namespaceURI);
+                }
+
+                if (prefix.trim().length() > 0){
+                    xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                } else {
+                    // i.e this is the default namespace
+                    xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+                }
+
+            } else {
+                xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
+            }
+        }
+
+        private void writeQNames(javax.xml.namespace.QName[] qnames,
+                                 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
+
+            if (qnames != null) {
+                // we have to store this data until last moment since it is not possible to write any
+                // namespace data after writing the charactor data
+                java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
+                java.lang.String namespaceURI = null;
+                java.lang.String prefix = null;
+
+                for (int i = 0; i < qnames.length; i++) {
+                    if (i > 0) {
+                        stringToWrite.append(" ");
+                    }
+                    namespaceURI = qnames[i].getNamespaceURI();
+                    if (namespaceURI != null) {
+                        prefix = xmlWriter.getPrefix(namespaceURI);
+                        if ((prefix == null) || (prefix.length() == 0)) {
+                            prefix = generatePrefix(namespaceURI);
+                            xmlWriter.writeNamespace(prefix, namespaceURI);
+                            xmlWriter.setPrefix(prefix,namespaceURI);
+                        }
+
+                        if (prefix.trim().length() > 0){
+                            stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        } else {
+                            stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                        }
+                    } else {
+                        stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
+                    }
+                }
+                xmlWriter.writeCharacters(stringToWrite.toString());
+            }
+
+        }
+
+
+         /**
+         * Register a namespace prefix
+         */
+         private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
+                java.lang.String prefix = xmlWriter.getPrefix(namespace);
+
+                if (prefix == null) {
+                    prefix = generatePrefix(namespace);
+
+                    while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
+                        prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
+                    }
+
+                    xmlWriter.writeNamespace(prefix, namespace);
+                    xmlWriter.setPrefix(prefix, namespace);
+                }
+
+                return prefix;
+            }
+
+
+  
+        /**
+        * databinding method to get an XML representation of this object
+        *
+        */
+        public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
+                    throws org.apache.axis2.databinding.ADBException{
+
+
+        
+                 java.util.ArrayList elementList = new java.util.ArrayList();
+                 java.util.ArrayList attribList = new java.util.ArrayList();
+
+                 if (localAccountIDTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "accountID"));
+                                 
+                                elementList.add(
+                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAccountID));
+                            } if (localLoginCountTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "loginCount"));
+                                 
+                                elementList.add(
+                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLoginCount));
+                            } if (localLogoutCountTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "logoutCount"));
+                                 
+                                elementList.add(
+                                   org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLogoutCount));
+                            } if (localLastLoginTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "lastLogin"));
+                                 
+                                        if (localLastLogin != null){
+                                            elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastLogin));
+                                        } else {
+                                           throw new org.apache.axis2.databinding.ADBException("lastLogin cannot be null!!");
+                                        }
+                                    } if (localCreationDateTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "creationDate"));
+                                 
+                                        if (localCreationDate != null){
+                                            elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCreationDate));
+                                        } else {
+                                           throw new org.apache.axis2.databinding.ADBException("creationDate cannot be null!!");
+                                        }
+                                    } if (localBalanceTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "balance"));
+                                 
+                                        if (localBalance != null){
+                                            elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBalance));
+                                        } else {
+                                           throw new org.apache.axis2.databinding.ADBException("balance cannot be null!!");
+                                        }
+                                    } if (localOpenBalanceTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "openBalance"));
+                                 
+                                        if (localOpenBalance != null){
+                                            elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOpenBalance));
+                                        } else {
+                                           throw new org.apache.axis2.databinding.ADBException("openBalance cannot be null!!");
+                                        }
+                                    } if (localProfileIDTracker){
+                                      elementList.add(new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com",
+                                                                      "profileID"));
+                                 
+                                         elementList.add(localProfileID==null?null:
+                                         org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProfileID));
+                                    }
+
+                return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
+            
+            
+
+        }
+
+  
+
+     /**
+      *  Factory class that keeps the parse method
+      */
+    public static class Factory{
+
+        
+        
+
+        /**
+        * static method to create the object
+        * Precondition:  If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
+        *                If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
+        * Postcondition: If this object is an element, the reader is positioned at its end element
+        *                If this object is a complex type, the reader is positioned at the end element of its outer element
+        */
+        public static AccountDataBean parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
+            AccountDataBean object =
+                new AccountDataBean();
+
+            int event;
+            java.lang.String nillableValue = null;
+            java.lang.String prefix ="";
+            java.lang.String namespaceuri ="";
+            try {
+                
+                while (!reader.isStartElement() && !reader.isEndElement())
+                    reader.next();
+
+                
+                if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
+                  java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
+                        "type");
+                  if (fullTypeName!=null){
+                    java.lang.String nsPrefix = null;
+                    if (fullTypeName.indexOf(":") > -1){
+                        nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
+                    }
+                    nsPrefix = nsPrefix==null?"":nsPrefix;
+
+                    java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
+                    
+                            if (!"AccountDataBean".equals(type)){
+                                //find namespace for the prefix
+                                java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
+                                return (AccountDataBean)com.ibm.websphere.samples.trade.imports.ExtensionMapper.getTypeObject(
+                                     nsUri,type,reader);
+                              }
+                        
+
+                  }
+                
+
+                }
+
+                
+
+                
+                // Note all attributes that were handled. Used to differ normal attributes
+                // from anyAttributes.
+                java.util.Vector handledAttributes = new java.util.Vector();
+                
+
+                 
+                    
+                    reader.next();
+                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","accountID").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setAccountID(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                               object.setAccountID(java.lang.Integer.MIN_VALUE);
+                                           
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","loginCount").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setLoginCount(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                               object.setLoginCount(java.lang.Integer.MIN_VALUE);
+                                           
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","logoutCount").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setLogoutCount(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                               object.setLogoutCount(java.lang.Integer.MIN_VALUE);
+                                           
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","lastLogin").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setLastLogin(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","creationDate").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setCreationDate(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","balance").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setBalance(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","openBalance").equals(reader.getName())){
+                                
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setOpenBalance(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
+                                              
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                    }
+                                
+                                    
+                                    while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
+                                
+                                    if (reader.isStartElement() && new javax.xml.namespace.QName("http://trade.samples.websphere.ibm.com","profileID").equals(reader.getName())){
+                                
+                                       nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
+                                       if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
+                                    
+                                    java.lang.String content = reader.getElementText();
+                                    
+                                              object.setProfileID(
+                                                    org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
+                                            
+                                       } else {
+                                           
+                                           
+                                           reader.getElementText(); // throw away text nodes if any.
+                                       }
+                                      
+                                        reader.next();
+                                    
+                              }  // End of if for expected property start element
+                                
+                                    else {
+                                        
+                                    }
+                                  
+                            while (!reader.isStartElement() && !reader.isEndElement())
+                                reader.next();
+                            
+                                if (reader.isStartElement())
+                                // A start element we are not expecting indicates a trailing invalid property
+                                throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getLocalName());
+                            
+
+
+
+            } catch (javax.xml.stream.XMLStreamException e) {
+                throw new java.lang.Exception(e);
+            }
+
+            return object;
+        }
+
+        }//end of factory class
+
+        
+
+        }
+           
+          



Mime
View raw message