From stonehenge-commits-return-291-apmail-incubator-stonehenge-commits-archive=incubator.apache.org@incubator.apache.org Tue Apr 28 03:56:30 2009 Return-Path: Delivered-To: apmail-incubator-stonehenge-commits-archive@minotaur.apache.org Received: (qmail 51016 invoked from network); 28 Apr 2009 03:56:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Apr 2009 03:56:30 -0000 Received: (qmail 77075 invoked by uid 500); 28 Apr 2009 03:56:30 -0000 Delivered-To: apmail-incubator-stonehenge-commits-archive@incubator.apache.org Received: (qmail 77044 invoked by uid 500); 28 Apr 2009 03:56:30 -0000 Mailing-List: contact stonehenge-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stonehenge-dev@incubator.apache.org Delivered-To: mailing list stonehenge-commits@incubator.apache.org Received: (qmail 77034 invoked by uid 99); 28 Apr 2009 03:56:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 03:56:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 03:56:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B0A80238896C; Tue, 28 Apr 2009 03:56:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r769233 - in /incubator/stonehenge/trunk/stocktrader/php/business_service: business_processor.php business_svc.php Date: Tue, 28 Apr 2009 03:56:07 -0000 To: stonehenge-commits@incubator.apache.org From: shankar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090428035607.B0A80238896C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 {