geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hogst...@apache.org
Subject svn commit: r293134 [3/6] - in /geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF: ./ classes/ docs/ docs/org/ docs/org/apache/ docs/org/apache/geronimo/ docs/org/apache/geronimo/samples/ docs/org/apache/geronimo/samples/daytrader/ docs/o...
Date Sun, 02 Oct 2005 16:30:33 GMT
Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/TradeServices_mapping.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/TradeServices_mapping.xml?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/TradeServices_mapping.xml (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/TradeServices_mapping.xml Sun Oct  2 09:29:58 2005
@@ -0,0 +1,935 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
+    <package-mapping>
+        <package-type>org.apache.geronimo.samples.daytrader</package-type>
+        <namespaceURI>http://daytrader.samples.geronimo.apache.org</namespaceURI>
+    </package-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.QuoteDataBean[]</java-type>
+        <anonymous-type-qname>http://daytrader.samples.geronimo.apache.org:QuoteDataBean[0,unbounded]</anonymous-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>double</java-type>
+        <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:double</root-type-qname>
+        <qname-scope>simpleType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.OrderDataBean</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:OrderDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>orderID</java-variable-name>
+            <xml-element-name>orderID</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>orderType</java-variable-name>
+            <xml-element-name>orderType</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>orderStatus</java-variable-name>
+            <xml-element-name>orderStatus</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>openDate</java-variable-name>
+            <xml-element-name>openDate</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>completionDate</java-variable-name>
+            <xml-element-name>completionDate</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>quantity</java-variable-name>
+            <xml-element-name>quantity</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>price</java-variable-name>
+            <xml-element-name>price</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>orderFee</java-variable-name>
+            <xml-element-name>orderFee</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>symbol</java-variable-name>
+            <xml-element-name>symbol</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>
+<!--    <java-xml-type-mapping>
+        <java-type>java.math.BigDecimal</java-type>
+        <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:decimal</root-type-qname>
+        <qname-scope>simpleType</qname-scope>
+    </java-xml-type-mapping>   -->
+<!--    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.OrderDataBean[]</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:ArrayOfOrderDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>orderDataBean</java-variable-name>
+            <xml-element-name>OrderDataBean</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>    -->
+<!--    <java-xml-type-mapping>
+        <java-type>java.util.Calendar</java-type>
+        <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:dateTime</root-type-qname>
+        <qname-scope>simpleType</qname-scope>
+    </java-xml-type-mapping>  -->
+<java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.AccountProfileDataBean</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:AccountProfileDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>userID</java-variable-name>
+            <xml-element-name>userID</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>password</java-variable-name>
+            <xml-element-name>password</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>fullName</java-variable-name>
+            <xml-element-name>fullName</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>address</java-variable-name>
+            <xml-element-name>address</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>email</java-variable-name>
+            <xml-element-name>email</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>creditCard</java-variable-name>
+            <xml-element-name>creditCard</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.AccountDataBean</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:AccountDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>accountID</java-variable-name>
+            <xml-element-name>accountID</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>loginCount</java-variable-name>
+            <xml-element-name>loginCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>logoutCount</java-variable-name>
+            <xml-element-name>logoutCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>lastLogin</java-variable-name>
+            <xml-element-name>lastLogin</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>creationDate</java-variable-name>
+            <xml-element-name>creationDate</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>balance</java-variable-name>
+            <xml-element-name>balance</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>openBalance</java-variable-name>
+            <xml-element-name>openBalance</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>profileID</java-variable-name>
+            <xml-element-name>profileID</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.RunStatsDataBean</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:RunStatsDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>tradeUserCount</java-variable-name>
+            <xml-element-name>tradeUserCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>newUserCount</java-variable-name>
+            <xml-element-name>newUserCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>sumLoginCount</java-variable-name>
+            <xml-element-name>sumLoginCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>sumLogoutCount</java-variable-name>
+            <xml-element-name>sumLogoutCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>holdingCount</java-variable-name>
+            <xml-element-name>holdingCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>buyOrderCount</java-variable-name>
+            <xml-element-name>buyOrderCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>sellOrderCount</java-variable-name>
+            <xml-element-name>sellOrderCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>cancelledOrderCount</java-variable-name>
+            <xml-element-name>cancelledOrderCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>openOrderCount</java-variable-name>
+            <xml-element-name>openOrderCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>deletedOrderCount</java-variable-name>
+            <xml-element-name>deletedOrderCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>orderCount</java-variable-name>
+            <xml-element-name>orderCount</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>tradeStockCount</java-variable-name>
+            <xml-element-name>tradeStockCount</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.HoldingDataBean[]</java-type>
+        <anonymous-type-qname>http://daytrader.samples.geronimo.apache.org:HoldingDataBean[0,unbounded]</anonymous-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+<!--    <java-xml-type-mapping>
+        <java-type>java.lang.String</java-type>
+        <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:string</root-type-qname>
+        <qname-scope>simpleType</qname-scope>
+    </java-xml-type-mapping>  -->
+<!--    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.HoldingDataBean[]</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:ArrayOfHoldingDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>holdingDataBean</java-variable-name>
+            <xml-element-name>HoldingDataBean</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping> -->
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.QuoteDataBean</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:QuoteDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>symbol</java-variable-name>
+            <xml-element-name>symbol</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>companyName</java-variable-name>
+            <xml-element-name>companyName</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>price</java-variable-name>
+            <xml-element-name>price</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>open</java-variable-name>
+            <xml-element-name>open</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>low</java-variable-name>
+            <xml-element-name>low</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>high</java-variable-name>
+            <xml-element-name>high</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>change</java-variable-name>
+            <xml-element-name>change</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>volume</java-variable-name>
+            <xml-element-name>volume</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.MarketSummaryDataBeanWS</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:MarketSummaryDataBeanWS</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>TSIA</java-variable-name>
+            <xml-element-name>TSIA</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>openTSIA</java-variable-name>
+            <xml-element-name>openTSIA</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>volume</java-variable-name>
+            <xml-element-name>volume</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>topGainers</java-variable-name>
+            <xml-element-name>topGainers</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>topLosers</java-variable-name>
+            <xml-element-name>topLosers</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>summaryDate</java-variable-name>
+            <xml-element-name>summaryDate</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.HoldingDataBean</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:HoldingDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>holdingID</java-variable-name>
+            <xml-element-name>holdingID</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>quantity</java-variable-name>
+            <xml-element-name>quantity</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>purchasePrice</java-variable-name>
+            <xml-element-name>purchasePrice</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>purchaseDate</java-variable-name>
+            <xml-element-name>purchaseDate</xml-element-name>
+        </variable-mapping>
+        <variable-mapping>
+            <java-variable-name>quoteID</java-variable-name>
+            <xml-element-name>quoteID</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>
+<!--    <java-xml-type-mapping>
+        <java-type>int</java-type>
+        <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:int</root-type-qname>
+        <qname-scope>simpleType</qname-scope>
+    </java-xml-type-mapping>  -->
+<!--    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.QuoteDataBean[]</java-type>
+        <root-type-qname xmlns:rtq="http://daytrader.samples.geronimo.apache.org">rtq:ArrayOfQuoteDataBean</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+        <variable-mapping>
+            <java-variable-name>quoteDataBean</java-variable-name>
+            <xml-element-name>QuoteDataBean</xml-element-name>
+        </variable-mapping>
+    </java-xml-type-mapping>  -->
+<!--    <java-xml-type-mapping>
+        <java-type>boolean</java-type>
+        <root-type-qname xmlns:rtq="http://www.w3.org/2001/XMLSchema">rtq:boolean</root-type-qname>
+        <qname-scope>simpleType</qname-scope>
+    </java-xml-type-mapping>   -->
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.OrderDataBean[]</java-type>
+        <anonymous-type-qname>http://daytrader.samples.geronimo.apache.org:OrderDataBean[0,unbounded]</anonymous-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.QuoteDataBean[]</java-type>
+        <anonymous-type-qname>http://daytrader.samples.geronimo.apache.org:ArrayOfQuoteDataBean&gt;QuoteDataBean[0,unbounded]</anonymous-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.HoldingDataBean[]</java-type>
+        <anonymous-type-qname>http://daytrader.samples.geronimo.apache.org:ArrayOfHoldingDataBean&gt;HoldingDataBean[0,unbounded]</anonymous-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.apache.geronimo.samples.daytrader.OrderDataBean[]</java-type>
+        <anonymous-type-qname>http://daytrader.samples.geronimo.apache.org:ArrayOfOrderDataBean&gt;OrderDataBean[0,unbounded]</anonymous-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <service-interface-mapping>
+        <service-interface>org.apache.geronimo.samples.daytrader.Trade</service-interface>
+        <wsdl-service-name xmlns:sim="http://daytrader.samples.geronimo.apache.org">sim:Trade</wsdl-service-name>
+        <port-mapping>
+            <port-name>TradeWSServices</port-name>
+            <java-port-name>TradeWSServices</java-port-name>
+        </port-mapping>
+    </service-interface-mapping>
+    <service-endpoint-interface-mapping>
+        <service-endpoint-interface>org.apache.geronimo.samples.daytrader.TradeWSServices</service-endpoint-interface>
+        <wsdl-port-type xmlns:seimwpt="http://daytrader.samples.geronimo.apache.org">seimwpt:TradeWSServices</wsdl-port-type>
+        <wsdl-binding xmlns:seimwb="http://daytrader.samples.geronimo.apache.org">seimwb:TradeWSServicesSoapBinding</wsdl-binding>
+        <service-endpoint-method-mapping>
+            <java-method-name>getHoldings</java-method-name>
+            <wsdl-operation>getHoldings</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:getHoldingsRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.HoldingDataBean[]</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getHoldingsResponse</wsdl-message>
+                <wsdl-message-part-name>getHoldingsReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>updateAccountProfile</java-method-name>
+            <wsdl-operation>updateAccountProfile</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>org.apache.geronimo.samples.daytrader.AccountProfileDataBean</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:updateAccountProfileRequest</wsdl-message>
+                    <wsdl-message-part-name>profileData</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.AccountProfileDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:updateAccountProfileResponse</wsdl-message>
+                <wsdl-message-part-name>updateAccountProfileReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getMarketSummary</java-method-name>
+            <wsdl-operation>getMarketSummary</wsdl-operation>
+            <wrapped-element/>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.MarketSummaryDataBeanWS</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getMarketSummaryResponse</wsdl-message>
+                <wsdl-message-part-name>getMarketSummaryReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>updateQuotePriceVolume</java-method-name>
+            <wsdl-operation>updateQuotePriceVolume</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:updateQuotePriceVolumeRequest</wsdl-message>
+                    <wsdl-message-part-name>symbol</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>java.math.BigDecimal</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:updateQuotePriceVolumeRequest</wsdl-message>
+                    <wsdl-message-part-name>newPrice</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>2</param-position>
+                <param-type>double</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:updateQuotePriceVolumeRequest</wsdl-message>
+                    <wsdl-message-part-name>sharesTraded</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.QuoteDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:updateQuotePriceVolumeResponse</wsdl-message>
+                <wsdl-message-part-name>updateQuotePriceVolumeReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>register</java-method-name>
+            <wsdl-operation>register</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:registerRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:registerRequest</wsdl-message>
+                    <wsdl-message-part-name>password</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>2</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:registerRequest</wsdl-message>
+                    <wsdl-message-part-name>fullname</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>3</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:registerRequest</wsdl-message>
+                    <wsdl-message-part-name>address</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>4</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:registerRequest</wsdl-message>
+                    <wsdl-message-part-name>email</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>5</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:registerRequest</wsdl-message>
+                    <wsdl-message-part-name>creditcard</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>6</param-position>
+                <param-type>java.math.BigDecimal</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:registerRequest</wsdl-message>
+                    <wsdl-message-part-name>openBalance</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.AccountDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:registerResponse</wsdl-message>
+                <wsdl-message-part-name>registerReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getHolding</java-method-name>
+            <wsdl-operation>getHolding</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.Integer</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:getHoldingRequest</wsdl-message>
+                    <wsdl-message-part-name>holdingID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.HoldingDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getHoldingResponse</wsdl-message>
+                <wsdl-message-part-name>getHoldingReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getOrders</java-method-name>
+            <wsdl-operation>getOrders</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:getOrdersRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.OrderDataBean[]</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getOrdersResponse</wsdl-message>
+                <wsdl-message-part-name>getOrdersReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>queueOrder</java-method-name>
+            <wsdl-operation>queueOrder</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.Integer</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:queueOrderRequest</wsdl-message>
+                    <wsdl-message-part-name>orderID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>boolean</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:queueOrderRequest</wsdl-message>
+                    <wsdl-message-part-name>twoPhase</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>void</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:queueOrderResponse</wsdl-message>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>cancelOrder</java-method-name>
+            <wsdl-operation>cancelOrder</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.Integer</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:cancelOrderRequest</wsdl-message>
+                    <wsdl-message-part-name>orderID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>boolean</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:cancelOrderRequest</wsdl-message>
+                    <wsdl-message-part-name>twoPhase</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>void</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:cancelOrderResponse</wsdl-message>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getAccountData</java-method-name>
+            <wsdl-operation>getAccountData</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:getAccountDataRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.AccountDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getAccountDataResponse</wsdl-message>
+                <wsdl-message-part-name>getAccountDataReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>sell</java-method-name>
+            <wsdl-operation>sell</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:sellRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>java.lang.Integer</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:sellRequest</wsdl-message>
+                    <wsdl-message-part-name>holdingID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>2</param-position>
+                <param-type>int</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:sellRequest</wsdl-message>
+                    <wsdl-message-part-name>orderProcessingMode</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.OrderDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:sellResponse</wsdl-message>
+                <wsdl-message-part-name>sellReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>orderCompleted</java-method-name>
+            <wsdl-operation>orderCompleted</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:orderCompletedRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>java.lang.Integer</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:orderCompletedRequest</wsdl-message>
+                    <wsdl-message-part-name>orderID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>void</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:orderCompletedResponse</wsdl-message>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getClosedOrders</java-method-name>
+            <wsdl-operation>getClosedOrders</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:getClosedOrdersRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.OrderDataBean[]</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getClosedOrdersResponse</wsdl-message>
+                <wsdl-message-part-name>getClosedOrdersReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>logout</java-method-name>
+            <wsdl-operation>logout</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:logoutRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>void</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:logoutResponse</wsdl-message>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>resetTrade</java-method-name>
+            <wsdl-operation>resetTrade</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>boolean</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:resetTradeRequest</wsdl-message>
+                    <wsdl-message-part-name>deleteAll</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.RunStatsDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:resetTradeResponse</wsdl-message>
+                <wsdl-message-part-name>resetTradeReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>createQuote</java-method-name>
+            <wsdl-operation>createQuote</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:createQuoteRequest</wsdl-message>
+                    <wsdl-message-part-name>symbol</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:createQuoteRequest</wsdl-message>
+                    <wsdl-message-part-name>companyName</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>2</param-position>
+                <param-type>java.math.BigDecimal</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:createQuoteRequest</wsdl-message>
+                    <wsdl-message-part-name>price</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.QuoteDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:createQuoteResponse</wsdl-message>
+                <wsdl-message-part-name>createQuoteReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>buy</java-method-name>
+            <wsdl-operation>buy</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:buyRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:buyRequest</wsdl-message>
+                    <wsdl-message-part-name>symbol</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>2</param-position>
+                <param-type>double</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:buyRequest</wsdl-message>
+                    <wsdl-message-part-name>quantity</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>3</param-position>
+                <param-type>int</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:buyRequest</wsdl-message>
+                    <wsdl-message-part-name>orderProcessingMode</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.OrderDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:buyResponse</wsdl-message>
+                <wsdl-message-part-name>buyReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getAllQuotes</java-method-name>
+            <wsdl-operation>getAllQuotes</wsdl-operation>
+            <wrapped-element/>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.QuoteDataBean[]</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getAllQuotesResponse</wsdl-message>
+                <wsdl-message-part-name>getAllQuotesReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>login</java-method-name>
+            <wsdl-operation>login</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:loginRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:loginRequest</wsdl-message>
+                    <wsdl-message-part-name>password</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.AccountDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:loginResponse</wsdl-message>
+                <wsdl-message-part-name>loginReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getAccountProfileData</java-method-name>
+            <wsdl-operation>getAccountProfileData</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:getAccountProfileDataRequest</wsdl-message>
+                    <wsdl-message-part-name>userID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.AccountProfileDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getAccountProfileDataResponse</wsdl-message>
+                <wsdl-message-part-name>getAccountProfileDataReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>getQuote</java-method-name>
+            <wsdl-operation>getQuote</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.String</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:getQuoteRequest</wsdl-message>
+                    <wsdl-message-part-name>symbol</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.QuoteDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:getQuoteResponse</wsdl-message>
+                <wsdl-message-part-name>getQuoteReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+        <service-endpoint-method-mapping>
+            <java-method-name>completeOrder</java-method-name>
+            <wsdl-operation>completeOrder</wsdl-operation>
+            <wrapped-element/>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>java.lang.Integer</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:completeOrderRequest</wsdl-message>
+                    <wsdl-message-part-name>orderID</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>1</param-position>
+                <param-type>boolean</param-type>
+                <wsdl-message-mapping>
+                    <wsdl-message xmlns:mppm="http://daytrader.samples.geronimo.apache.org">mppm:completeOrderRequest</wsdl-message>
+                    <wsdl-message-part-name>twoPhase</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>org.apache.geronimo.samples.daytrader.OrderDataBean</method-return-value>
+                <wsdl-message xmlns:wrvm="http://daytrader.samples.geronimo.apache.org">wrvm:completeOrderResponse</wsdl-message>
+                <wsdl-message-part-name>completeOrderReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+    </service-endpoint-interface-mapping>
+</java-wsdl-mapping>

Propchange: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/TradeServices_mapping.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/benchmarking.html
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/benchmarking.html?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/benchmarking.html (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/benchmarking.html Sun Oct  2 09:29:58 2005
@@ -0,0 +1,54 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- Sample HTML file -->
+
+<HTML>
+<HEAD>
+<META name="GENERATOR" content="IBM WebSphere Page Designer V3.5.1 for Windows">
+<META http-equiv="Content-Style-Type" content="text/css">
+<TITLE>Benchmarking Details</TITLE>
+</HEAD>
+
+<BODY BGCOLOR="#FFFFFF">
+<HR>
+<TABLE width="100%">
+  <TBODY>
+    <TR>
+      <TD>
+      <H3><FONT face="Times New Roman">Benchmarking</FONT></H3>
+      </TD>
+      <TD align="right"><IMG src="../images/WEBSPHERE_18P_UNIX.GIF" width="113" height="18" border="0"></TD>
+    </TR>
+  </TBODY>
+</TABLE>
+<HR>
+<P>Trade  provides two servlets to create a workload for benchmarking: TradeApp servlet and TradeScenario servlet. 
+In either case, the load generation tool used to drive the Trade workload must provide cookie support to handle
+HTTP sessions.</P>
+<P><B>TradeApp servlet</B> provides the standard web interface and
+can be accessed with the <A href="/trade/welcome.jsp">Go Trade!</A> link. Driving benchmark load using this
+interface requires a sophisticated web load
+generator that is capable of filling HTML
+forms and posting dynamic data.</P>
+<P><B>TradeScenario servlet</B> emulates a population of web users by generating
+a specific Trade operation for a randomly
+chosen user on each access to the URL. Test
+this servlet by clicking <A href="/trade/scenario">Trade Scenario</A> and hit &quot;Reload&quot; on your browser to step through a Trade Scenario.
+To benchmark using this URL aim your favorite web load generator at the
+Trade Scenario URL and fire away.</P>
+<P>There is a drawback to using the Trade Scenario
+servlet to drive the workload versus using a series of more complicated
+load scripts. As previously mentioned, the scenario
+servlet is responsible for managing clients and emulating user
+operations by dispatching simple client requests to complex Trade
+actions. This causes the application server to spend a large percentage 
+of time performing work that would typically be handled by a client or 
+a more complex load driver. Consequently, performance numbers are 
+artificially deflated when using Trade Scenario servlet as compared to 
+driving the  workload directly.</P>
+
+
+<H3><FONT face="Times New Roman">Web Primitive Benchmarking</FONT></H3>
+<P>A set of automated <A href="/trade/web_prmtv.html">Web Primitives</A> is also provided. The web primitives leverage the Trade infrastructure to test specific features of the web application development environment. This provides basic worloads for servlets, JSPs, EJBs, MDBs and more. The Web Primitives are installed automatically with the Trade package. <BR>
+</P>
+<HR>
+</BODY>
+</HTML>

Propchange: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/benchmarking.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/documentation.html
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/documentation.html?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/documentation.html (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/documentation.html Sun Oct  2 09:29:58 2005
@@ -0,0 +1,52 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- Sample HTML file -->
+
+<HTML>
+<HEAD>
+
+<META name="GENERATOR" content="IBM WebSphere Page Designer V3.5.1 for Windows">
+<META http-equiv="Content-Style-Type" content="text/css"><TITLE>Technical Documentation</TITLE>
+</HEAD>
+
+<BODY BGCOLOR="#FFFFFF">
+<HR>
+<TABLE width="100%">
+  <TBODY>
+    <TR>
+      <TD>
+      <H3><FONT face="Times New Roman">Technical Documentation</FONT></H3>
+      </TD>
+      <TD align="right"><IMG border="0" src="../images/WEBSPHERE_18P_UNIX.GIF"></TD>
+    </TR>
+  </TBODY>
+</TABLE>
+<HR>
+<HR>
+<P>Documents below provide documentation on Trade application design, runtime
+characteristics and FAQs.</P>
+<BLOCKQUOTE>
+<TABLE border="1" cellpadding="10" cellspacing="5">
+  <TBODY>
+    <TR>
+      <TD align="center"><A href="tradeTech.pdf">Trade Technical Overview</A></TD>
+      <TD><FONT face="Times New Roman">Provides an overview of the Trade application design, configuration, and usage</FONT></TD>
+    </TR>
+    <TR>
+      <TD align="center"><A href="tradeUML.pdf">Trade UML Diagrams</A></TD>
+      <TD><FONT face="Times New Roman">UML diagrams showing application architecture</FONT></TD>
+    </TR>
+    <TR>
+      <TD align="center"><A href="tradeFAQ.html">FAQ</A></TD>
+      <TD>Frequently Asked Questions</TD>
+    </TR>
+    <TR>
+      <TD align="center"><A href="rtCharacterisitics.html">Runtime and Database <BR>
+      Usage Characteristics</A></TD>
+      <TD>Details runtime characteristics and database operations</TD>
+    </TR>
+    
+  </TBODY>
+</TABLE>
+</BLOCKQUOTE>
+<HR>
+</BODY>
+</HTML>

Propchange: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/documentation.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/glossary.html
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/glossary.html?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/glossary.html (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/glossary.html Sun Oct  2 09:29:58 2005
@@ -0,0 +1,83 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- Sample HTML file -->
+
+<HTML>
+<HEAD>
+
+<META name="GENERATOR" content="IBM WebSphere Page Designer V3.5.1 for Windows">
+<META http-equiv="Content-Style-Type" content="text/css"><TITLE>Technical Documentation</TITLE>
+</HEAD>
+
+<BODY BGCOLOR="#FFFFFF">
+<HR>
+<TABLE width="100%">
+  <TBODY>
+    <TR>
+      <TD>
+      <H3><FONT face="Times New Roman">Trade Glossary and Terms</FONT></H3>
+      </TD>
+      <TD align="right"></TD>
+    </TR>
+  </TBODY>
+</TABLE>
+<HR>
+<HR>
+<UL>
+	<LI><B><FONT color="#0000a0">account ID</FONT></B> - A unique Integer based key. Each user is assigned an account ID at account creation time.<BR></LI>
+	<LI><B><FONT color="#0000a0">account Created</FONT></B> - The time and date the users account was first created.<BR></LI>
+	<LI><B><FONT color="#0000a0">cash balance</FONT></B> - The current cash balance in the users account. This does not include current stock holdings.<BR></LI>
+	<LI><B><FONT color="#0000a0">company</FONT></B> - The full company name for an individual stock.<BR>
+	</LI>
+	<LI><B><FONT color="#0000a0">current gain/loss</FONT></B> - The total gain or loss of this account, computed by substracting the current sum of cash/holdings minus the opening account balance.<BR></LI>
+	<LI><B><FONT color="#0000a0">current price</FONT></B> - The current trading price for a given stock symbol.<BR>
+	</LI>
+	
+	<LI><B><FONT color="#0000a0">gain/loss</FONT></B> - The current gain or loss of an individual stock holding, computed as (current market value - holding basis).<BR>
+	</LI>
+	<LI><B><FONT color="#0000a0">last login</FONT></B> - The date and time this user last logged in to Trade.<BR></LI>
+	<LI><B><FONT color="#0000a0">market value</FONT></B> - The current total value of a stock holding, computed as (quantity * current price).<BR>
+	</LI>
+	
+	
+	<LI><B><FONT color="#0000a0">number of holdings</FONT></B> - The total number of stocks currently owned by this account.<BR></LI>
+	<LI><B><FONT color="#0000a0">open price</FONT></B> - The price of a given stock at the open of the trading session.<BR>
+	</LI>
+	<LI><B><FONT color="#0000a0">opening balance</FONT></B> - The initial cash balance in this account when it was opened.<BR></LI>
+	<LI><B><FONT color="#0000a0">order id</FONT></B> - A unique Integer based key. Each order is assigned an order ID at order creation time.<BR></LI>
+	<LI><B><FONT color="#0000a0">order status</FONT></B> - orders are opened, processed, closed and completed. Order status shows the current stat for this order.<BR></LI>
+	<LI><B><FONT color="#0000a0">price range</FONT></B> - The low and high prices for this stock during the current trading session<BR>
+	</LI>
+	<LI><B><FONT color="#0000a0">purchase date</FONT></B> - The date and time the a stock was purchased.<BR></LI>
+	<LI><B><FONT color="#0000a0">purchase price</FONT></B> - The price used when purchasing the stock.<BR></LI>
+	<LI><B><FONT color="#0000a0">purchase basis</FONT></B> - The total cost to purchase this holding. This is computed as (quantity * purchase price).<BR>
+	</LI>
+	
+	<LI><B><FONT color="#0000a0">quantity</FONT></B> - The number of stock shares in the order or user holding.<BR>
+	</LI>
+	
+	<LI><B><FONT color="#0000a0">session created</FONT></B> - An HTTP session is created for each user at during login. Session created shows the time and day when the session was created.<BR></LI>
+	<LI><B><FONT color="#0000a0">sum of cash/holdings</FONT></B> - The total current value of this account. This is the sum of the cash balance along with the value of current stock holdings.<BR></LI>
+	<LI><B><FONT color="#0000a0">symbol</FONT></B> - The symbol for a Trade stock.<BR>
+	</LI>
+	<LI><B><FONT color="#0000a0">total logins</FONT></B> - The total number of logins performed by this user since the last Trade Reset.<BR></LI>
+	<LI><B><FONT color="#0000a0">total logouts</FONT></B> - The total number of logouts performed by this user since the last Trade Reset.<BR>
+	</LI>
+	
+	<LI><B><FONT color="#0000a0">total of holdings</FONT></B> - The current total value of all stock holdings in this account given the current valuation of each stock held.<BR></LI>
+	<LI><B><FONT color="#0000a0">Top gainers</FONT></B> - The list of stock gaining the most in price during the current trading session.<BR></LI>
+	<LI><B><FONT color="#0000a0">Top losers</FONT></B> - The list of stock falling the most in price during the current trading session.<BR>
+	</LI>
+	<LI><B><FONT color="#0000a0">Trade Stock Index (TSIA)</FONT></B> - A computed index of the top 20 stocks in Trade. <BR></LI>
+	<LI><B><FONT color="#0000a0">Trading Volume</FONT></B> - The total number of shares traded for all stocks during this trading session.<BR>
+	</LI>
+	<LI><B><FONT color="#0000a0">txn fee</FONT></B> - The fee charged by the brokerage to process this order.<BR></LI>
+	<LI><B><FONT color="#0000a0">type</FONT></B> - The order type (buy or sell).<BR>
+	</LI>
+	
+	<LI><B><FONT color="#0000a0">user ID</FONT></B> - The unique user ID for the account chosen by the user at account registration.<BR></LI>
+	<LI><B><FONT color="#0000a0">volume</FONT></B> - The total number of shares traded for this stock.</LI>
+	
+</UL>
+
+<HR>
+</BODY>
+</HTML>

Propchange: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/glossary.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/OrdersAlertFilter.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/OrdersAlertFilter.java?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/OrdersAlertFilter.java (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/OrdersAlertFilter.java Sun Oct  2 09:29:58 2005
@@ -0,0 +1,104 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable 
+ *
+ *  Licensed 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.
+ */
+
+package org.apache.geronimo.samples.daytrader.web;
+
+import java.io.IOException;
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import org.apache.geronimo.samples.daytrader.soap.*;
+import org.apache.geronimo.samples.daytrader.util.*;
+
+import org.apache.geronimo.samples.daytrader.*;
+
+public class OrdersAlertFilter implements Filter {
+
+	/**
+	 * Constructor for CompletedOrdersAlertFilter
+	 */
+	public OrdersAlertFilter() {
+		super();
+	}
+
+	/**
+	 * @see Filter#init(FilterConfig)
+	 */
+	private FilterConfig filterConfig = null;
+	public void init(FilterConfig filterConfig) throws ServletException {
+	      this.filterConfig = filterConfig;
+	}
+
+	/**
+	 * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)
+	 */
+	public void doFilter(
+		ServletRequest req,
+		ServletResponse resp,
+		FilterChain chain)
+		throws IOException, ServletException {
+		if (filterConfig == null)
+			return;
+		
+		try
+		{
+			String action = req.getParameter("action");
+			if ( action != null ) 
+			{
+				action = action.trim();
+				if ( (action.length() > 0) && (!action.equals("logout")) )
+				{
+					String userID;
+					if ( action.equals("login") )
+						userID = req.getParameter("uid");
+					else
+						userID = (String) ((HttpServletRequest) req).getSession().getAttribute("uidBean");
+					if ( (userID != null) && (userID.trim().length()>0) )
+					{	
+						TradeServices tAction=null;
+						if(TradeConfig.getAccessMode() == TradeConfig.STANDARD)
+							tAction = new TradeAction();
+						else if(TradeConfig.getAccessMode() == TradeConfig.WEBSERVICES)
+							tAction = new TradeWebSoapProxy();										
+						java.util.Collection closedOrders = tAction.getClosedOrders(userID);
+						if ( (closedOrders!=null) && (closedOrders.size() > 0) )
+							req.setAttribute("closedOrders", closedOrders);
+						if (Log.doTrace()) Log.printCollection("OrderAlertFilter: userID="+userID+" closedOrders=", closedOrders);
+					}
+				}	
+			}
+		}
+		catch (Exception e)
+		{
+			Log.error(e, "OrdersAlertFilter - Error checking for closedOrders");
+		}
+
+        ServletContext sc = filterConfig.getServletContext();
+        //String xyz = (String) sc.getAttribute("hitCounter");
+		chain.doFilter(req, resp/*wrapper*/);        
+
+	}
+
+	/**
+	 * @see Filter#destroy()
+	 */
+	public void destroy() {
+		this.filterConfig = null;	
+	}
+
+}
+

Propchange: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/OrdersAlertFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TestServlet.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TestServlet.java?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TestServlet.java (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TestServlet.java Sun Oct  2 09:29:58 2005
@@ -0,0 +1,107 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable 
+ *
+ *  Licensed 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.
+ */
+
+package org.apache.geronimo.samples.daytrader.web;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import org.apache.geronimo.samples.daytrader.util.*;
+
+import java.io.IOException;
+import java.math.BigDecimal;
+import org.apache.geronimo.samples.daytrader.*;
+
+public class TestServlet extends HttpServlet {
+
+
+	public void init(ServletConfig config) throws ServletException
+	{
+		super.init(config);
+	}
+	
+	
+   /**
+	* Process incoming HTTP GET requests
+	*
+	* @param request Object that encapsulates the request to the servlet
+	* @param response Object that encapsulates the response from the servlet
+	*/
+	public void doGet(HttpServletRequest request, HttpServletResponse response)
+		throws ServletException, IOException
+	{
+		performTask(request,response);
+	}
+
+   /**
+	* Process incoming HTTP POST requests
+	*
+	* @param request Object that encapsulates the request to the servlet
+	* @param response Object that encapsulates the response from the servlet
+	*/
+	public void doPost(HttpServletRequest request, HttpServletResponse response)
+		throws ServletException, IOException
+	{
+		performTask(request,response);
+	}	
+
+   /**
+	* Main service method for TradeAppServlet
+	*
+	* @param request Object that encapsulates the request to the servlet
+	* @param response Object that encapsulates the response from the servlet
+	*/    	
+	public void performTask(HttpServletRequest req, HttpServletResponse resp)
+		throws ServletException, IOException 
+	{
+		try {
+			Log.debug("Enter TestServlet doGet");
+			TradeConfig.runTimeMode = TradeConfig.DIRECT;
+			for (int i=0; i<10; i++) 
+			{
+				new TradeAction().createQuote("s:"+i, "Company " + i, new BigDecimal(i*1.1));
+			}
+			/*
+			
+			AccountDataBean accountData = new TradeAction().register("user1", "password", "fullname", "address", 
+											"email", "creditCard", new BigDecimal(123.45), false);
+
+			OrderDataBean orderData = new TradeAction().buy("user1", "s:1", 100.0);
+			orderData = new TradeAction().buy("user1", "s:2", 200.0);
+			Thread.sleep(5000);
+			accountData = new TradeAction().getAccountData("user1");
+			Collection holdingDataBeans = new TradeAction().getHoldings("user1");
+			PrintWriter out = resp.getWriter();
+			resp.setContentType("text/html");
+			out.write("<HEAD></HEAD><BODY><BR><BR>");
+			out.write(accountData.toString());
+			Log.printCollection("user1 Holdings", holdingDataBeans);
+			ServletContext sc  = getServletContext();
+			req.setAttribute("results", "Success");
+			req.setAttribute("accountData", accountData);
+			req.setAttribute("holdingDataBeans", holdingDataBeans);
+			getServletContext().getRequestDispatcher("/tradehome.jsp").include(req, resp);
+			out.write("<BR><BR>done.</BODY>");
+			*/
+		}
+		catch (Exception e)
+		{
+			Log.error("TestServletException", e);
+		}
+	}
+}
+

Propchange: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TestServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java Sun Oct  2 09:29:58 2005
@@ -0,0 +1,239 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable 
+ *
+ *  Licensed 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.
+ */
+
+package org.apache.geronimo.samples.daytrader.web;
+
+import javax.servlet.*;
+import javax.servlet.http.*;
+
+import org.apache.geronimo.samples.daytrader.direct.*;
+import org.apache.geronimo.samples.daytrader.util.*;
+
+import java.io.IOException;
+import org.apache.geronimo.samples.daytrader.*;
+
+/**
+ *
+ * TradeAppServlet provides the standard web interface to Trade and can be accessed with the Go Trade! link. 
+ * Driving benchmark load using this interface requires a sophisticated web load generator that is capable of 
+ * filling HTML forms and posting dynamic data.
+ */
+
+public class TradeAppServlet extends HttpServlet {
+
+   /**
+	* Servlet initialization method.
+	*/	
+	public void init(ServletConfig config) throws ServletException
+	{
+		super.init(config);
+		java.util.Enumeration en = config.getInitParameterNames();
+		while ( en.hasMoreElements() )
+		{
+			String parm = (String) en.nextElement();
+			String value = config.getInitParameter(parm);
+			TradeConfig.setConfigParam(parm, value);
+		}
+		try
+		{
+			TradeDirect.init();		
+		}
+		catch (Exception e)
+		{
+			Log.error(e, "TradeAppServlet:init -- Error initializing TradeDirect");
+		}
+	}
+	
+	
+   /**
+	* Returns a string that contains information about TradeScenarioServlet
+	*
+	* @return The servlet information
+	*/
+	public java.lang.String getServletInfo()
+	{
+		return "TradeAppServlet provides the standard web interface to Trade";
+	}	
+
+
+   /**
+	* Process incoming HTTP GET requests
+	*
+	* @param request Object that encapsulates the request to the servlet
+	* @param response Object that encapsulates the response from the servlet
+	*/
+	public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
+		throws ServletException, IOException
+	{
+		performTask(request,response);
+	}
+
+   /**
+	* Process incoming HTTP POST requests
+	*
+	* @param request Object that encapsulates the request to the servlet
+	* @param response Object that encapsulates the response from the servlet
+	*/
+	public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
+		throws ServletException, IOException
+	{
+		performTask(request,response);
+	}	
+
+   /**
+	* Main service method for TradeAppServlet
+	*
+	* @param request Object that encapsulates the request to the servlet
+	* @param response Object that encapsulates the response from the servlet
+	*/    	
+	public void performTask(HttpServletRequest req, HttpServletResponse resp)
+		throws ServletException, IOException {
+
+		String action = null;
+		String userID = null;
+		// String to create full dispatch path to TradeAppServlet w/ request Parameters
+		String dispPath = null; // Dispatch Path to TradeAppServlet
+
+
+		resp.setContentType("text/html");
+		TradeServletAction tsAction = new TradeServletAction();
+
+
+		//Dyna - need status string - prepended to output
+			action = req.getParameter("action");
+
+
+			ServletContext ctx = getServletConfig().getServletContext();
+
+			if (action == null)
+			{
+				tsAction.doWelcome(ctx, req, resp, "");
+				return;
+			}
+			else if (action.equals("login"))
+			{
+				userID = req.getParameter("uid");
+				String passwd = req.getParameter("passwd");
+				String inScenario = req.getParameter("inScenario");
+				tsAction.doLogin(ctx, req, resp, userID, passwd);
+				return;
+			}
+			else if (action.equals("register"))
+			{
+				userID = req.getParameter("user id");
+				String passwd = req.getParameter("passwd");
+				String cpasswd = req.getParameter("confirm passwd");
+				String fullname = req.getParameter("Full Name");
+				String ccn = req.getParameter("Credit Card Number");
+				String money = req.getParameter("money");
+				String email = req.getParameter("email");
+				String smail = req.getParameter("snail mail");
+				tsAction.doRegister(
+					ctx, 
+					req, 
+					resp, 
+					userID, 
+					passwd, 
+					cpasswd, 
+					fullname, 
+					ccn, 
+					money, 
+					email, 
+					smail); 
+				return;
+			}
+
+			// The rest of the operations require the user to be logged in -
+			//Get the Session and validate the user.
+			HttpSession session = req.getSession();
+			userID = (String) session.getAttribute("uidBean");
+
+			if (userID == null)
+			{
+				System.out.println("TradeAppServlet service error: User Not Logged in");
+				tsAction.doWelcome(ctx, req, resp, "User Not Logged in");
+				return;
+			}
+			if ( action.equals("quotes"))
+			{
+				String symbols = req.getParameter("symbols");
+				tsAction.doQuotes(ctx, req, resp, userID, symbols);
+			}
+			else if (action.equals("buy"))
+			{
+				String symbol = req.getParameter("symbol");
+				String quantity = req.getParameter("quantity");
+				tsAction.doBuy(ctx, req, resp, userID, symbol, quantity);
+			}
+			else if (action.equals("sell"))
+			{
+				int holdingID = Integer.parseInt(req.getParameter("holdingID"));
+				tsAction.doSell(ctx, req, resp, userID, new Integer(holdingID));
+			}
+			else if (action.equals("portfolio") || action.equals("portfolioNoEdge"))
+			{
+				tsAction.doPortfolio(ctx, req, resp, userID, "Portfolio as of " + new java.util.Date());
+			}
+			else if (action.equals("logout"))
+			{
+				tsAction.doLogout(ctx, req, resp, userID);
+			}
+			else if (action.equals("home"))
+			{
+				tsAction.doHome(ctx, req, resp, userID, "Ready to Trade");
+			}
+			else if (action.equals("account"))
+			{
+				tsAction.doAccount(ctx, req, resp, userID, "");
+			}
+			else if (action.equals("update_profile"))
+			{
+				String   password = req.getParameter("password");				
+				String  cpassword = req.getParameter("cpassword");								
+				String   fullName = req.getParameter("fullname");
+				String    address = req.getParameter("address");
+				String creditcard = req.getParameter("creditcard");
+				String      email = req.getParameter("email");
+				tsAction.doAccountUpdate(
+					ctx, 
+					req, 
+					resp, 
+					userID, 
+					password   == null? "":password.trim(),
+					cpassword  == null? "":cpassword.trim(),
+					fullName   == null? "":fullName.trim(), 
+					address    == null? "":address.trim(), 
+					creditcard == null? "":creditcard.trim(), 
+					email      == null? "":email.trim()); 
+			}
+			else
+			{
+				System.out.println("TradeAppServlet: Invalid Action=" + action);
+				tsAction.doWelcome(ctx, req, resp, "TradeAppServlet: Invalid Action" + action);
+			}
+	}
+
+		
+	private void sendRedirect(HttpServletResponse resp, String page)
+		throws ServletException, IOException {
+		resp.sendRedirect(resp.encodeRedirectURL(page));
+	}
+
+	// URL Path Prefix for dispatching to TradeAppServlet
+	private final static String tasPathPrefix = "/app?action=";
+			
+}
\ No newline at end of file

Propchange: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeAppServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java?rev=293134&view=auto
==============================================================================
--- geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java (added)
+++ geronimo/trunk/sandbox/daytrader/modules/web/src/webapp/WEB-INF/docs/org/apache/geronimo/samples/daytrader/web/TradeBuildDB.java Sun Oct  2 09:29:58 2005
@@ -0,0 +1,156 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable 
+ *
+ *  Licensed 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.
+ */
+
+package org.apache.geronimo.samples.daytrader.web;
+
+import java.math.BigDecimal;
+
+import org.apache.geronimo.samples.daytrader.util.*;
+
+import org.apache.geronimo.samples.daytrader.*;
+
+/**
+ * TradeBuildDB uses operations provided by the TradeApplication to initially populate a Trade
+ * database. Specifically, a new Trade User population is created using UserIDs of the form "uid:xxx" 
+ * where xxx is a sequential number (e.g. uid:0, uid:1, etc.). New stocks are also created of the 
+ * form "s:xxx", again where xxx represents sequential numbers (e.g. s:1, s:2, etc.)
+ */
+public class TradeBuildDB {
+
+	private boolean verbose = true;
+	private TradeConfig t = new TradeConfig();
+
+	/**
+	  * Populate a Trade DB using standard out as a log
+	  */
+	public TradeBuildDB() throws Exception {
+		this(new java.io.PrintWriter(System.out));
+	}
+
+	/**
+		* Populate a Trade DB, logging to the provided output stream
+		*/
+	public TradeBuildDB(java.io.PrintWriter out) throws Exception {
+		String symbol, companyName;
+		int errorCount = 0; // Give up gracefully after 10 errors
+		TradeAction tradeAction = new TradeAction();
+
+		//  TradeStatistics.statisticsEnabled=false;  // disable statistics
+		out.println(
+			"<HEAD><BR><EM> TradeBuildDB: Building Trade Database...</EM><BR> This operation will take several minutes. Please wait...</HEAD>");
+
+		out.println("<BODY>");
+		out.println(
+			"<BR>TradeBuildDB: **** Creating " + TradeConfig.getMAX_QUOTES() + " Quotes ****</BR>");
+		//Attempt to delete all of the Trade users and Trade Quotes first
+		try
+		{
+			tradeAction.resetTrade(true);
+		}
+		catch (Exception e)
+		{
+			Log.error(e, "TradeBuildDB: Unable to delete Trade users (uid:0, uid:1, ...) and Trade Quotes (s:0, s:1, ...)");
+		}
+		for (int i = 0; i < TradeConfig.getMAX_QUOTES(); i++) {
+			symbol = "s:" + i;
+			companyName = "S" + i + " Incorporated";
+			try {
+				QuoteDataBean quoteData =
+					tradeAction.createQuote(
+						symbol,
+						companyName,
+						new java.math.BigDecimal(TradeConfig.rndPrice()));
+				if (i % 10 == 0) {
+					out.print("....." + symbol);
+					if (i % 100 == 0) {
+						out.println(" -<BR>");
+						out.flush();
+					}
+				}
+			} catch (Exception e) {
+				if (errorCount++ >= 10) {
+					String error = "Populate Trade DB aborting after 10 create quote errors. Check the EJB datasource configuration. Check the log for details <BR><BR> Exception is: <BR> " + e.toString();						
+					Log.error(e, error);
+					throw e;
+				}	
+			}
+		}
+		out.println("<BR>");
+		out.println("<BR>**** Registering " + TradeConfig.getMAX_USERS() + " Users **** ");
+		errorCount = 0; //reset for user registrations
+
+		// Registration is a formal operation in Trade 2. 
+		for (int i = 0; i < TradeConfig.getMAX_USERS(); i++) {
+			String userID = "uid:" + i;
+			String fullname = TradeConfig.rndFullName();
+			String email = TradeConfig.rndEmail(userID);
+			String address = TradeConfig.rndAddress();
+			String creditcard = TradeConfig.rndCreditCard();
+			double initialBalance = (double) (TradeConfig.rndInt(100000)) + 200000;
+			if (i == 0) {
+				initialBalance = 1000000; // uid:0 starts with a cool million.
+			}
+			try {
+				AccountDataBean accountData =
+					tradeAction.register(
+						userID,
+						"xxx",
+						fullname,
+						address,
+						email,
+						creditcard,
+						new BigDecimal(initialBalance));
+				String results;
+				if (accountData != null) {
+					if (i % 50 == 0) {
+						out.print("<BR>Account# " +accountData.getAccountID() + " userID=" + userID);
+					} // end-if
+
+					int holdings = TradeConfig.rndInt(TradeConfig.getMAX_HOLDINGS()+1); // 0-MAX_HOLDING (inclusive), avg holdings per user = (MAX-0)/2
+					double quantity = 0;
+					OrderDataBean orderData;
+					for (int j = 0; j < holdings; j++) {
+						symbol = TradeConfig.rndSymbol();
+						quantity = TradeConfig.rndQuantity();
+						orderData = tradeAction.buy(userID, symbol, quantity, TradeConfig.orderProcessingMode);
+					} // end-for
+					if (i % 50 == 0) {
+						out.println(" has " + holdings + " holdings.");
+						out.flush();
+					} // end-if
+				} else {
+					out.println("<BR>UID " + userID + " already registered.</BR>");
+					out.flush();
+				} // end-if
+
+			} catch (Exception e) {
+				if (errorCount++ >= 10) {
+					AccountProfileDataBean accountProfileData = null;
+
+					String error = "Populate Trade DB aborting after 10 user registration errors. Check the log for details. <BR><BR> Exception is: <BR>"	+ e.toString();
+					Log.error(e, error);
+					throw e;					
+				}
+			}
+		} // end-for
+		out.println("</BODY>");
+	}
+	public static void main(String args[]) throws Exception {
+		new TradeBuildDB();
+
+	}
+}
\ No newline at end of file



Mime
View raw message