Author: shankar
Date: Wed Feb 11 07:01:36 2009
New Revision: 743249

URL: http://svn.apache.org/viewvc?rev=743249&view=rev
Log:
Fixed service locations and date time formatting bugs

Modified:
    incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php
    
incubator/stonehenge/trunk/stocktrader/php/business_service/data_access_layer.php
    
incubator/stonehenge/trunk/stocktrader/php/business_service/order_processor_proxy.php
    incubator/stonehenge/trunk/stocktrader/php/config_service/config_svc.php
    
incubator/stonehenge/trunk/stocktrader/php/config_service/data_access_layer.php
    
incubator/stonehenge/trunk/stocktrader/php/order_processor/data_access_layer.php
    
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc.php
    
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc_msec.php
    
incubator/stonehenge/trunk/stocktrader/php/resources/conf/configuration_service_config.xml
    incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php
    incubator/stonehenge/trunk/stocktrader/php/trader_client/config.php
    incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php
    incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php
    incubator/stonehenge/trunk/stocktrader/php/trader_client/quotes.php
    
incubator/stonehenge/trunk/stocktrader/php/trader_client/request_processor.php

Modified: 
incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php 
(original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php 
Wed Feb 11 07:01:36 2009
@@ -428,7 +428,7 @@
     "isOnline" => "isOnline");
 
 // create service in WSDL mode
