incubator-stonehenge-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drew...@apache.org
Subject svn commit: r781666 [4/6] - in /incubator/stonehenge/contrib/stocktrader/metro: ./ business_service/ business_service/config/ business_service/etc/ business_service/etc/order_processor/ business_service/lib/ business_service/lib/commons/ business_servi...
Date Thu, 04 Jun 2009 07:04:27 GMT
Added: incubator/stonehenge/contrib/stocktrader/metro/business_service/src/org/wso2/stocktrader/util/StockTraderUtility.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/business_service/src/org/wso2/stocktrader/util/StockTraderUtility.java?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/business_service/src/org/wso2/stocktrader/util/StockTraderUtility.java (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/business_service/src/org/wso2/stocktrader/util/StockTraderUtility.java Thu Jun  4 07:04:21 2009
@@ -0,0 +1,100 @@
+/*
+ * 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.
+ */
+
+package org.wso2.stocktrader.util;
+
+import java.math.BigDecimal;
+import java.sql.Date;
+import java.util.Calendar;
+import java.util.Random;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+public class StockTraderUtility {
+	
+	public static final String TRADE_ORDER_SERVICE_PROPERTY_FILE = "TradeServiceConfig.properties";
+	public static final String TRADE_ORDER_SERVICE_SECURITY_FILE = "security-policy.xml";
+	public static final String MSSQL_DB_PROPERRTIES_FILE = "mssql-db.properties";
+	public static final String ORDER_TYPE_BUY = "buy";
+	public static final String ORDER_TYPE_SELL = "sell";
+	public static final String ORDER_TYPE_SELL_ENHANCED = "sellEnhanced";
+	public static final String ORDER_STATUS_CLOSED = "closed";
+	public static final String ORDER_STATUS_OPEN = "open";
+
+	public static final int MAX_QUERY_TOP_ORDERS = 5;
+	public static final int MAX_QUERY_ORDERS = 5;
+
+	public static final BigDecimal PENNY_STOCK_P = BigDecimal.valueOf(0.1);
+	public static final BigDecimal JUNK_STOCK_MIRACLE_MULTIPLIER = BigDecimal
+			.valueOf(500);
+	public static final BigDecimal STOCK_P_HIGH_BAR = BigDecimal.valueOf(1000);
+	public static final BigDecimal STOCK_P_HIGH_BAR_CRASH = BigDecimal
+			.valueOf(0.05);
+	public static final BigDecimal STOCK_CHANGE_MAX_PERCENT = BigDecimal
+			.valueOf(5);
+	public static final BigDecimal BUY_FEE = BigDecimal.valueOf(15.95);
+	public static final BigDecimal SELL_FEE = BigDecimal.valueOf(25.95);
+
+	private static final Log logger = LogFactory
+			.getLog(StockTraderUtility.class);
+
+	public static BigDecimal getRandomPriceChangeFactor(BigDecimal currentPrice) {
+		if (currentPrice.compareTo(PENNY_STOCK_P) == -1
+				|| currentPrice.compareTo(PENNY_STOCK_P) == 0) {
+			return JUNK_STOCK_MIRACLE_MULTIPLIER;
+		} else if (currentPrice.compareTo(STOCK_P_HIGH_BAR) == 1
+				|| currentPrice.compareTo(STOCK_P_HIGH_BAR) == 0) {
+			return STOCK_P_HIGH_BAR_CRASH;
+		}
+
+		BigDecimal factor = BigDecimal.valueOf(0);
+		Random rand = new Random();
+		int y = rand.nextInt(STOCK_CHANGE_MAX_PERCENT.subtract(BigDecimal.ONE)
+				.intValue());
+		y = y + 1;
+		int x = rand.nextInt();
+
+		if (x % 2 == 0) {
+			factor = BigDecimal.ONE.subtract((BigDecimal.valueOf(y))
+					.divide(BigDecimal.valueOf(100)));// / 100m;
+		} else
+			factor = BigDecimal.ONE.add(BigDecimal.ONE.add(BigDecimal
+					.valueOf(y).divide(BigDecimal.valueOf(100))));
+		return factor;
+	}
+
+	public static Date convertToSqlDate(Calendar calendar) {
+		return new Date(calendar.getTimeInMillis());
+	}
+
+	public static Calendar convertToCalendar(Date date) {
+		Calendar calendar = Calendar.getInstance();
+		calendar.setTimeInMillis(date.getTime());
+		return calendar;
+	}
+
+	public static BigDecimal getOrderFee(String orderType) {
+		if (StockTraderUtility.ORDER_TYPE_BUY.equals(orderType)
+				|| StockTraderUtility.ORDER_TYPE_SELL.equals(orderType)) {
+			return BUY_FEE;
+		} else {
+			return SELL_FEE;
+		}
+	}
+
+}

Added: incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsdl0.wsdl
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsdl0.wsdl?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsdl0.wsdl (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsdl0.wsdl Thu Jun  4 07:04:21 2009
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions targetNamespace="http://Trade.TraderOrderHost" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+                  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+                  xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://Trade.TraderOrderHost"
+                  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
+                  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+                  xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
+                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                  xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
+                  xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+                  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+                  xmlns:wsa10="http://www.w3.org/2005/08/addressing"
+                  xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
+    <wsdl:types>
+        <xsd:schema targetNamespace="http://Trade.TraderOrderHost/Imports">
+            <xsd:import schemaLocation="xsd0.xsd"
+                        namespace="http://Trade.TraderOrderHost"/>
+            <xsd:import schemaLocation="xsd1.xsd"
+                        namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
+            <xsd:import schemaLocation="xsd2.xsd"
+                        namespace="http://trade.samples.websphere.ibm.com"/>
+        </xsd:schema>
+    </wsdl:types>
+    <wsdl:message name="OrderProcessorService_SubmitOrder_InputMessage">
+        <wsdl:part name="parameters" element="tns:SubmitOrder"/>
+    </wsdl:message>
+    <wsdl:message name="OrderProcessorService_isOnline_InputMessage">
+        <wsdl:part name="parameters" element="tns:isOnline"/>
+    </wsdl:message>
+    <wsdl:portType name="OrderProcessorService">
+        <wsdl:operation name="SubmitOrder">
+            <wsdl:input wsaw:Action="SubmitOrder" message="tns:OrderProcessorService_SubmitOrder_InputMessage"/>
+        </wsdl:operation>
+        <wsdl:operation name="isOnline">
+            <wsdl:input wsaw:Action="isOnline" message="tns:OrderProcessorService_isOnline_InputMessage"/>
+        </wsdl:operation>
+    </wsdl:portType>
+</wsdl:definitions>
\ No newline at end of file

Added: incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsit-client.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsit-client.xml?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsit-client.xml (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/business_service/src/wsit-client.xml Thu Jun  4 07:04:21 2009
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions name="OrderProcessor" targetNamespace="http://tempuri.org/"
+                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/"
+                  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+                  xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/"
+                  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
+                  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:i0="http://Trade.TraderOrderHost"
+                  xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
+                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                  xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
+                  xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+                  xmlns:wsa10="http://www.w3.org/2005/08/addressing"
+                  xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
+
+    <wsp:Policy wsu:Id="ClientKeystorePolicy"
+                xmlns:sc="http://schemas.sun.com/2006/03/wss/client"
+                xmlns:wspp="http://java.sun.com/xml/ns/wsit/policy"
+                xmlns:scc="http://schemas.sun.com/ws/2006/05/sc/client">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <!--sunsp:DisableStreamingSecurity xmlns:sunsp="http://schemas.sun.com/2006/03/wss/client"></sunsp:DisableStreamingSecurity-->
+                <sc:KeyStore wspp:visibility="private" location="client-keystore.jks"
+                             type="JKS" alias="mykey" storepass="changeit"></sc:KeyStore>
+                <sc:TrustStore wspp:visibility="private" location="client-truststore.jks"
+                               type="JKS" storepass="changeit" peeralias="mykey"></sc:TrustStore>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+
+    <wsdl:import namespace="http://Trade.TraderOrderHost" location="wsdl0.wsdl"/>
+
+    <wsdl:binding name="CustomBinding_OrderProcessorService" type="i0:OrderProcessorService">
+        <wsp:PolicyReference URI="#ClientKeystorePolicy"/>
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="SubmitOrder">
+            <soap:operation soapAction="SubmitOrder" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="OrderProcessor">
+        <wsdl:port name="CustomBinding_OrderProcessorService" binding="tns:CustomBinding_OrderProcessorService">
+            <soap:address location="http://stocktrader:8000/tradeorderprocessor/sec"/>
+            <wsa10:EndpointReference>
+                <wsa10:Address>http://stocktrader:8000/tradeorderprocessor/sec</wsa10:Address>
+                <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
+                    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
+                        <X509Data>
+                            <X509Certificate>
+                                MIIB8DCCAVmgAwIBAgIQ1ELWkagtIaZA+rGlQ0DB/DANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQDEwdPUFMuQ29tMB4XDTA4MDUyMTA0NDUwMVoXDTM5MTIzMTIzNTk1OVowEjEQMA4GA1UEAxMHT1BTLkNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxwk9moHNb3pwAFdolsVrNRCypa9MAH9NOblGJRW6av93sC5oubfjbzfIgURycVgOYoI/6G3AZijENC//tR8CiNuwfc338j4gGJCYQMKF80f0v+wsOChbWA/jSMmW0XeZ2mtn28kUzZwBN+auK+iUurYmUfZlNCIzLrM49KKqLRMCAwEAAaNHMEUwQwYDVR0BBDwwOoAQGGhusN6c4j/7WSnvieRMbKEUMBIxEDAOBgNVBAMTB09QUy5Db22CENRC1pGoLSGmQPqxpUNAwfwwDQYJKoZIhvcNAQEEBQADgYEAZ8xVxioCvG8t8iCx5Xy7JgUyGVnTgxVhP3+uMGSca0u1wqnfoPethXkykPkCP5ZEYSS5SoBLdCKhn1HqICdTBkR2m0ebo50CoXT1lAy+5MELdzlR8SH9KV6nokwCPAW3RURk1huaDi3FO1oFDVm6146rAByZrG/PjDe3w+MUaHg=
+                            </X509Certificate>
+                        </X509Data>
+                    </KeyInfo>
+                </Identity>
+            </wsa10:EndpointReference>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Added: incubator/stonehenge/contrib/stocktrader/metro/documents/manual.doc
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/documents/manual.doc?rev=781666&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/stonehenge/contrib/stocktrader/metro/documents/manual.doc
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/stonehenge/contrib/stocktrader/metro/etc/App.config
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/etc/App.config?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/etc/App.config (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/etc/App.config Thu Jun  4 07:04:21 2009
@@ -0,0 +1,375 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+ -->
+
+<!-- You can change these settings (app.config) before compiling the application, or change
+     these settings in Trade.BusinessServiceHost.Exe.Config before running the application. 
+     Changing Trade.BusinessServiceHost.Exe.Config directly requires no re-compilation of the application, as
+     they are picked up when the application is launched. 
+     
+     Note: As an alternative to hand editing this file you can use the 
+     Visual Studio XML editor admin tool to configure this file for your application. 
+-->
+<configuration>
+	<!---THIS IS A CONFIG SERVICE CUSTOM CONFIG SECTION USED TO SPECIFIY individual ServiceEndpoint Identities, when desired-->
+	<appSettings>
+		<add key="EVENT_LOG" value="Trade Business Services" />
+		<add key="ORDER_PROCESSING_MODE" value="ASync_WSAS_WsHttp_MSecurity" />
+		<!--
+       //Valid Config Values for user-set "OrderMode" config setting.
+        public const string ORDER_STRING_Sync = "Sync_InProcess";
+        public const string ORDER_STRING_ASync_DotNet_Http = "ASync_DotNet_Http";
+        public const string ORDER_STRING_ASync_DotNet_WsHttp_MSec = "ASync_DotNet_WsHttp_MSecurity";
+        public const string ORDER_STRING_ASync_PHP_Http = "ASync_PHP_Http";
+        public const string ORDER_STRING_ASync_PHP_WsHttp_MSec = "ASync_PHP_WsHttp_MSecurity";
+        public const string ORDER_STRING_ASync_WSAS_Http = "ASync_WSAS_Http";
+        public const string ORDER_STRING_ASync_WSAS_WsHttp_MSec = "ASync_WSAS_WsHttp_MSecurity";
+
+    -->
+		<add key="BSL_VALID_USERID" value="bsloperationuser"/>
+		<add key="BSL_VALID_PASSWORD" value="yyy"/>
+		<add key="DBServer" value="localhost" />
+		<add key="Database" value="StockTraderDB" />
+		<add key="UserID" value="trade" />
+		<add key="Password" value="yyy" />
+		<add key="MinDBConnections" value="20" />
+		<add key="MaxDBConnections" value="20" />
+		<add key="DAL" value="Trade.DALSQLServer" />
+		<add key="ENABLE_GLOBAL_SYSTEM_DOT_TRANSACTIONS_CONFIGSTRING" value="true" />
+		<add key="SYSTEMDOTTRANSACTION_TIMEOUT" value="0" />
+		<add key="MAX_QUERY_ORDERS" value="20" />
+		<add key="MAX_QUERY_TOP_ORDERS" value="5" />
+		<add key="DISPLAY_WEBSERVICE_LOGINS" value="true" />
+		<add key="LOGIN_ITERATIONSTO_DISPLAY" value="5" />
+		<!--Can't be ZERO-->
+		<add key="DISPLAYNUMBERORDERITERATIONS" value="3" />
+		<!--Can't be ZERO-->
+		<add key="OPS_DOTNET_ENDPOINT_CONFIG_HTTP" value="OpsClient_DotNet_BasicHttpBinding" />
+		<add key="OPS_DOTNET_ENDPOINT_CONFIG_WSHTTP" value="OpsClient_DotNet_WsHttpBinding_MSec" />
+		<add key="OPS_PHP_ENDPOINT_CONFIG_HTTP" value="OpsClient_PHP_BasicHttpBinding" />
+		<add key="OPS_PHP_ENDPOINT_CONFIG_WSHTTP" value="OpsClient_PHP_WsHttpBinding_MSec" />
+		<add key="OPS_WSAS_ENDPOINT_CONFIG_HTTP" value="OpsClient_WSAS_BasicHttpBinding" />
+		<add key="OPS_WSAS_ENDPOINT_CONFIG_WSHTTP" value="OpsClient_WSAS_WsHttpBinding_MSec" />
+		<add key="ClientSettingsProvider.ServiceUri" value="" />
+	</appSettings>
+	<runtime>
+		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+		</assemblyBinding>
+		<!-- Note: <gcServer enabled ="true"/> configures the .NET CLR garbage collection mode.  
+               this GC mode is used to get the best peak throughput and performance of high-scale
+               .NET Server self-hosted applications. When running in Workstation GC mode (the default), for example
+               .NET StockTrader offers up to 20% less peak throughput. You SHOULD NOT alter the GC mode
+               in Web.Config for ASP.NET Web apps, however, as this setting is set automatically within
+               ASP.NET worker processes for peak throughput based on the computer specifications at .NET install-time.
+    -->
+		<gcServer enabled="true">
+		</gcServer>
+	</runtime>
+	<!-- system.service model: New configuration section added with the release 
+       of .NET 3.0 and Windows Communication Foundation. This section defines the:
+ 
+       a) WCF Web Services, if any, hosted by this application.  
+       b) WCF clients and their endpoints.
+       c) The bindings used by the services and clients: bindings are transports and
+          encoding standards, such as HTTP/Text-XML; TCP/Binary; MSMQ, etc.
+   -->
+	<system.serviceModel>
+		<!--Enables the WCF ServiceModel performance counters for this application.-->
+		<diagnostics performanceCounters="All">
+		</diagnostics>
+		<!--The <services> section configures the WCF services that the .NET Stock Order Processor will host.
+    Note that StockTrader uses the configuration files only to specify base service names and their bindings.
+    Base addresses and Service/Client endpoints are created programmatically at runtime.-->
+		<!--********************************************************
+        
+    Config Service BS Service
+    
+    *********************************************************-->
+		<services>
+			<service name="Trade.BusinessServiceImplementation.TradeServiceWcf"
+					 behaviorConfiguration="BsHost_MSec_ServiceBehavior"></service>
+		</services>
+
+
+		<!--********************************************************
+        
+    Config Service OPS CLIENTS
+    
+    *********************************************************-->
+		<client>
+			<!-- DotNet Endpoints -->
+			<endpoint address="http://localhost:8000/tradeorderprocessor"
+					  contract="Trade.OrderProcessorContract.IOrderProcessor"
+					  binding="basicHttpBinding" bindingConfiguration="OpsClient_BasicHttpBinding"
+					  name="OpsClient_DotNet_BasicHttpBinding" />
+
+			<endpoint address="http://localhost:8000/tradeorderprocessor/msec"
+					  contract="Trade.OrderProcessorContract.IOrderProcessor"
+					  binding="wsHttpBinding" bindingConfiguration="OpsClient_WsHttpBinding_MSec"
+					  behaviorConfiguration="OpsClient_DotNet_CertificateBehavior"
+					  name="OpsClient_DotNet_WsHttpBinding_MSec">
+				<identity>
+					<certificate encodedValue="AwAAAAEAAAAUAAAA+g9Yu2BfpDNp4nno+QiIcv3gmUMgAAAAAQAAAPQBAAAwggHwMIIBWaADAgECAhDUQtaRqC0hpkD6saVDQMH8MA0GCSqGSIb3DQEBBAUAMBIxEDAOBgNVBAMTB09QUy5Db20wHhcNMDgwNTIxMDQ0NTAxWhcNMzkxMjMxMjM1OTU5WjASMRAwDgYDVQQDEwdPUFMuQ29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHCT2agc1venAAV2iWxWs1ELKlr0wAf005uUYlFbpq/3ewLmi5t+NvN8iBRHJxWA5igj/obcBmKMQ0L/+1HwKI27B9zffyPiAYkJhAwoXzR/S/7Cw4KFtYD+NIyZbRd5naa2fbyRTNnAE35q4r6JS6tiZR9mU0IjMuszj0oqotEwIDAQABo0cwRTBDBgNVHQEEPDA6gBAYaG6w3pziP/tZKe+J5ExsoRQwEjEQMA4GA1UEAxMHT1BTLkNvbYIQ1ELWkagtIaZA+rGlQ0DB/DANBgkqhkiG9w0BAQQFAAOBgQBnzFXGKgK8by3yILHlfLsmBTIZWdODFWE/f64wZJxrS7XCqd+g962FeTKQ+QI/lkRhJLlKgEt0IqGfUeogJ1MGRHabR5ujnQKhdPWUDL7kwQt3OVHxIf0pXqeiTAI8BbdFRGTWG5oOLcU7WgUNWbrXjqsAHJmsb8+MN7fD4xRoeA==" />
+				</identity>
+			</endpoint>
+			<!-- PHP Endpoints -->
+			<endpoint address="http://localhost:8080/php_stocktrader/order_processor/order_processor_svc.php"
+					  contract="Trade.OrderProcessorContract.IOrderProcessor"
+					  binding="basicHttpBinding" bindingConfiguration="OpsClient_BasicHttpBinding"
+					  name="OpsClient_PHP_BasicHttpBinding" />
+
+			<endpoint address="http://localhost:8080/php_stocktrader/order_processor/order_processor_svc_msec.php"
+					  contract="Trade.OrderProcessorContract.IOrderProcessor"
+					  binding="customBinding" bindingConfiguration="OpsClient_PHP_WSAS_CustomBinding_MSec"
+					  behaviorConfiguration="OpsClient_PHP_WSAS_CertificateBehavior"
+					  name="OpsClient_PHP_WsHttpBinding_MSec">
+				<identity>
+					<certificate encodedValue="MIIB8DCCAVmgAwIBAgIQ1ELWkagtIaZA+rGlQ0DB/DANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQDEwdPUFMuQ29tMB4XDTA4MDUyMTA0NDUwMVoXDTM5MTIzMTIzNTk1OVowEjEQMA4GA1UEAxMHT1BTLkNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxwk9moHNb3pwAFdolsVrNRCypa9MAH9NOblGJRW6av93sC5oubfjbzfIgURycVgOYoI/6G3AZijENC//tR8CiNuwfc338j4gGJCYQMKF80f0v+wsOChbWA/jSMmW0XeZ2mtn28kUzZwBN+auK+iUurYmUfZlNCIzLrM49KKqLRMCAwEAAaNHMEUwQwYDVR0BBDwwOoAQGGhusN6c4j/7WSnvieRMbKEUMBIxEDAOBgNVBAMTB09QUy5Db22CENRC1pGoLSGmQPqxpUNAwfwwDQYJKoZIhvcNAQEEBQADgYEAZ8xVxioCvG8t8iCx5Xy7JgUyGVnTgxVhP3+uMGSca0u1wqnfoPethXkykPkCP5ZEYSS5SoBLdCKhn1HqICdTBkR2m0ebo50CoXT1lAy+5MELdzlR8SH9KV6nokwCPAW3RURk1huaDi3FO1oFDVm6146rAByZrG/PjDe3w+MUaHg=" />
+				</identity>
+			</endpoint>
+
+			<!-- WSAS Endpoints -->
+			<endpoint address="http://localhost:8080/order_processer/OrderProcessor"
+					  contract="Trade.OrderProcessorContract.IOrderProcessor"
+					  binding="basicHttpBinding" bindingConfiguration="OpsClient_BasicHttpBinding"
+					  name="OpsClient_WSAS_BasicHttpBinding" />
+
+			<endpoint address="http://localhost:8080/order_processer/OrderProcessorSec"
+					  contract="Trade.OrderProcessorContract.IOrderProcessor"
+					  binding="customBinding" bindingConfiguration="OpsClient_PHP_WSAS_CustomBinding_MSec"
+					  behaviorConfiguration="OpsClient_PHP_WSAS_CertificateBehavior"
+					  name="OpsClient_WSAS_WsHttpBinding_MSec">
+				<identity>
+					<certificate encodedValue="MIIB8DCCAVmgAwIBAgIQ1ELWkagtIaZA+rGlQ0DB/DANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQDEwdPUFMuQ29tMB4XDTA4MDUyMTA0NDUwMVoXDTM5MTIzMTIzNTk1OVowEjEQMA4GA1UEAxMHT1BTLkNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxwk9moHNb3pwAFdolsVrNRCypa9MAH9NOblGJRW6av93sC5oubfjbzfIgURycVgOYoI/6G3AZijENC//tR8CiNuwfc338j4gGJCYQMKF80f0v+wsOChbWA/jSMmW0XeZ2mtn28kUzZwBN+auK+iUurYmUfZlNCIzLrM49KKqLRMCAwEAAaNHMEUwQwYDVR0BBDwwOoAQGGhusN6c4j/7WSnvieRMbKEUMBIxEDAOBgNVBAMTB09QUy5Db22CENRC1pGoLSGmQPqxpUNAwfwwDQYJKoZIhvcNAQEEBQADgYEAZ8xVxioCvG8t8iCx5Xy7JgUyGVnTgxVhP3+uMGSca0u1wqnfoPethXkykPkCP5ZEYSS5SoBLdCKhn1HqICdTBkR2m0ebo50CoXT1lAy+5MELdzlR8SH9KV6nokwCPAW3RURk1huaDi3FO1oFDVm6146rAByZrG/PjDe3w+MUaHg=" />
+				</identity>
+			</endpoint>
+		</client>
+
+
+		<!--********************************************************
+        
+    Config Service BINDINGS
+    
+    *********************************************************-->
+		<bindings>
+
+			<!--BEGIN basicHttpBindings-->
+			<basicHttpBinding>
+
+				<binding name="BsHost_BasicHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:30:00" sendTimeout="00:1:00" allowCookies="true" bypassProxyOnLocal="true" hostNameComparisonMode="StrongWildcard" maxBufferSize="1048576" maxBufferPoolSize="10485768" maxReceivedMessageSize="1048576" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
+					<readerQuotas maxDepth="512" maxStringContentLength="262144" maxArrayLength="262144" maxBytesPerRead="65536" maxNameTableCharCount="262144" />
+					<security mode="None">
+						<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
+						<message clientCredentialType="Certificate" algorithmSuite="Default" />
+					</security>
+				</binding>
+
+				<binding name="OpsClient_BasicHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:30:00" sendTimeout="00:1:00" allowCookies="true" bypassProxyOnLocal="true" hostNameComparisonMode="StrongWildcard" maxBufferSize="524288" maxBufferPoolSize="524288" maxReceivedMessageSize="524288" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
+					<readerQuotas maxDepth="512" maxStringContentLength="262144" maxArrayLength="262144" maxBytesPerRead="65536" maxNameTableCharCount="262144" />
+					<security mode="None">
+						<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
+						<message clientCredentialType="Certificate" algorithmSuite="Default" />
+					</security>
+				</binding>
+
+			</basicHttpBinding>
+
+			<!--BEGIN wsHttpBindings-->
+			<wsHttpBinding>
+
+				<!--PRIMARY SERVICE HOST BINDINGS.  TO ADD OTHERS, MAKE SURE TO PREFACE NAME WITH 'Host_'
+        <binding name="BsHost_WsHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:30:00" sendTimeout="00:1:00" allowCookies="true" maxReceivedMessageSize="65536" hostNameComparisonMode="StrongWildcard" messageEncoding="Text" textEncoding="utf-8" bypassProxyOnLocal="true" transactionFlow="false">
+          <readerQuotas maxDepth="512" maxStringContentLength="262144" maxArrayLength="262144" maxBytesPerRead="65536" maxNameTableCharCount="262144" />
+          <reliableSession enabled="false" ordered="true" inactivityTimeout="00:10:00" />
+          <security mode="None">
+            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
+            <message clientCredentialType="Certificate" negotiateServiceCredential="true" algorithmSuite="Default" />
+          </security>
+        </binding>
+        -->
+				<binding name="BsHost_WsHttpBinding_MSec" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:30:00" sendTimeout="00:1:00" allowCookies="true" maxReceivedMessageSize="65536" hostNameComparisonMode="StrongWildcard" messageEncoding="Text" textEncoding="utf-8" bypassProxyOnLocal="true" transactionFlow="false">
+					<readerQuotas maxDepth="512" maxStringContentLength="262144" maxArrayLength="262144" maxBytesPerRead="65536" maxNameTableCharCount="262144" />
+					<reliableSession enabled="false" ordered="true" inactivityTimeout="00:10:00" />
+					<security mode="Message">
+						<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
+						<message clientCredentialType="UserName" negotiateServiceCredential="true" algorithmSuite="Default" />
+					</security>
+				</binding>
+
+				<!--PRIMARY SERVICE CLIENT BINDINGS.  TO ADD OTHERS, MAKE SURE TO PREFACE NAME WITH 'Client_'
+        <binding name="OpsClient_WsHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:30:00" sendTimeout="00:1:00" allowCookies="true" maxReceivedMessageSize="65536" hostNameComparisonMode="StrongWildcard" messageEncoding="Text" textEncoding="utf-8" bypassProxyOnLocal="true" transactionFlow="false">
+          <readerQuotas maxDepth="512" maxStringContentLength="262144" maxArrayLength="262144" maxBytesPerRead="65536" maxNameTableCharCount="262144" />
+          <reliableSession enabled="false" ordered="true" inactivityTimeout="00:10:00" />
+          <security mode="None">
+            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
+            <message clientCredentialType="Certificate" negotiateServiceCredential="true" algorithmSuite="Default" />
+          </security>
+        </binding>
+        -->
+				<binding name="OpsClient_WsHttpBinding_MSec" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
+					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
+					<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
+					<security mode="Message">
+						<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
+						<message clientCredentialType="Certificate" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
+					</security>
+				</binding>
+			</wsHttpBinding>
+
+			<!--BEGIN CustomBindings-->
+			<customBinding>
+
+				<binding name="OpsClient_PHP_WSAS_CustomBinding_MSec">
+					<!--
+					<security defaultAlgorithmSuite="Basic256" authenticationMode="AnonymousForCertificate" 
+							  requireDerivedKeys="false" securityHeaderLayout="Lax" includeTimestamp="true" 
+							  keyEntropyMode="CombinedEntropy" messageProtectionOrder="SignBeforeEncrypt" 
+							  messageSecurityVersion="Default" requireSignatureConfirmation="true">
+						<localClientSettings cacheCookies="true" detectReplays="true"
+											 replayCacheSize="900000" maxClockSkew="00:05:00" maxCookieCachingTime="05:05:00" replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00" sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true" timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
+						<localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00" maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:05:00" negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00" sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true" maxPendingSessions="128" maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
+						<secureConversationBootstrap />
+					</security>
+					<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap12" writeEncoding="utf-8">
+						<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
+					</textMessageEncoding>
+					<httpTransport />
+					
+					
+						-->
+					<security defaultAlgorithmSuite="Default" authenticationMode="AnonymousForCertificate"
+								requireDerivedKeys="false" securityHeaderLayout="Lax" includeTimestamp="true"
+								keyEntropyMode="CombinedEntropy" messageProtectionOrder="SignBeforeEncrypt"
+								messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"
+								requireSignatureConfirmation="true">
+
+						<localClientSettings cacheCookies="true" detectReplays="true"
+							replayCacheSize="900000" maxClockSkew="00:05:00" maxCookieCachingTime="Infinite"
+							replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
+							sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
+							timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
+						<localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00"
+							maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:05:00"
+							negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
+							sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
+							reconnectTransportOnFailure="true" maxPendingSessions="128"
+							maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
+						<secureConversationBootstrap />
+					</security>
+					<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
+						messageVersion="Default" writeEncoding="utf-8">
+						<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
+							maxBytesPerRead="4096" maxNameTableCharCount="16384" />
+					</textMessageEncoding>
+
+					<httpTransport manualAddressing="false" maxBufferPoolSize="524288"
+						maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
+						bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
+						keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
+						realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
+						useDefaultWebProxy="true" />
+				</binding>
+
+			</customBinding>
+		</bindings>
+
+
+		<!--********************************************************
+    
+    Config Service BEHAVIORS
+    
+    *********************************************************-->
+		<behaviors>
+			<serviceBehaviors>
+
+				<!-- Begin the BS Service Behaviors -->
+				<!--
+        <behavior name="BsHost_DefaultBehavior">
+          <serviceThrottling maxConcurrentInstances="400" maxConcurrentCalls="400" maxConcurrentSessions="100" />
+        </behavior>
+        
+        <behavior name="BsHost_DebugServiceBehaviors">
+          <serviceMetadata httpGetEnabled="true" />
+          <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />
+          <serviceThrottling maxConcurrentInstances="400" maxConcurrentCalls="400" maxConcurrentSessions="100" />
+        </behavior>
+        -->
+
+				<!-- Default BS Host Behavior -->
+				<behavior name="BsHost_MSec_ServiceBehavior">
+					<serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />
+					<serviceThrottling maxConcurrentInstances="400" maxConcurrentCalls="400" maxConcurrentSessions="100" />
+					<serviceCredentials>
+						<userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="Trade.BusinessServiceImplementation.TradeBSLCustomUserNameValidator, Trade.BusinessServiceImplementation" />
+						<serviceCertificate findValue="Trade.Com" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="TrustedPeople" />
+					</serviceCredentials>
+				</behavior>
+			</serviceBehaviors>
+
+			<!-- Begin the OPS Client Service Behaviors -->
+			<endpointBehaviors>
+				<!--
+        <behavior name="ClientCertificateBehavior">
+          <clientCredentials>
+            <serviceCertificate>
+              <authentication certificateValidationMode="PeerOrChainTrust" />
+            </serviceCertificate>
+          </clientCredentials>
+        </behavior>
+        
+        <behavior name="BSL_ClientCertificateBehavior">
+          <clientCredentials>
+            <serviceCertificate>
+              <authentication certificateValidationMode="PeerOrChainTrust" />
+            </serviceCertificate>
+          </clientCredentials>
+        </behavior>
+        -->
+
+				<behavior name="OpsClient_DotNet_CertificateBehavior">
+					<clientCredentials>
+						<clientCertificate findValue="BSL.Com" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="TrustedPeople" />
+					</clientCredentials>
+				</behavior>
+
+				<!-- This needs to be changed to work with PHP/WSAS Bob/Alice Certs -->
+				<behavior name="OpsClient_PHP_WSAS_CertificateBehavior">
+					<clientCredentials>
+						<serviceCertificate>
+							<authentication certificateValidationMode="PeerOrChainTrust" />
+						</serviceCertificate>
+					</clientCredentials>
+				</behavior>
+
+			</endpointBehaviors>
+
+		</behaviors>
+	</system.serviceModel>
+
+	<system.web>
+		<membership defaultProvider="ClientAuthenticationMembershipProvider">
+			<providers>
+				<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
+			</providers>
+		</membership>
+		<roleManager defaultProvider="ClientRoleProvider" enabled="true">
+			<providers>
+				<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
+			</providers>
+		</roleManager>
+	</system.web>
+</configuration>

Added: incubator/stonehenge/contrib/stocktrader/metro/etc/Web.config
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/etc/Web.config?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/etc/Web.config (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/etc/Web.config Thu Jun  4 07:04:21 2009
@@ -0,0 +1,320 @@
+<?xml version="1.0"?>
+
+<!--
+ 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.
+ -->
+ 
+<!--  
+    Note: As an alternative to hand editing this file you can use the 
+    web admin tool to configure settings for your application. Use
+    the Website->Asp.Net Configuration option in Visual Studio.
+    A full list of settings and comments can be found in 
+    machine.config.comments usually located in 
+    \Windows\Microsoft.Net\Framework\v2.x\Config 
+-->
+<configuration>
+
+  <appSettings>
+    <add key="ACCESS_MODE" value="WSAS_Http_WebService"/>
+    <!-- 
+        //Valid Config Values for user-set "AccessMode" config setting. 
+        public const string ACCESS_STRING_InProcess = "InProcess";
+        public const string ACCESS_STRING_DotNet_Http_WcfService = "DotNet_Http_WcfService";//default
+        public const string ACCESS_STRING_DotNet_WsHttp_WcfService = "DotNet_WsHttp_WcfService";
+        public const string ACCESS_STRING_PHP_Http_WebService = "PHP_Http_WebService";
+        public const string ACCESS_STRING_WSAS_Http_WebService = "WSAS_Http_WebService";
+        -->
+    <add key="EVENT_LOG" value="Trade Web App"/>
+    <add key="MAX_DISPLAY_ORDERS" value="20"/>
+    <add key="MAX_DISPLAY_TOP_ORDERS" value="5"/>
+    <add key="DISPLAY_DUPLICATE_KEY_EXCEPTIONS" value="true"/>
+    <add key="CHECK_ORDER_ALERT_EVERY_REQUEST" value="true"/>
+    <add key="ORDER_ALERT_CHECK_FREQUENCY" value="30"/>
+    <add key="BSL_DOTNET_ENDPOINT_CONFIG_HTTP" value="BsClient_DotNet_BasicHttpBinding"/>
+    <add key="BSL_DOTNET_ENDPOINT_CONFIG_WSHTTP" value="BsClient_DotNet_WsHttpBinding"/>
+    <add key="BSL_PHP_ENDPOINT_CONFIG_HTTP" value="BsClient_PHP_BasicHttpBinding"/>
+    <add key="BSL_WSAS_ENDPOINT_CONFIG_HTTP" value="BsClient_WSAS_BasicHttpBinding"/>
+    <add key="BSL_USERID" value="bsloperationuser"/>
+    <add key="BSL_PASSWORD" value="yyy"/>
+
+    <!-- This is duplicated from Business Service to support ACCESS_MODE=InProcess-->
+    <add key="ORDER_PROCESSING_MODE" value="Sync_InProcess"/>
+
+    <add key="BSL_VALID_USERID" value="bsloperationuser"/>
+    <add key="BSL__VALID_PASSWORD" value="yyy"/>
+    <add key="DBServer" value="localhost"/>
+    <add key="Database" value="StockTraderDB"/>
+    <add key="UserID" value="trade"/>
+    <add key="Password" value="yyy"/>
+    <add key="MinDBConnections" value="20"/>
+    <add key="MaxDBConnections" value="20"/>
+    <add key="DAL" value="Trade.DALSQLServer"/>
+    <add key="ENABLE_GLOBAL_SYSTEM_DOT_TRANSACTIONS_CONFIGSTRING" value="true"/>
+    <add key="SYSTEMDOTTRANSACTION_TIMEOUT" value="0"/>
+    <add key="MAX_QUERY_ORDERS" value="10"/>
+    <add key="MAX_QUERY_TOP_ORDERS" value="10"/>
+    <add key="DISPLAY_WEBSERVICE_LOGINS" value="true"/>
+    <add key="LOGIN_ITERATIONSTO_DISPLAY" value="5"/>
+    <!--Can't be ZERO-->
+    <add key="DISPLAYNUMBERORDERITERATIONS" value="3"/>
+    <!--Can't be ZERO-->
+  </appSettings>
+  <runtime>
+    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+    </assemblyBinding>
+  </runtime>
+  <!-- system.service model: New configuration section added with the release 
+       of .NET 3.0 and Windows Communication Foundation. This section defines the:
+ 
+       a) WCF Web Services, if any, hosted by this application.  
+       b) WCF clients and their endpoints.
+       c) The bindings used by the services and clients: bindings are transports and
+          encoding standards, such as HTTP/Text-XML; TCP/Binary; MSMQ, etc.
+   -->
+  <system.serviceModel>
+    <!--This enables the WCF ServiceModel performance counters for this application.-->
+    <diagnostics performanceCounters="All"></diagnostics>
+
+		<!--********************************************************
+        
+    Config Service BS Clients
+    
+    *********************************************************-->
+    <client>
+      <!-- DotNet Clients  -->
+      <endpoint address="http://localhost:9000/tradebusinessservice"
+                contract="Trade.BusinessServiceContract.ITradeServices" 
+                binding="basicHttpBinding" bindingConfiguration="BsClient_BasicHttpBinding" 
+                name="BsClient_DotNet_BasicHttpBinding"/>
+      
+      <endpoint address="http://localhost:9000/tradebusinessservice/msec" 
+      					contract="Trade.BusinessServiceContract.ITradeServices"
+      					binding="wsHttpBinding" bindingConfiguration="BsClient_WsHttpBinding_MSec"
+                behaviorConfiguration="BsClient_CertificateBehavior"
+                name="BsClient_DotNet_WsHttpBinding">
+        <identity>
+          <dns value="trade.com"/>
+        </identity>
+      </endpoint>
+      
+      <!-- PHP Client  -->
+      <endpoint address="http://localhost:8080/php_stocktrader/business_service/business_svc.php" 
+                contract="Trade.BusinessServiceContract.ITradeServices"
+                binding="basicHttpBinding" bindingConfiguration="BsClient_BasicHttpBinding"
+                name="BsClient_PHP_BasicHttpBinding"/>
+      
+      <!-- WSAS Client  -->
+      <endpoint address="http://localhost:8080/business_service/TradeServiceWsas"
+      					contract="Trade.BusinessServiceContract.ITradeServices"
+      					binding="basicHttpBinding" bindingConfiguration="BsClient_BasicHttpBinding"
+                name="BsClient_WSAS_BasicHttpBinding"/>
+    </client>
+    
+    <!--********************************************************
+        
+    Config Service BINDINGS
+    
+    *********************************************************-->
+    <bindings>
+      <!--BEGIN basicHttpBindings-->
+      <basicHttpBinding>
+        
+        <!--THESE ARE TEMPLATE PRIMARY SERVICE CLIENT BINDINGS.  TO AUGMENT, ADD WITH PREFIX 'Client_'-->
+        <binding name="BsClient_BasicHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:30:00" sendTimeout="00:1:00" allowCookies="true" bypassProxyOnLocal="true" hostNameComparisonMode="StrongWildcard" maxBufferSize="524288" maxBufferPoolSize="524288" maxReceivedMessageSize="524288" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
+          <readerQuotas maxDepth="512" maxStringContentLength="262144" maxArrayLength="262144" maxBytesPerRead="65536" maxNameTableCharCount="262144"/>
+          <security mode="None">
+            <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
+            <message clientCredentialType="Certificate" algorithmSuite="Default"/>
+          </security>
+        </binding>
+      
+      </basicHttpBinding>
+
+
+      <!--BEGIN wsHttpBindings-->
+      <wsHttpBinding>
+       
+        <binding name="BsClient_WsHttpBinding_MSec" closeTimeout="00:01:00"
+                                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
+                                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
+                                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
+                                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
+                                    allowCookies="false">
+          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
+          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
+          <security mode="Message">
+            <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
+            <message clientCredentialType="UserName" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
+          </security>
+        </binding>
+
+      </wsHttpBinding>
+
+    </bindings>
+    <!--Service Behaviors are applied (at the service level) to services that specify them, hence apply to ALL ENDPOINTS FOR A SERVICE HOST/VHOST -->
+    <behaviors>
+      <!--Endpint Behaviors are applied at the individual endpoint level.-->
+      <endpointBehaviors>
+        <!--
+        <behavior name="ClientCertificateBehavior">
+          <clientCredentials>
+            <serviceCertificate>
+              <authentication certificateValidationMode="PeerOrChainTrust"/>
+            </serviceCertificate>
+          </clientCredentials>
+        </behavior>
+        -->
+        <behavior name="BsClient_CertificateBehavior">
+          <clientCredentials>
+            <serviceCertificate>
+              <authentication certificateValidationMode="PeerOrChainTrust"/>
+            </serviceCertificate>
+          </clientCredentials>
+        </behavior>
+        <!--
+        <behavior name="OPS_ClientCertificateBehavior">
+          <clientCredentials>
+            <clientCertificate findValue="BSL.Com" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="TrustedPeople"/>                     
+          </clientCredentials>
+        </behavior>-->
+      </endpointBehaviors>
+    </behaviors>
+    <!--END CONFIG SERVICE TEMPLATE BEHAVIORS-->
+    
+  </system.serviceModel>
+  <!-- Set identity impersonate to false to make sure ASP.NET runs as its 
+       preferred ASP.NET Machine Account. Note this is also required for the 
+       application by default to run in a Windows Vista/ASP.NET worker process 
+      using the new "integrated pipeline" mode introduced with IIS 7.0, 
+      which is the web server within Vista (and upcoming Windows "Longhorn" Server
+      release.-->
+  <system.web>
+    <identity impersonate="false"/>
+    <trace enabled="false" pageOutput="false"/>
+    <!--A setting for ASMX Web Service Only-->
+    <webServices>
+      <protocols>
+        <add name="AnyHttpSoap"/>
+      </protocols>
+    </webServices>
+    <!-- 
+            Set compilation debug="true" to insert debugging 
+            symbols into the compiled page. Because this 
+            affects performance, set this value to true only 
+            during development.
+        -->
+    <customErrors mode="Off"></customErrors>
+    <pages buffer="true" enableSessionState="false" enableViewState="false" enableViewStateMac="false" smartNavigation="false">
+      <controls>
+        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
+        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
+      </controls>
+    </pages>
+		<compilation defaultLanguage="c#" debug="true">
+			<assemblies>
+        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
+        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+        <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
+      </assemblies>
+		</compilation>
+    <authentication mode="Forms">
+      <forms name="signinform" loginUrl="login.aspx" protection="None" timeout="15"/>
+    </authentication>
+    <!--
+            The <customErrors> section enables configuration 
+            of what to do if/when an unhandled error occurs 
+            during the execution of a request. Specifically, 
+            it enables developers to configure html error pages 
+            to be displayed in place of a error stack trace.
+
+        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
+            <error statusCode="403" redirect="NoAccess.htm"/>
+            <error statusCode="404" redirect="FileNotFound.htm"/>
+        </customErrors>
+        -->
+    <sessionState mode="Off" cookieless="false" stateConnectionString="" timeout="15"/>
+  </system.web>
+  <system.codedom>
+    <compilers>
+      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+        <providerOption name="CompilerVersion" value="v3.5"/>
+        <providerOption name="WarnAsError" value="false"/>
+      </compiler>
+    </compilers>
+  </system.codedom>
+  <!--These are the restricted pages based on ASP.NET authentication; and require
+      user login before access is granted-->
+  <location path="Account.aspx">
+    <system.web>
+      <authorization>
+        <deny users="?"/>
+      </authorization>
+    </system.web>
+  </location>
+  <location path="TradeHome.aspx">
+    <system.web>
+      <authorization>
+        <deny users="?"/>
+      </authorization>
+    </system.web>
+  </location>
+  <location path="Portfolio.aspx">
+    <system.web>
+      <authorization>
+        <deny users="?"/>
+      </authorization>
+    </system.web>
+  </location>
+  <location path="Order.aspx">
+    <system.web>
+      <authorization>
+        <deny users="?"/>
+      </authorization>
+    </system.web>
+  </location>
+  <location path="Quotes.aspx">
+    <system.web>
+      <authorization>
+        <deny users="?"/>
+      </authorization>
+    </system.web>
+  </location>
+  <location path="StockTrade.aspx">
+    <system.web>
+      <authorization>
+        <deny users="?"/>
+      </authorization>
+    </system.web>
+  </location>
+  <location path="logout.aspx">
+    <system.web>
+      <authorization>
+        <deny users="?"/>
+      </authorization>
+    </system.web>
+  </location>
+  <!--  Note:  Uncomment this section to move .ascx output caching of MarketSummaryto kernel mode
+    <system.webServer>
+        <caching>
+            <profiles>
+                <add extension=".ascx" policy="DontCache" kernelCachePolicy="CacheForTimePeriod" duration="00:01:00" />
+            </profiles>
+        </caching>
+    </system.webServer>
+    -->
+</configuration>

Added: incubator/stonehenge/contrib/stocktrader/metro/etc/as.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/etc/as.xml?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/etc/as.xml (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/etc/as.xml Thu Jun  4 07:04:21 2009
@@ -0,0 +1,52 @@
+<project name="as">
+    <property environment="env"/>
+    <property name="domain" value="domain1"/>
+
+    <condition property="as.home" value="${env.AS_HOME}">
+        <isset property="env.AS_HOME"/>
+    </condition>
+
+    <fail message="Web container not identified. Require AS_HOME be set">
+        <condition>
+            <not>
+                <isset property="as.home"/>
+            </not>
+        </condition>
+    </fail>
+    
+    <property name="deploy.dir" value="${as.home}/domains/${domain}/autodeploy"/>
+    <property name="keystore.dir" value="${as.home}/domains/${domain}/config"/>
+    <!-- checkPlatform determines which OS is being utilized. -->
+    <target name="checkPlatform">
+        <condition property="isUnixPlatform">
+            <os family="unix"/>
+        </condition>
+        <condition property="isWindowsPlatform">
+            <os family="windows"/>
+        </condition>
+    </target>
+
+    <target name="configForWindow" depends="checkPlatform" if="isWindowsPlatform">
+        <property name="asadmin" value="${as.home}/bin/asadmin.bat"/>
+    </target>
+
+    <target name="configForUnix" depends="checkPlatform" if="isUnixPlatform">
+        <property name="asadmin" value="${as.home}/bin/asadmin"/>
+    </target>
+
+    <target name="configPlatform" depends="configForUnix, configForWindow"/>
+
+    <target name="start-as" depends="configPlatform">
+        <exec executable="${asadmin}">
+            <arg value="start-domain"/>
+        </exec>
+    </target>
+
+    <target name="stop-as" depends="configPlatform">
+        <exec executable="${asadmin}">
+            <arg value="stop-domain"/>
+        </exec>
+    </target>
+    
+    <target name="restart-as" depends="stop-as, start-as"/>
+</project>
\ No newline at end of file

Added: incubator/stonehenge/contrib/stocktrader/metro/order_processor/build.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/order_processor/build.xml?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/order_processor/build.xml (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/order_processor/build.xml Thu Jun  4 07:04:21 2009
@@ -0,0 +1,96 @@
+<project basedir="." default="war" name="order_processor">
+    <import file="../etc/as.xml"/>
+
+    <property file="etc/build.properties"/>
+    <property name="src.dir" value="${basedir}/src"/>
+    <property name="build.home" value="${basedir}/build"/>
+    <property name="build.classes.home" value="${build.home}/classes"/>
+    <property name="build.war.home" value="${build.home}/war"/>
+    <property name="build.war.lib.home" value=""/>
+    <property name="war.name" value="${ant.project.name}.war"/>
+    <property name="war.file" value="${build.war.home}/${war.name}"/>
+    <property name="lib.home" value="${basedir}/lib"/>
+    <property name="lib.metro.home" value="${lib.home}/metro"/>
+    <property name="deploy.war" value="${deploy.dir}/${war.name}"/>
+    <property name="server.keystore" value="${basedir}/etc/server-keystore.jks"/>
+    <property name="server.truststore" value="${basedir}/etc/server-truststore.jks"/>
+
+    <path id="metro.classpath">
+        <pathelement location="${java.home}/../lib/tools.jar"/>
+        <fileset dir="${lib.metro.home}">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+
+    <path id="all.classpath">
+        <fileset dir="${lib.home}">
+            <include name="**/*.jar"/>
+        </fileset>
+    </path>
+
+    <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
+        <classpath refid="metro.classpath"/>
+    </taskdef>
+
+    <target name="setup" depends="clean">
+        <mkdir dir="${build.home}"/>
+        <mkdir dir="${build.classes.home}"/>
+        <mkdir dir="${build.war.home}"/>
+    </target>
+
+    <target name="clean">
+        <delete dir="${build.home}" includeEmptyDirs="true"/>
+    </target>
+    
+    <target name="import-ws" depends="setup">
+        <wsimport
+                debug="${debug}"
+                verbose="${verbose}"
+                keep="${keep}"
+                destdir="${build.classes.home}"
+                wsdl="${basedir}/etc/${service.wsdl}"
+                extension="true">
+            <binding dir="${basedir}/etc" includes="${service.binding}"/>
+            <xjcarg value="-extension"/>
+        </wsimport>
+    </target>
+
+    <target name="build" depends="import-ws">
+        <copy file="config/mssql-db.properties" todir="${build.classes.home}"/>
+        <javac
+                fork="true"
+                srcdir="${src.dir}"
+                destdir="${build.classes.home}">
+            <classpath refid="all.classpath"/>
+        </javac>
+    </target>
+
+    <target name="war" depends="build">
+        <war warfile="${war.file}" webxml="etc/web.xml">
+            <webinf dir="${basedir}/etc" includes="sun-jaxws.xml"/>
+            <zipfileset
+                    dir="${basedir}/etc"
+                    includes="${service.wsdl}, wsdl0.wsdl, *.xsd"
+                    prefix="WEB-INF/wsdl"/>
+            <classes dir="${build.classes.home}"/>
+            <lib dir="${lib.home}/commons"/>
+            <lib dir="${lib.home}/log4j"/>
+            <lib dir="${lib.home}/mssql"/>
+        </war>
+    </target>
+
+    <target name="deploy-keystore">
+        <copy file="${server.keystore}" todir="${keystore.dir}"/>
+        <copy file="${server.truststore}" todir="${keystore.dir}"/>
+    </target>
+
+    <target name="deploy" depends="war, deploy-keystore">
+        <copy file="${war.file}" tofile="${deploy.war}"/>
+    </target>
+
+    <target name="undeploy">
+        <delete file="${deploy.dir}/${war.name}"/>
+    </target>
+
+    <target name="redeploy" depends="undeploy, deploy"/>
+</project>

Added: incubator/stonehenge/contrib/stocktrader/metro/order_processor/config/mssql-db.properties
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/order_processor/config/mssql-db.properties?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/order_processor/config/mssql-db.properties (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/order_processor/config/mssql-db.properties Thu Jun  4 07:04:21 2009
@@ -0,0 +1,5 @@
+org.wso2.stocktrader.mssql.MSSQLDAOFactory.host=localhost
+org.wso2.stocktrader.mssql.MSSQLDAOFactory.port=1433
+org.wso2.stocktrader.mssql.MSSQLDAOFactory.db=StockTraderDB
+org.wso2.stocktrader.mssql.MSSQLDAOFactory.user=trade
+org.wso2.stocktrader.mssql.MSSQLDAOFactory.password=yyy
\ No newline at end of file

Added: incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/OrderProcessor.wsdl
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/OrderProcessor.wsdl?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/OrderProcessor.wsdl (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/OrderProcessor.wsdl Thu Jun  4 07:04:21 2009
@@ -0,0 +1,351 @@
+<?xml version="1.0" encoding="utf-8"?>
+<wsdl:definitions name="OrderProcessor" targetNamespace="http://tempuri.org/"
+                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+                  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
+                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+                  xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri.org/"
+                  xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
+                  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:i0="http://Trade.TraderOrderHost"
+                  xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"
+                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                  xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
+                  xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+                  xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+                  xmlns:wsa10="http://www.w3.org/2005/08/addressing"
+                  xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
+    <wsp:Policy wsu:Id="WSHttpBinding_OrderProcessorService_policy">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <wsp:Policy>
+                        <sp:ProtectionToken>
+                            <wsp:Policy>
+                                <sp:SecureConversationToken
+                                        sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+                                    <wsp:Policy>
+                                        <sp:RequireDerivedKeys/>
+                                        <sp:BootstrapPolicy>
+                                            <wsp:Policy>
+                                                <sp:SignedParts>
+                                                    <sp:Body/>
+                                                    <sp:Header Name="To"
+                                                               Namespace="http://www.w3.org/2005/08/addressing"/>
+                                                    <sp:Header Name="From"
+                                                               Namespace="http://www.w3.org/2005/08/addressing"/>
+                                                    <sp:Header Name="FaultTo"
+                                                               Namespace="http://www.w3.org/2005/08/addressing"/>
+                                                    <sp:Header Name="ReplyTo"
+                                                               Namespace="http://www.w3.org/2005/08/addressing"/>
+                                                    <sp:Header Name="MessageID"
+                                                               Namespace="http://www.w3.org/2005/08/addressing"/>
+                                                    <sp:Header Name="RelatesTo"
+                                                               Namespace="http://www.w3.org/2005/08/addressing"/>
+                                                    <sp:Header Name="Action"
+                                                               Namespace="http://www.w3.org/2005/08/addressing"/>
+                                                </sp:SignedParts>
+                                                <sp:EncryptedParts>
+                                                    <sp:Body/>
+                                                </sp:EncryptedParts>
+                                                <sp:SymmetricBinding>
+                                                    <wsp:Policy>
+                                                        <sp:ProtectionToken>
+                                                            <wsp:Policy>
+                                                                <mssp:SslContextToken
+                                                                        sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"
+                                                                        xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy">
+                                                                    <wsp:Policy>
+                                                                        <sp:RequireDerivedKeys/>
+                                                                        <mssp:RequireClientCertificate/>
+                                                                    </wsp:Policy>
+                                                                </mssp:SslContextToken>
+                                                            </wsp:Policy>
+                                                        </sp:ProtectionToken>
+                                                        <sp:AlgorithmSuite>
+                                                            <wsp:Policy>
+                                                                <sp:Basic256/>
+                                                            </wsp:Policy>
+                                                        </sp:AlgorithmSuite>
+                                                        <sp:Layout>
+                                                            <wsp:Policy>
+                                                                <sp:Strict/>
+                                                            </wsp:Policy>
+                                                        </sp:Layout>
+                                                        <sp:IncludeTimestamp/>
+                                                        <sp:EncryptSignature/>
+                                                        <sp:OnlySignEntireHeadersAndBody/>
+                                                    </wsp:Policy>
+                                                </sp:SymmetricBinding>
+                                                <sp:Wss11>
+                                                    <wsp:Policy>
+                                                        <sp:MustSupportRefKeyIdentifier/>
+                                                        <sp:MustSupportRefIssuerSerial/>
+                                                        <sp:MustSupportRefThumbprint/>
+                                                        <sp:MustSupportRefEncryptedKey/>
+                                                    </wsp:Policy>
+                                                </sp:Wss11>
+                                                <sp:Trust10>
+                                                    <wsp:Policy>
+                                                        <sp:MustSupportIssuedTokens/>
+                                                        <sp:RequireClientEntropy/>
+                                                        <sp:RequireServerEntropy/>
+                                                    </wsp:Policy>
+                                                </sp:Trust10>
+                                            </wsp:Policy>
+                                        </sp:BootstrapPolicy>
+                                    </wsp:Policy>
+                                </sp:SecureConversationToken>
+                            </wsp:Policy>
+                        </sp:ProtectionToken>
+                        <sp:AlgorithmSuite>
+                            <wsp:Policy>
+                                <sp:Basic256/>
+                            </wsp:Policy>
+                        </sp:AlgorithmSuite>
+                        <sp:Layout>
+                            <wsp:Policy>
+                                <sp:Strict/>
+                            </wsp:Policy>
+                        </sp:Layout>
+                        <sp:IncludeTimestamp/>
+                        <sp:EncryptSignature/>
+                        <sp:OnlySignEntireHeadersAndBody/>
+                    </wsp:Policy>
+                </sp:SymmetricBinding>
+                <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <wsp:Policy>
+                        <sp:MustSupportRefKeyIdentifier/>
+                        <sp:MustSupportRefIssuerSerial/>
+                        <sp:MustSupportRefThumbprint/>
+                        <sp:MustSupportRefEncryptedKey/>
+                    </wsp:Policy>
+                </sp:Wss11>
+                <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <wsp:Policy>
+                        <sp:MustSupportIssuedTokens/>
+                        <sp:RequireClientEntropy/>
+                        <sp:RequireServerEntropy/>
+                    </wsp:Policy>
+                </sp:Trust10>
+                <wsaw:UsingAddressing/>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsp:Policy wsu:Id="WSHttpBinding_OrderProcessorService_SubmitOrder_Input_policy">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                    <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
+                </sp:SignedParts>
+                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                </sp:EncryptedParts>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsp:Policy wsu:Id="WSHttpBinding_OrderProcessorService_isOnline_Input_policy">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                    <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
+                </sp:SignedParts>
+                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                </sp:EncryptedParts>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsp:Policy wsu:Id="CustomBinding_OrderProcessorService_policy">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <wsp:Policy>
+                        <sp:ProtectionToken>
+                            <wsp:Policy>
+                                <sp:X509Token
+                                        sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+                                    <wsp:Policy>
+                                        <sp:RequireThumbprintReference/>
+                                        <sp:WssX509V3Token10/>
+                                    </wsp:Policy>
+                                </sp:X509Token>
+                            </wsp:Policy>
+                        </sp:ProtectionToken>
+                        <sp:AlgorithmSuite>
+                            <wsp:Policy>
+                                <sp:Basic256/>
+                            </wsp:Policy>
+                        </sp:AlgorithmSuite>
+                        <sp:Layout>
+                            <wsp:Policy>
+                                <sp:Lax/>
+                            </wsp:Policy>
+                        </sp:Layout>
+                        <sp:IncludeTimestamp/>
+                        <sp:OnlySignEntireHeadersAndBody/>
+                    </wsp:Policy>
+                </sp:SymmetricBinding>
+                <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <wsp:Policy>
+                        <sp:MustSupportRefKeyIdentifier/>
+                        <sp:MustSupportRefIssuerSerial/>
+                        <sp:MustSupportRefThumbprint/>
+                        <sp:MustSupportRefEncryptedKey/>
+                        <sp:RequireSignatureConfirmation/>
+                    </wsp:Policy>
+                </sp:Wss11>
+                <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <wsp:Policy>
+                        <sp:MustSupportIssuedTokens/>
+                        <sp:RequireClientEntropy/>
+                        <sp:RequireServerEntropy/>
+                    </wsp:Policy>
+                </sp:Trust10>
+                <wsaw:UsingAddressing/>
+
+                <sc:KeyStore xmlns:sc="http://schemas.sun.com/2006/03/wss/server" visibility="private" alias="mykey" storepass="changeit" type="JKS" location="server-keystore.jks"/>
+                <sc:TrustStore xmlns:sc="http://schemas.sun.com/2006/03/wss/server" visibility="private" peeralias="mykey" storepass="changeit" type="JKS" location="server-truststore.jks"/>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsp:Policy wsu:Id="CustomBinding_OrderProcessorService_SubmitOrder_Input_policy">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                    <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
+                </sp:SignedParts>
+                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                </sp:EncryptedParts>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsp:Policy wsu:Id="CustomBinding_OrderProcessorService_isOnline_Input_policy">
+        <wsp:ExactlyOne>
+            <wsp:All>
+                <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                    <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing"/>
+                    <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing"/>
+                </sp:SignedParts>
+                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                    <sp:Body/>
+                </sp:EncryptedParts>
+            </wsp:All>
+        </wsp:ExactlyOne>
+    </wsp:Policy>
+    <wsdl:import namespace="http://Trade.TraderOrderHost"
+                 location="wsdl0.wsdl"/>
+    <wsdl:types/>
+    <wsdl:binding name="BasicHttpBinding_OrderProcessorService" type="i0:OrderProcessorService">
+        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="SubmitOrder">
+            <soap:operation soapAction="SubmitOrder" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+        <wsdl:operation name="isOnline">
+            <soap:operation soapAction="isOnline" style="document"/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="WSHttpBinding_OrderProcessorService" type="i0:OrderProcessorService">
+        <wsp:PolicyReference URI="#WSHttpBinding_OrderProcessorService_policy"/>
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="SubmitOrder">
+            <soap12:operation soapAction="SubmitOrder" style="document"/>
+            <wsdl:input>
+                <wsp:PolicyReference URI="#WSHttpBinding_OrderProcessorService_SubmitOrder_Input_policy"/>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+        <wsdl:operation name="isOnline">
+            <soap12:operation soapAction="isOnline" style="document"/>
+            <wsdl:input>
+                <wsp:PolicyReference URI="#WSHttpBinding_OrderProcessorService_isOnline_Input_policy"/>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="CustomBinding_OrderProcessorService" type="i0:OrderProcessorService">
+        <wsp:PolicyReference URI="#CustomBinding_OrderProcessorService_policy"/>
+        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="SubmitOrder">
+            <soap12:operation soapAction="SubmitOrder" style="document"/>
+            <wsdl:input>
+                <wsp:PolicyReference URI="#CustomBinding_OrderProcessorService_SubmitOrder_Input_policy"/>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+        <wsdl:operation name="isOnline">
+            <soap12:operation soapAction="isOnline" style="document"/>
+            <wsdl:input>
+                <wsp:PolicyReference URI="#CustomBinding_OrderProcessorService_isOnline_Input_policy"/>
+                <soap12:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="OrderProcessor">
+        <wsdl:port name="BasicHttpBinding_OrderProcessorService" binding="tns:BasicHttpBinding_OrderProcessorService">
+            <soap:address location="http://stocktrader:8000/tradeorderprocessor"/>
+        </wsdl:port>
+        <wsdl:port name="WSHttpBinding_OrderProcessorService" binding="tns:WSHttpBinding_OrderProcessorService">
+            <soap12:address location="http://stocktrader:8000/tradeorderprocessor/msec"/>
+            <wsa10:EndpointReference>
+                <wsa10:Address>http://stocktrader:8000/tradeorderprocessor/msec</wsa10:Address>
+                <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
+                    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
+                        <X509Data>
+                            <X509Certificate>
+                                MIIB8DCCAVmgAwIBAgIQ1ELWkagtIaZA+rGlQ0DB/DANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQDEwdPUFMuQ29tMB4XDTA4MDUyMTA0NDUwMVoXDTM5MTIzMTIzNTk1OVowEjEQMA4GA1UEAxMHT1BTLkNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxwk9moHNb3pwAFdolsVrNRCypa9MAH9NOblGJRW6av93sC5oubfjbzfIgURycVgOYoI/6G3AZijENC//tR8CiNuwfc338j4gGJCYQMKF80f0v+wsOChbWA/jSMmW0XeZ2mtn28kUzZwBN+auK+iUurYmUfZlNCIzLrM49KKqLRMCAwEAAaNHMEUwQwYDVR0BBDwwOoAQGGhusN6c4j/7WSnvieRMbKEUMBIxEDAOBgNVBAMTB09QUy5Db22CENRC1pGoLSGmQPqxpUNAwfwwDQYJKoZIhvcNAQEEBQADgYEAZ8xVxioCvG8t8iCx5Xy7JgUyGVnTgxVhP3+uMGSca0u1wqnfoPethXkykPkCP5ZEYSS5SoBLdCKhn1HqICdTBkR2m0ebo50CoXT1lAy+5MELdzlR8SH9KV6nokwCPAW3RURk1huaDi3FO1oFDVm6146rAByZrG/PjDe3w+MUaHg=
+                            </X509Certificate>
+                        </X509Data>
+                    </KeyInfo>
+                </Identity>
+            </wsa10:EndpointReference>
+        </wsdl:port>
+        <wsdl:port name="CustomBinding_OrderProcessorService" binding="tns:CustomBinding_OrderProcessorService">
+            <soap12:address location="http://stocktrader:8000/tradeorderprocessor/sec"/>
+            <wsa10:EndpointReference>
+                <wsa10:Address>http://stocktrader:8000/tradeorderprocessor/sec</wsa10:Address>
+                <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
+                    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
+                        <X509Data>
+                            <X509Certificate>
+                                MIIB8DCCAVmgAwIBAgIQ1ELWkagtIaZA+rGlQ0DB/DANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQDEwdPUFMuQ29tMB4XDTA4MDUyMTA0NDUwMVoXDTM5MTIzMTIzNTk1OVowEjEQMA4GA1UEAxMHT1BTLkNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxwk9moHNb3pwAFdolsVrNRCypa9MAH9NOblGJRW6av93sC5oubfjbzfIgURycVgOYoI/6G3AZijENC//tR8CiNuwfc338j4gGJCYQMKF80f0v+wsOChbWA/jSMmW0XeZ2mtn28kUzZwBN+auK+iUurYmUfZlNCIzLrM49KKqLRMCAwEAAaNHMEUwQwYDVR0BBDwwOoAQGGhusN6c4j/7WSnvieRMbKEUMBIxEDAOBgNVBAMTB09QUy5Db22CENRC1pGoLSGmQPqxpUNAwfwwDQYJKoZIhvcNAQEEBQADgYEAZ8xVxioCvG8t8iCx5Xy7JgUyGVnTgxVhP3+uMGSca0u1wqnfoPethXkykPkCP5ZEYSS5SoBLdCKhn1HqICdTBkR2m0ebo50CoXT1lAy+5MELdzlR8SH9KV6nokwCPAW3RURk1huaDi3FO1oFDVm6146rAByZrG/PjDe3w+MUaHg=
+                            </X509Certificate>
+                        </X509Data>
+                    </KeyInfo>
+                </Identity>
+            </wsa10:EndpointReference>
+        </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file

Added: incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/build.properties
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/build.properties?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/build.properties (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/build.properties Thu Jun  4 07:04:21 2009
@@ -0,0 +1,6 @@
+debug=false
+keep=true
+verbose=false
+
+service.wsdl=OrderProcessor.wsdl
+service.binding=custom-sei.xml, custom-jaxbbean.xml
\ No newline at end of file

Added: incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/custom-jaxbbean.xml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/custom-jaxbbean.xml?rev=781666&view=auto
==============================================================================
--- incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/custom-jaxbbean.xml (added)
+++ incubator/stonehenge/contrib/stocktrader/metro/order_processor/etc/custom-jaxbbean.xml Thu Jun  4 07:04:21 2009
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+
+<!--
+ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+
+ Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
+
+ The contents of this file are subject to the terms of either the GNU
+ General Public License Version 2 only ("GPL") or the Common Development
+ and Distribution License("CDDL") (collectively, the "License").  You
+ may not use this file except in compliance with the License. You can obtain
+ a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
+ or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
+ language governing permissions and limitations under the License.
+
+ When distributing the software, include this License Header Notice in each
+ file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
+ Sun designates this particular file as subject to the "Classpath" exception
+ as provided by Sun in the GPL Version 2 section of the License file that
+ accompanied this code.  If applicable, add the following below the License
+ Header, with the fields enclosed by brackets [] replaced by your own
+ identifying information: "Portions Copyrighted [year]
+ [name of copyright owner]"
+
+ Contributor(s):
+
+ If you wish your version of this file to be governed by only the CDDL or
+ only the GPL Version 2, indicate your decision by adding "[Contributor]
+ elects to include this software in this distribution under the [CDDL or GPL
+ Version 2] license."  If you don't indicate a single choice of license, a
+ recipient has the option to distribute your version of this file under
+ either the CDDL, the GPL Version 2 or to extend the choice of license to
+ its licensees as provided above.  However, if you add GPL Version 2 code
+ and therefore, elected the GPL Version 2 license, then the option applies
+ only if the new code is made subject to such option by the copyright
+ holder.
+-->
+
+
+<jaxws:bindings
+        xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0"
+        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+        wsdlLocation="wsdl0.wsdl">
+
+    <jaxws:bindings node="wsdl:definitions">
+        <jaxb:bindings node="//xsd:schema">
+            <jaxb:globalBindings generateElementProperty="false">
+				<jaxb:javaType name="java.util.Calendar" xmlType="xsd:dateTime" parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime" printMethod="javax.xml.bind.DatatypeConverter.printDateTime"/>
+				<jaxb:javaType name="java.util.Calendar" xmlType="xsd:date" parseMethod="javax.xml.bind.DatatypeConverter.parseDate" printMethod="javax.xml.bind.DatatypeConverter.printDate"/>
+			</jaxb:globalBindings>
+        </jaxb:bindings>
+    </jaxws:bindings>
+
+</jaxws:bindings>



Mime
View raw message