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 [30/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/ busi...
Date Wed, 11 Feb 2009 07:32:20 GMT
Added: incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/tempuri/TradeServiceWcfMessageReceiverInOut.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/tempuri/TradeServiceWcfMessageReceiverInOut.java?rev=743257&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/tempuri/TradeServiceWcfMessageReceiverInOut.java (added)
+++ incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/tempuri/TradeServiceWcfMessageReceiverInOut.java Wed Feb 11 07:32:15 2009
@@ -0,0 +1,1485 @@
+/*
+ * 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.
+ */
+
+/**
+ * TradeServiceWcfMessageReceiverInOut.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: SNAPSHOT  Built on : Jun 20, 2008 (01:53:16 IST)
+ */
+        package org.tempuri;
+
+        /**
+        *  TradeServiceWcfMessageReceiverInOut message receiver
+        */
+
+        public class TradeServiceWcfMessageReceiverInOut extends org.apache.axis2.receivers.AbstractInOutMessageReceiver{
+
+
+        public void invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext, org.apache.axis2.context.MessageContext newMsgContext)
+        throws org.apache.axis2.AxisFault{
+
+        try {
+
+        // get the implementation class for the Web Service
+        Object obj = getTheImplementationObject(msgContext);
+
+        TradeServiceWcfSkeleton skel = (TradeServiceWcfSkeleton)obj;
+        //Out Envelop
+        org.apache.axiom.soap.SOAPEnvelope envelope = null;
+        //Find the axisOperation that has been set by the Dispatch phase.
+        org.apache.axis2.description.AxisOperation op = msgContext.getOperationContext().getAxisOperation();
+        if (op == null) {
+        throw new org.apache.axis2.AxisFault("Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+        }
+
+        java.lang.String methodName;
+        if((op.getName() != null) && ((methodName = org.apache.axis2.util.JavaUtils.xmlNameToJavaIdentifier(op.getName().getLocalPart())) != null)){
+
+        
+
+            if("getHolding".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetHoldingResponse getHoldingResponse37 = null;
+	                        com.ibm.websphere.samples.trade.GetHolding wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetHolding)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetHolding.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getHoldingResponse37 =
+                                                   
+                                                   
+                                                         skel.getHolding(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getHoldingResponse37, false);
+                                    } else 
+
+            if("register".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.RegisterResponse registerResponse39 = null;
+	                        com.ibm.websphere.samples.trade.Register wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.Register)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.Register.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               registerResponse39 =
+                                                   
+                                                   
+                                                         skel.register(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), registerResponse39, false);
+                                    } else 
+
+            if("logout".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.LogoutResponse logoutResponse41 = null;
+	                        com.ibm.websphere.samples.trade.Logout wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.Logout)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.Logout.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               logoutResponse41 =
+                                                   
+                                                   
+                                                         skel.logout(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), logoutResponse41, false);
+                                    } else 
+
+            if("getAccountProfileData".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetAccountProfileDataResponse getAccountProfileDataResponse43 = null;
+	                        com.ibm.websphere.samples.trade.GetAccountProfileData wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetAccountProfileData)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetAccountProfileData.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getAccountProfileDataResponse43 =
+                                                   
+                                                   
+                                                         skel.getAccountProfileData(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getAccountProfileDataResponse43, false);
+                                    } else 
+
+            if("getClosedOrders".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetClosedOrdersResponse getClosedOrdersResponse45 = null;
+	                        com.ibm.websphere.samples.trade.GetClosedOrders wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetClosedOrders)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetClosedOrders.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getClosedOrdersResponse45 =
+                                                   
+                                                   
+                                                         skel.getClosedOrders(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getClosedOrdersResponse45, false);
+                                    } else 
+
+            if("getHoldings".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetHoldingsResponse getHoldingsResponse47 = null;
+	                        com.ibm.websphere.samples.trade.GetHoldings wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetHoldings)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetHoldings.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getHoldingsResponse47 =
+                                                   
+                                                   
+                                                         skel.getHoldings(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getHoldingsResponse47, false);
+                                    } else 
+
+            if("buy".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.BuyResponse buyResponse49 = null;
+	                        com.ibm.websphere.samples.trade.Buy wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.Buy)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.Buy.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               buyResponse49 =
+                                                   
+                                                   
+                                                         skel.buy(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), buyResponse49, false);
+                                    } else 
+
+            if("login".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.LoginResponse loginResponse51 = null;
+	                        com.ibm.websphere.samples.trade.Login wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.Login)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.Login.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               loginResponse51 =
+                                                   
+                                                   
+                                                         skel.login(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), loginResponse51, false);
+                                    } else 
+
+            if("getTopOrders".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetTopOrdersResponse getTopOrdersResponse53 = null;
+	                        com.ibm.websphere.samples.trade.GetTopOrders wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetTopOrders)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetTopOrders.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getTopOrdersResponse53 =
+                                                   
+                                                   
+                                                         skel.getTopOrders(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getTopOrdersResponse53, false);
+                                    } else 
+
+            if("emptyMethodAction".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.EmptyMethodActionResponse emptyMethodActionResponse55 = null;
+	                        com.ibm.websphere.samples.trade.EmptyMethodAction wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.EmptyMethodAction)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.EmptyMethodAction.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               emptyMethodActionResponse55 =
+                                                   
+                                                   
+                                                         skel.emptyMethodAction(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), emptyMethodActionResponse55, false);
+                                    } else 
+
+            if("getMarketSummary".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetMarketSummaryResponse getMarketSummaryResponse57 = null;
+	                        com.ibm.websphere.samples.trade.GetMarketSummary wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetMarketSummary)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetMarketSummary.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getMarketSummaryResponse57 =
+                                                   
+                                                   
+                                                         skel.getMarketSummary(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getMarketSummaryResponse57, false);
+                                    } else 
+
+            if("getAccountData".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetAccountDataResponse getAccountDataResponse59 = null;
+	                        com.ibm.websphere.samples.trade.GetAccountData wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetAccountData)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetAccountData.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getAccountDataResponse59 =
+                                                   
+                                                   
+                                                         skel.getAccountData(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getAccountDataResponse59, false);
+                                    } else 
+
+            if("sell".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.SellResponse sellResponse61 = null;
+	                        com.ibm.websphere.samples.trade.Sell wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.Sell)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.Sell.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               sellResponse61 =
+                                                   
+                                                   
+                                                         skel.sell(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), sellResponse61, false);
+                                    } else 
+
+            if("getQuote".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetQuoteResponse getQuoteResponse63 = null;
+	                        com.ibm.websphere.samples.trade.GetQuote wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetQuote)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetQuote.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getQuoteResponse63 =
+                                                   
+                                                   
+                                                         skel.getQuote(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getQuoteResponse63, false);
+                                    } else 
+
+            if("sellEnhanced".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.SellEnhancedResponse sellEnhancedResponse65 = null;
+	                        com.ibm.websphere.samples.trade.SellEnhanced wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.SellEnhanced)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.SellEnhanced.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               sellEnhancedResponse65 =
+                                                   
+                                                   
+                                                         skel.sellEnhanced(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), sellEnhancedResponse65, false);
+                                    } else 
+
+            if("getOrders".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.GetOrdersResponse getOrdersResponse67 = null;
+	                        com.ibm.websphere.samples.trade.GetOrders wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.GetOrders)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.GetOrders.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               getOrdersResponse67 =
+                                                   
+                                                   
+                                                         skel.getOrders(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), getOrdersResponse67, false);
+                                    } else 
+
+            if("updateAccountProfile".equals(methodName)){
+                
+                com.ibm.websphere.samples.trade.UpdateAccountProfileResponse updateAccountProfileResponse69 = null;
+	                        com.ibm.websphere.samples.trade.UpdateAccountProfile wrappedParam =
+                                                             (com.ibm.websphere.samples.trade.UpdateAccountProfile)fromOM(
+                                    msgContext.getEnvelope().getBody().getFirstElement(),
+                                    com.ibm.websphere.samples.trade.UpdateAccountProfile.class,
+                                    getEnvelopeNamespaces(msgContext.getEnvelope()));
+                                                
+                                               updateAccountProfileResponse69 =
+                                                   
+                                                   
+                                                         skel.updateAccountProfile(wrappedParam)
+                                                    ;
+                                            
+                                        envelope = toEnvelope(getSOAPFactory(msgContext), updateAccountProfileResponse69, false);
+                                    
+            } else {
+              throw new java.lang.RuntimeException("method not found");
+            }
+        
+
+        newMsgContext.setEnvelope(envelope);
+        }
+        }
+        catch (java.lang.Exception e) {
+        throw org.apache.axis2.AxisFault.makeFault(e);
+        }
+        }
+        
+        //
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetHolding param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetHolding.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetHoldingResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetHoldingResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.Register param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.Register.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.RegisterResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.RegisterResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.IsOnline param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.IsOnline.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.Logout param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.Logout.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.LogoutResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.LogoutResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetAccountProfileData param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetAccountProfileData.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetAccountProfileDataResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetAccountProfileDataResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetClosedOrders param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetClosedOrders.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetClosedOrdersResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetClosedOrdersResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetHoldings param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetHoldings.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetHoldingsResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetHoldingsResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.Buy param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.Buy.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.BuyResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.BuyResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.Login param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.Login.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.LoginResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.LoginResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetTopOrders param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetTopOrders.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetTopOrdersResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetTopOrdersResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.EmptyMethodAction param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.EmptyMethodAction.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.EmptyMethodActionResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.EmptyMethodActionResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetMarketSummary param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetMarketSummary.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetMarketSummaryResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetMarketSummaryResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetAccountData param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetAccountData.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetAccountDataResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetAccountDataResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.Sell param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.Sell.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.SellResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.SellResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetQuote param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetQuote.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetQuoteResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetQuoteResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.SellEnhanced param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.SellEnhanced.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.SellEnhancedResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.SellEnhancedResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetOrders param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetOrders.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.GetOrdersResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.GetOrdersResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.UpdateAccountProfile param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.UpdateAccountProfile.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+            private  org.apache.axiom.om.OMElement  toOM(com.ibm.websphere.samples.trade.UpdateAccountProfileResponse param, boolean optimizeContent)
+            throws org.apache.axis2.AxisFault {
+
+            
+                        try{
+                             return param.getOMElement(com.ibm.websphere.samples.trade.UpdateAccountProfileResponse.MY_QNAME,
+                                          org.apache.axiom.om.OMAbstractFactory.getOMFactory());
+                        } catch(org.apache.axis2.databinding.ADBException e){
+                            throw org.apache.axis2.AxisFault.makeFault(e);
+                        }
+                    
+
+            }
+        
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.RegisterResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.RegisterResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.RegisterResponse wrapregister(){
+                                com.ibm.websphere.samples.trade.RegisterResponse wrappedElement = new com.ibm.websphere.samples.trade.RegisterResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetTopOrdersResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetTopOrdersResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetTopOrdersResponse wrapgetTopOrders(){
+                                com.ibm.websphere.samples.trade.GetTopOrdersResponse wrappedElement = new com.ibm.websphere.samples.trade.GetTopOrdersResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetOrdersResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetOrdersResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetOrdersResponse wrapgetOrders(){
+                                com.ibm.websphere.samples.trade.GetOrdersResponse wrappedElement = new com.ibm.websphere.samples.trade.GetOrdersResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.UpdateAccountProfileResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.UpdateAccountProfileResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.UpdateAccountProfileResponse wrapupdateAccountProfile(){
+                                com.ibm.websphere.samples.trade.UpdateAccountProfileResponse wrappedElement = new com.ibm.websphere.samples.trade.UpdateAccountProfileResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetAccountDataResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetAccountDataResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetAccountDataResponse wrapgetAccountData(){
+                                com.ibm.websphere.samples.trade.GetAccountDataResponse wrappedElement = new com.ibm.websphere.samples.trade.GetAccountDataResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.SellResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.SellResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.SellResponse wrapsell(){
+                                com.ibm.websphere.samples.trade.SellResponse wrappedElement = new com.ibm.websphere.samples.trade.SellResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.SellEnhancedResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.SellEnhancedResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.SellEnhancedResponse wrapsellEnhanced(){
+                                com.ibm.websphere.samples.trade.SellEnhancedResponse wrappedElement = new com.ibm.websphere.samples.trade.SellEnhancedResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetAccountProfileDataResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetAccountProfileDataResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetAccountProfileDataResponse wrapgetAccountProfileData(){
+                                com.ibm.websphere.samples.trade.GetAccountProfileDataResponse wrappedElement = new com.ibm.websphere.samples.trade.GetAccountProfileDataResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.LogoutResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.LogoutResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.LogoutResponse wraplogout(){
+                                com.ibm.websphere.samples.trade.LogoutResponse wrappedElement = new com.ibm.websphere.samples.trade.LogoutResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.LoginResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.LoginResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.LoginResponse wraplogin(){
+                                com.ibm.websphere.samples.trade.LoginResponse wrappedElement = new com.ibm.websphere.samples.trade.LoginResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetQuoteResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetQuoteResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetQuoteResponse wrapgetQuote(){
+                                com.ibm.websphere.samples.trade.GetQuoteResponse wrappedElement = new com.ibm.websphere.samples.trade.GetQuoteResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.EmptyMethodActionResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.EmptyMethodActionResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.EmptyMethodActionResponse wrapemptyMethodAction(){
+                                com.ibm.websphere.samples.trade.EmptyMethodActionResponse wrappedElement = new com.ibm.websphere.samples.trade.EmptyMethodActionResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetHoldingsResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetHoldingsResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetHoldingsResponse wrapgetHoldings(){
+                                com.ibm.websphere.samples.trade.GetHoldingsResponse wrappedElement = new com.ibm.websphere.samples.trade.GetHoldingsResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.BuyResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.BuyResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.BuyResponse wrapbuy(){
+                                com.ibm.websphere.samples.trade.BuyResponse wrappedElement = new com.ibm.websphere.samples.trade.BuyResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetClosedOrdersResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetClosedOrdersResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetClosedOrdersResponse wrapgetClosedOrders(){
+                                com.ibm.websphere.samples.trade.GetClosedOrdersResponse wrappedElement = new com.ibm.websphere.samples.trade.GetClosedOrdersResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetHoldingResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetHoldingResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetHoldingResponse wrapgetHolding(){
+                                com.ibm.websphere.samples.trade.GetHoldingResponse wrappedElement = new com.ibm.websphere.samples.trade.GetHoldingResponse();
+                                return wrappedElement;
+                         }
+                    
+                    private  org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.ibm.websphere.samples.trade.GetMarketSummaryResponse param, boolean optimizeContent)
+                        throws org.apache.axis2.AxisFault{
+                      try{
+                          org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
+                           
+                                    emptyEnvelope.getBody().addChild(param.getOMElement(com.ibm.websphere.samples.trade.GetMarketSummaryResponse.MY_QNAME,factory));
+                                
+
+                         return emptyEnvelope;
+                    } catch(org.apache.axis2.databinding.ADBException e){
+                        throw org.apache.axis2.AxisFault.makeFault(e);
+                    }
+                    }
+                    
+                         private com.ibm.websphere.samples.trade.GetMarketSummaryResponse wrapgetMarketSummary(){
+                                com.ibm.websphere.samples.trade.GetMarketSummaryResponse wrappedElement = new com.ibm.websphere.samples.trade.GetMarketSummaryResponse();
+                                return wrappedElement;
+                         }
+                    
+
+
+        /**
+        *  get the default envelope
+        */
+        private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
+        return factory.getDefaultEnvelope();
+        }
+
+
+        private  java.lang.Object fromOM(
+        org.apache.axiom.om.OMElement param,
+        java.lang.Class type,
+        java.util.Map extraNamespaces) throws org.apache.axis2.AxisFault{
+
+        try {
+        
+                if (com.ibm.websphere.samples.trade.GetHolding.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetHolding.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetHoldingResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetHoldingResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.Register.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.Register.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.RegisterResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.RegisterResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.IsOnline.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.IsOnline.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.Logout.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.Logout.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.LogoutResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.LogoutResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetAccountProfileData.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetAccountProfileData.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetAccountProfileDataResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetAccountProfileDataResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetClosedOrders.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetClosedOrders.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetClosedOrdersResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetClosedOrdersResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetHoldings.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetHoldings.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetHoldingsResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetHoldingsResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.Buy.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.Buy.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.BuyResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.BuyResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.Login.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.Login.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.LoginResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.LoginResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetTopOrders.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetTopOrders.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetTopOrdersResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetTopOrdersResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.EmptyMethodAction.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.EmptyMethodAction.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.EmptyMethodActionResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.EmptyMethodActionResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetMarketSummary.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetMarketSummary.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetMarketSummaryResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetMarketSummaryResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetAccountData.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetAccountData.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetAccountDataResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetAccountDataResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.Sell.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.Sell.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.SellResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.SellResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetQuote.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetQuote.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetQuoteResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetQuoteResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.SellEnhanced.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.SellEnhanced.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.SellEnhancedResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.SellEnhancedResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetOrders.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetOrders.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.GetOrdersResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.GetOrdersResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.UpdateAccountProfile.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.UpdateAccountProfile.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+                if (com.ibm.websphere.samples.trade.UpdateAccountProfileResponse.class.equals(type)){
+                
+                           return com.ibm.websphere.samples.trade.UpdateAccountProfileResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
+                    
+
+                }
+           
+        } catch (java.lang.Exception e) {
+        throw org.apache.axis2.AxisFault.makeFault(e);
+        }
+           return null;
+        }
+
+
+
+    
+
+        /**
+        *  A utility method that copies the namepaces from the SOAPEnvelope
+        */
+        private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
+        java.util.Map returnMap = new java.util.HashMap();
+        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
+        while (namespaceIterator.hasNext()) {
+        org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
+        returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
+        }
+        return returnMap;
+        }
+
+        private org.apache.axis2.AxisFault createAxisFault(java.lang.Exception e) {
+        org.apache.axis2.AxisFault f;
+        Throwable cause = e.getCause();
+        if (cause != null) {
+            f = new org.apache.axis2.AxisFault(e.getMessage(), cause);
+        } else {
+            f = new org.apache.axis2.AxisFault(e.getMessage());
+        }
+
+        return f;
+    }
+
+        }//end of class
+    



Mime
View raw message