-$service = new WSService(array ("wsdl" =>"wsdl/TradeService.wsdl",
+$service = new WSService(array ("wsdl" =>"../resources/wsdl/TradeService.wsdl",
         "actions" => $actions,
         "classmap" => $class_map,
         "operations" => $operations));

Modified: 
incubator/stonehenge/trunk/stocktrader/php/business_service/data_access_layer.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/business_service/data_access_layer.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/business_service/data_access_layer.php
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/business_service/data_access_layer.php
 Wed Feb 11 07:01:36 2009
@@ -38,7 +38,7 @@
 function GetConnectionInfo()
 {
        $doc = new DOMDocument();
-       $result = $doc->load('./conf/database_config.xml');
+       $result = $doc->load('../resources/conf/database_config.xml');
 
        $server = $doc->getElementsByTagName("server")->item(0)->nodeValue;
        $user = $doc->getElementsByTagName("user")->item(0)->nodeValue;

Modified: 
incubator/stonehenge/trunk/stocktrader/php/business_service/order_processor_proxy.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/business_service/order_processor_proxy.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/business_service/order_processor_proxy.php
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/business_service/order_processor_proxy.php
 Wed Feb 11 07:01:36 2009
@@ -77,7 +77,7 @@
                "BSConfigResponse" => "BSConfigResponse");
 
     // create client in WSDL mode
-    $client = new WSClient(array ("wsdl" =>"wsdl/config_svc.wsdl",
+    $client = new WSClient(array ("wsdl" =>"../resources/wsdl/config_svc.wsdl",
                "classmap" => $class_map, 
                "to" => GetConfigServiceEndpoint()));
 
@@ -108,16 +108,16 @@
                if ($OPSConfig->Sec)
                {
                        //This is the security information
-                       $rec_cert = 
ws_get_key_from_file("./keys/bob_cert.cert");
-                       $pvt_key = ws_get_key_from_file("./keys/alice_key.pem");
-                       $my_cert = 
ws_get_key_from_file("./keys/alice_cert.cert");
-                       $policy_xml = file_get_contents("./conf/policy.xml"); 
+                       $rec_cert = 
ws_get_key_from_file("../resources/keys/bob_cert.cert");
+                       $pvt_key = 
ws_get_key_from_file("../resources/keys/alice_key.pem");
+                       $my_cert = 
ws_get_key_from_file("../resources/keys/alice_cert.cert");
+                       $policy_xml = 
file_get_contents("../resources/conf/policy.xml"); 
                        $policy = new WSPolicy($policy_xml);
                        $sec_token = new 
WSSecurityToken(array("receiverCertificate" => $rec_cert,
                                "privateKey" => $pvt_key,
                                "certificate" => $my_cert));
                        $client = new WSClient(array (
-                                               "wsdl" => 
"wsdl/TradeOrders.wsdl",
+                                               "wsdl" => 
"../resources/wsdl/TradeOrders.wsdl",
                                                "classmap" => $class_map,
                                                "policy" => $policy,
                                                "securityToken" => $sec_token,
@@ -127,7 +127,7 @@
                {
                        // create client in WSDL mode
                        $client = new WSClient(array (
-                                               "wsdl" => 
"wsdl/TradeOrders.wsdl",
+                                               "wsdl" => 
"../resources/wsdl/TradeOrders.wsdl",
                                                "classmap" => $class_map,
                                                "to" => $OPSConfig->OPS));
                }
@@ -147,7 +147,7 @@
 function GetConfigServiceEndpoint()
 {
        $doc = new DOMDocument();
-       $result = $doc->load('./conf/configuration_service_config.xml');
+       $result = 
$doc->load('../resources/conf/configuration_service_config.xml');
        $service = 
                
$doc->getElementsByTagName("config_service")->item(0)->nodeValue;
        

Modified: 
incubator/stonehenge/trunk/stocktrader/php/config_service/config_svc.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/config_service/config_svc.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/config_service/config_svc.php 
(original)
+++ incubator/stonehenge/trunk/stocktrader/php/config_service/config_svc.php 
Wed Feb 11 07:01:36 2009
@@ -650,7 +650,7 @@
        "bindingStyle"=>"doclit", 
        "opParams" => $opParams, 
        "serviceName" => "config_svc",
-       "wsdl" => "wsdl/config_svc.wsdl",
+       "wsdl" => "../resources/wsdl/config_svc.wsdl",
        "classmap" => $classmap));
 
 

Modified: 
incubator/stonehenge/trunk/stocktrader/php/config_service/data_access_layer.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/config_service/data_access_layer.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/config_service/data_access_layer.php 
(original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/config_service/data_access_layer.php 
Wed Feb 11 07:01:36 2009
@@ -43,7 +43,7 @@
 function GetConnectionInfo()
 {
        $doc = new DOMDocument();
-       $result = $doc->load('./conf/database_config.xml');
+       $result = $doc->load('../resources/conf/database_config.xml');
 
        $server = $doc->getElementsByTagName("server")->item(0)->nodeValue;
        $user = $doc->getElementsByTagName("user")->item(0)->nodeValue;

Modified: 
incubator/stonehenge/trunk/stocktrader/php/order_processor/data_access_layer.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/order_processor/data_access_layer.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/order_processor/data_access_layer.php
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/order_processor/data_access_layer.php
 Wed Feb 11 07:01:36 2009
@@ -43,7 +43,7 @@
 function GetConnectionInfo()
 {
        $doc = new DOMDocument();
-       $result = $doc->load('database_config.xml');
+       $result = $doc->load('../resources/conf/database_config.xml');
 
        $server = $doc->getElementsByTagName("server")->item(0)->nodeValue;
        $user = $doc->getElementsByTagName("user")->item(0)->nodeValue;

Modified: 
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc.php
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc.php
 Wed Feb 11 07:01:36 2009
@@ -90,7 +90,7 @@
        "isOnline" => "isOnline");
 
 // create service in WSDL mode
-$service = new WSService(array ("wsdl" =>"./wsdl/TradeOrders.wsdl",
+$service = new WSService(array ("wsdl" =>"../resources/wsdl/TradeOrders.wsdl",
        "operations" => $operations,
     "actions" => $actions,
        "classmap" => $class_map,));

Modified: 
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc_msec.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc_msec.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc_msec.php
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/order_processor/order_processor_svc_msec.php
 Wed Feb 11 07:01:36 2009
@@ -90,13 +90,13 @@
        "isOnline" => "isOnline");
 
 //This is the security information
-$pvt_key = ws_get_key_from_file("./keys/bob_key.pem");
-$policy_xml = file_get_contents("./conf/policy.xml"); 
+$pvt_key = ws_get_key_from_file("../resources/keys/bob_key.pem");
+$policy_xml = file_get_contents("../resources/conf/policy.xml"); 
 $policy = new WSPolicy($policy_xml);
 $sec_token = new WSSecurityToken(array("privateKey" => $pvt_key));
 
 // create service in WSDL mode
-$service = new WSService(array ("wsdl" =>"./wsdl/TradeOrders.wsdl",
+$service = new WSService(array ("wsdl" =>"../resources/wsdl/TradeOrders.wsdl",
        "operations" => $operations,
        "actions" => $actions,
        "policy" => $policy,

Modified: 
incubator/stonehenge/trunk/stocktrader/php/resources/conf/configuration_service_config.xml
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/resources/conf/configuration_service_config.xml?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/resources/conf/configuration_service_config.xml
 (original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/resources/conf/configuration_service_config.xml
 Wed Feb 11 07:01:36 2009
@@ -1,3 +1,3 @@
 <config>
-       
<config_service>http://localhost:8080/config_service/config_svc.php</config_service>
+       
<config_service>http://localhost:8080/php_stocktrader/config_service/config_svc.php</config_service>
 </config>

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php 
(original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/account.php Wed 
Feb 11 07:01:36 2009
@@ -112,12 +112,10 @@
                                        $index = 0;
                                        while 
($getClosedOrdersReturn->OrderDataBean[$index])
                                        {
-                                               $openDate = new 
DateTime($getClosedOrdersReturn->OrderDataBean[$index]->openDate);
-                                               $completionDate =new DateTime( 
$getClosedOrdersReturn->OrderDataBean[$index]->completionDate);
                                                print 
("<tr><td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderID."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderStatus."</td>
-                                                       
<td>".$openDate->format("m/d/Y h:i:s A")."</td>
-                                                       
<td>".$completionDate->format("m/d/Y h:i:s A")."</td>
+                                                       <td>".date("m/d/Y h:i:s 
A", $getClosedOrdersReturn->OrderDataBean[$index]->openDate)."</td>
+                                                       <td>".date("m/d/Y h:i:s 
A", $getClosedOrdersReturn->OrderDataBean[$index]->completionDate)."</td>
                                                        
<td>$".$getClosedOrdersReturn->OrderDataBean[$index]->orderFee."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderType."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->symbol."</td>
@@ -170,12 +168,10 @@
                                        $index = 0;
                                        while 
($ordersReturn->OrderDataBean[$index])
                                        {
-                                               $openDate = new 
DateTime($ordersReturn->OrderDataBean[$index]->openDate);
-                                               $completionDate = new 
DateTime($ordersReturn->OrderDataBean[$index]->completionDate);
                                                print 
("<tr><td>".$ordersReturn->OrderDataBean[$index]->orderID."</td>
                                                        
<td>".$ordersReturn->OrderDataBean[$index]->orderStatus."</td>
-                                                       
<td>".$openDate->format("m/d/Y h:i:s A")."
-                                                       
</td><td>".$completionDate->format("m/d/Y h:i:s A")."</td>
+                                                       <td>".date("m/d/Y h:i:s 
A", $ordersReturn->OrderDataBean[$index]->openDate)."
+                                                       </td><td>".date("m/d/Y 
h:i:s A", $ordersReturn->OrderDataBean[$index]->completionDate)."</td>
                                                        <td 
class=\"currency\">$".$ordersReturn->OrderDataBean[$index]->orderFee."</td>
                                                        
<td>".$ordersReturn->OrderDataBean[$index]->orderType."</td>");
                                                        
@@ -223,15 +219,13 @@
                                        /*Display the account information of a 
the user*/
                                        if ($userAccountDataReturn)     
                                        {
-                                               $creationDate = new 
DateTime($userAccountDataReturn->creationDate);
-                                               $lastLogin = new 
DateTime($userAccountDataReturn->lastLogin);
                                                print("<table align=\"center\" 
class=\"profile-content\" cellspacing=\"0\"><tbody>");
                                                print ("<tr><td 
class=\"left\">Account ID:</td>
                                                        
<td>".$userAccountDataReturn->accountID."</td><td class=\"left\">
-                                                       Account 
Created</td><td>".$creationDate->format("m/d/Y h:i:s A")."</td></tr>");
+                                                       Account 
Created</td><td>".date("m/d/Y h:i:s A", 
$userAccountDataReturn->creationDate)."</td></tr>");
                                                print ("<tr><td 
class=\"left\">User ID:</td>
                                                        
<td>".$userAccountDataReturn->profileID."</td><td class=\"left\">
-                                                       Last 
Login:</td><td>".$lastLogin->format("m/d/Y h:i:s A")."</td></tr>");
+                                                       Last 
Login:</td><td>".date("m/d/Y h:i:s A", 
$userAccountDataReturn->lastLogin)."</td></tr>");
                                                print ("<tr><td 
class=\"left\">Opening Balance:</td>
                                                        
<td>".$userAccountDataReturn->openBalance."</td>
                                                        <td 
class=\"left\">Total Logins:</td>

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/config.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/config.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/config.php 
(original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/config.php Wed Feb 
11 07:01:36 2009
@@ -92,7 +92,7 @@
                <table>
                <tr>
                <td>Configuration Service</td>
-               <td><input type="text" name = "ENDPOINT" value = <?php if 
(GetEndpoint() == "") print 
("http://localhost:8080/config_service/config_svc.php";); else 
print(GetEndpoint());?> size = "75"/></td>
+               <td><input type="text" name = "ENDPOINT" value = <?php if 
(GetEndpoint() == "") print 
("http://localhost:8080/php_stocktrader/config_service/config_svc.php";); else 
print(GetEndpoint());?> size = "75"/></td>
                </tr>
                <tr>
                <td></td>

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php (original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/home.php Wed Feb 
11 07:01:36 2009
@@ -110,17 +110,15 @@
                                                <?php
                                                        if($accountDataReturn)
                                                        {
-                                                               $creationDate = 
new DateTime($accountDataReturn->creationDate);
-                                                               $lastLogin = 
new DateTime($accountDataReturn->lastLogin);
                                                                print 
("<tbody>");
                                                                print ("<tr><td 
class=\"left\">Account ID:</td>
                                                                        
<td>".($accountDataReturn->accountID)."</td></tr>");
                                                                print ("<tr><td 
class=\"left\">Account Created:</td>
-                                                                       
<td>".$creationDate->format("m/d/Y h:i:s A")."</td></tr>");
+                                                                       
<td>".date("m/d/Y h:i:s A", $accountDataReturn->creationDate)."</td></tr>");
                                                                print ("<tr><td 
class=\"left\">Total Logins:</td>
                                                                        
<td>".$accountDataReturn->loginCount."</td></tr>");
                                                                print ("<tr><td 
class=\"left\">Session Created:</td>
-                                                                       
<td>".$lastLogin->format("m/d/Y h:i:s A")."</td></tr>");
+                                                                       
<td>".date("m/d/Y h:i:s A", $accountDataReturn->lastLogin)."</td></tr>");
                                                                print 
("</tbody>");
                                                        }
                                                ?>

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php 
(original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/portfolio.php Wed 
Feb 11 07:01:36 2009
@@ -90,12 +90,10 @@
                                        $index = 0;
                                        while 
($getClosedOrdersReturn->OrderDataBean[$index])
                                        {
-                                               $openDate = new 
DateTime($getClosedOrdersReturn->OrderDataBean[$index]->openDate);
-                                               $completionDate = new 
DateTime($getClosedOrdersReturn->OrderDataBean[$index]->completionDate);
                                                print 
("<tr><td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderID."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderStatus."</td>
-                                                       
<td>".$openDate->format("m/d/Y h:i:s A")."</td>
-                                                       
<td>".$completionDate->format("m/d/Y h:i:s A")."</td>
+                                                       <td>".date("m/d/Y h:i:s 
A", $getClosedOrdersReturn->OrderDataBean[$index]->openDate)."</td>
+                                                       <td>".date("m/d/Y h:i:s 
A", $getClosedOrdersReturn->OrderDataBean[$index]->completionDate)."</td>
                                                        
<td>$".$getClosedOrdersReturn->OrderDataBean[$index]->orderFee."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderType."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->symbol."</td>
@@ -138,8 +136,7 @@
                                                $marketValue = $marketValue + 
($quoteInfo[$bean->quoteID]) * ($bean->quantity); 
                                                $gain = 
($quoteInfo[$bean->quoteID] - $bean->purchasePrice) * ($bean->quantity);
 
-                                               $dateTime = new 
DateTime($bean->purchaseDate);
-                                               
print("<tr><td>".$bean->holdingID."</td><td><nobr>".$dateTime->format("m/d/Y 
h:i:s A")."</nobr></td><td>
+                                               
print("<tr><td>".$bean->holdingID."</td><td><nobr>".date("m/d/Y h:i:s A", 
$bean->purchaseDate)."</nobr></td><td>
                                                        <form 
action=\"quotes.php\" method=\"post\">
                                                        <input type=\"hidden\" 
name=\"SYMBOLS\" value=\"".$bean->quoteID."\"/>  
                                                        <input type=\"submit\" 
name=\"GETQUOTE\" value=\"".$bean->quoteID."\"></input>

Modified: incubator/stonehenge/trunk/stocktrader/php/trader_client/quotes.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/quotes.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/trader_client/quotes.php 
(original)
+++ incubator/stonehenge/trunk/stocktrader/php/trader_client/quotes.php Wed Feb 
11 07:01:36 2009
@@ -143,12 +143,10 @@
                                        $index = 0;
                                        while 
($getClosedOrdersReturn->OrderDataBean[$index])
                                        {
-                                               $openDate = new 
DateTime($getClosedOrdersReturn->OrderDataBean[$index]->openDate);
-                                               $completionDate = new 
DateTime($getClosedOrdersReturn->OrderDataBean[$index]->completionDate);
                                                print 
("<tr><td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderID."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderStatus."</td>
-                                                       
<td>".$openDate->format("m/d/Y h:i:s A")."</td>
-                                                       
<td>".$completionDate->format("m/d/Y h:i:s A")."</td>
+                                                       <td>".date("m/d/Y h:i:s 
A", $getClosedOrdersReturn->OrderDataBean[$index]->openDate)."</td>
+                                                       <td>".date("m/d/Y h:i:s 
A", $getClosedOrdersReturn->OrderDataBean[$index]->completionDate)."</td>
                                                        
<td>$".$getClosedOrdersReturn->OrderDataBean[$index]->orderFee."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->orderType."</td>
                                                        
<td>".$getClosedOrdersReturn->OrderDataBean[$index]->symbol."</td>
@@ -176,17 +174,15 @@
 
                                        if ($isBuy == TRUE)
                                        {
-                                               $dateTime = new 
DateTime($buyReturn->openDate);
                                                print 
("<tr><td>".$buyReturn->orderID."</td><td>".$buyReturn->orderStatus.
-                                                       
"</td><td>".$dateTime->format("m/d/Y h:i:s A")."</td><td>Pending".
+                                                       "</td><td>".date("m/d/Y 
h:i:s A", $buyReturn->openDate)."</td><td>Pending".
                                                        
"</td><td>$".$buyReturn->orderFee."</td><td>".$buyReturn->orderType.
                                                        
"</td><td>".$buyReturn->symbol."</td><td>".$buyReturn->quantity."</td></tr>");
                                        }
                                        else if ($isSell == TRUE)
                                        {
-                                               $dateTime = new 
DateTime($sellEnhancedReturn->openDate);
                                                print 
("<tr><td>".$sellEnhancedReturn->orderID."</td><td>".$sellEnhancedReturn->orderStatus.
-                                                       
"</td><td>".$dateTime->format("m/d/Y h:i:s A")."</td><td>Pending".
+                                                       "</td><td>".date("m/d/Y 
h:i:s A", $sellEnhancedReturn->openDate)."</td><td>Pending".
                                                        
"</td><td>$".$sellEnhancedReturn->orderFee."</td><td>".$sellEnhancedReturn->orderType.
                                                        
"</td><td>".$sellEnhancedReturn->symbol."</td><td>".$sellEnhancedReturn->quantity."</td></tr>");
                                        }

Modified: 
incubator/stonehenge/trunk/stocktrader/php/trader_client/request_processor.php
URL: 
http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/trader_client/request_processor.php?rev=743249&r1=743248&r2=743249&view=diff
==============================================================================
--- 
incubator/stonehenge/trunk/stocktrader/php/trader_client/request_processor.php 
(original)
+++ 
incubator/stonehenge/trunk/stocktrader/php/trader_client/request_processor.php 
Wed Feb 11 07:01:36 2009
@@ -24,7 +24,7 @@
 define ("ORDER_TYPE_SELL", "sell");
 define ("COOKIE_USERNAME", "username");
 define ("COOKIE_ENDPOINT", "endpoint");
-define ("DEFAULT_ENDPOINT", 
"http://localhost:80/TradeServiceWcf/TradeServiceWcf.svc";);
+define ("DEFAULT_ENDPOINT", 
"http://localhost:8080/php_stocktrader/config_service/config_svc.php";);
 define ("CLIENT_NAME", "PHP_CLIENT");
 
 /*this will set the default end point if end point is NOT already set.*/
@@ -521,7 +521,7 @@
                "ClientConfigResponse" => "ClientConfigResponse");
 
     // create client in WSDL mode
-    $client = new WSClient(array ("wsdl" =>"wsdl/config_svc.wsdl",
+    $client = new WSClient(array ("wsdl" =>"../resources/wsdl/config_svc.wsdl",
                "classmap" => $class_map, 
                "to" => GetEndpoint()));
 
@@ -799,7 +799,7 @@
                "sellEnhanced", "sellEnhancedResponse" => 
"sellEnhancedResponse", 
                "isOnline" => "isOnline", "isOnlineResponse" => 
"isOnlineResponse");
 
-       $client = new WSClient(array ("wsdl" =>"wsdl/TradeServiceWcf.svc.wsdl",
+       $client = new WSClient(array ("wsdl" 
=>"../resources/wsdl/TradeService.wsdl",
                        "classmap" => $class_map,
                        "to" => GetBSEndPoint()));
                //We can set this port through tcpmon


Reply via email to