incubator-stonehenge-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r767923 - /incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java
Date Thu, 23 Apr 2009 13:56:53 GMT
Author: shankar
Date: Thu Apr 23 13:56:52 2009
New Revision: 767923

URL: http://svn.apache.org/viewvc?rev=767923&view=rev
Log:
changing the security request to SOAP12

Modified:
    incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java

Modified: incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java?rev=767923&r1=767922&r2=767923&view=diff
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java
(original)
+++ incubator/stonehenge/trunk/stocktrader/wsas/business_service/src/org/apache/stonehenge/stocktrader/services/TradeOrderServiceClient.java
Thu Apr 23 13:56:52 2009
@@ -21,6 +21,7 @@
 import java.io.InputStream;
 import java.util.Properties;
 
+import org.apache.axiom.soap.SOAP12Constants; 
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.client.ServiceClient;
 import org.apache.axis2.context.MessageContext;
@@ -63,11 +64,13 @@
 		TradeOrderConfig config = geTradeOrderConfig();
 		OrderProcessorStub stub = new OrderProcessorStub(config
 				.getEndpointURL());
+		ServiceClient serviceClient = stub._getServiceClient();
+		serviceClient.getOptions().setProperty(HTTPConstants.CHUNKED,  Boolean.FALSE);
 		if (config.isSecure()) {
 			enableSecurity(stub);
+			serviceClient.getOptions().setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);

 		}
-		ServiceClient serviceClient = stub._getServiceClient();
-		serviceClient.getOptions().setProperty(HTTPConstants.CHUNKED,  Boolean.FALSE);
+		
 		SubmitOrder param = new SubmitOrder();
 		param.setOrder(order);
 		stub.submitOrder(param);



Mime
View raw message