You are viewing a plain text version of this content. The canonical link for it is here.
Posted to stonehenge-commits@incubator.apache.org by sh...@apache.org on 2009/04/28 03:56:07 UTC

svn commit: r769233 - in /incubator/stonehenge/trunk/stocktrader/php/business_service: business_processor.php business_svc.php

Author: shankar
Date: Tue Apr 28 03:56:06 2009
New Revision: 769233

URL: http://svn.apache.org/viewvc?rev=769233&view=rev
Log:
Fixing the problem of "sell" request from .net client not handled properly.

Modified:
    incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php
    incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php

Modified: incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php?rev=769233&r1=769232&r2=769233&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php (original)
+++ incubator/stonehenge/trunk/stocktrader/php/business_service/business_processor.php Tue Apr 28 03:56:06 2009
@@ -468,7 +468,7 @@
 				if ($order)
 				{
 					processSubmitOrder($order);
-					$response = new sellEnhanced();
+					$response = new sellEnhancedResponse();
 					$response->sellEnhancedReturn = new OrderDataBean();
 					$response->sellEnhancedReturn = $order;
 					$db->CommitTransaction();

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=769233&r1=769232&r2=769233&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php (original)
+++ incubator/stonehenge/trunk/stocktrader/php/business_service/business_svc.php Tue Apr 28 03:56:06 2009
@@ -240,7 +240,12 @@
 	$response = null;
 	if($input)
 	{
-		$response = processSell($input);
+		$response = processSellEnhanced($input);
+		/* response will be of type sellEnhancedResponse. we have 
+		 * to create a response of sellResponse */
+	    $order = $response->sellEnhancedReturn;
+		$response = new sellResponse();
+		$response->sellReturn = $order;
 	}
 	else
 	{