Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 64526 invoked from network); 7 Dec 2006 08:31:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 08:31:13 -0000 Received: (qmail 63695 invoked by uid 500); 7 Dec 2006 08:31:20 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 63582 invoked by uid 500); 7 Dec 2006 08:31:20 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 63559 invoked by uid 500); 7 Dec 2006 08:31:20 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 63556 invoked by uid 99); 7 Dec 2006 08:31:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 00:31:20 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 00:30:45 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id BFF9D1A9846; Thu, 7 Dec 2006 00:29:40 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r483371 - in /webservices/axis2/branches/java/WSDL_2_0/modules: codegen/src/org/apache/axis2/wsdl/codegen/emitter/ codegen/src/org/apache/axis2/wsdl/template/java/ kernel/src/org/apache/axis2/client/ Date: Thu, 07 Dec 2006 08:29:39 -0000 To: axis2-cvs@ws.apache.org From: amilas@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061207082940.BFF9D1A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: amilas Date: Thu Dec 7 00:29:38 2006 New Revision: 483371 URL: http://svn.apache.org/viewvc?view=rev&rev=483371 Log: set http option parameters to operational client in the generated stub. Modified: webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/client/Stub.java Modified: webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?view=diff&rev=483371&r1=483370&r2=483371 ============================================================================== --- webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java (original) +++ webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java Thu Dec 7 00:29:38 2006 @@ -605,7 +605,7 @@ doc.appendChild(rootElement); ////////////////////////////////////////////////////////// - System.out.println(DOM2Writer.nodeToString(rootElement)); +// System.out.println(DOM2Writer.nodeToString(rootElement)); //////////////////////////////////////////////////////////// return doc; } Modified: webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?view=diff&rev=483371&r1=483370&r2=483371 ============================================================================== --- webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl (original) +++ webservices/axis2/branches/java/WSDL_2_0/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl Thu Dec 7 00:29:38 2006 @@ -272,6 +272,11 @@ setAppendAddressToEPR(_operationClient,""); + + + addPropertyToOperationClient(_operationClient,,); + + // create a message context org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext(); @@ -511,6 +516,11 @@ setAppendAddressToEPR(_operationClient,""); + + + addPropertyToOperationClient(_operationClient,,); + + // create SOAP envelope with that payload @@ -687,6 +697,11 @@ setAppendAddressToEPR(_operationClient,""); + + + addPropertyToOperationClient(_operationClient,,); + + _operationClient.getOptions().setAction(""); org.apache.axiom.soap.SOAPEnvelope env = null; org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext(); @@ -834,7 +849,7 @@ - + /** * A utility method that copies the namepaces from the SOAPEnvelope */ Modified: webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/client/Stub.java URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/client/Stub.java?view=diff&rev=483371&r1=483370&r2=483371 ============================================================================== --- webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/client/Stub.java (original) +++ webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/client/Stub.java Thu Dec 7 00:29:38 2006 @@ -192,4 +192,31 @@ messageContext.setProperty(HTTPConstants.HTTP_HEADERS, headers); } + /** + * sets the propertykey and propertyValue as a pair to operation client + * @param operationClient + * @param propertyKey + * @param propertyValue + */ + + protected void addPropertyToOperationClient(OperationClient operationClient, + String propertyKey, + Object propertyValue){ + Options options = new Options(); + options.setProperty(propertyKey,propertyValue); + operationClient.setOptions(options); + } + + protected void addPropertyToOperationClient(OperationClient operationClient, + String propertyKey, + boolean value){ + addPropertyToOperationClient(operationClient,propertyKey,new Boolean(value)); + } + + protected void addPropertyToOperationClient(OperationClient operationClient, + String propertyKey, + int value){ + addPropertyToOperationClient(operationClient,propertyKey,new Integer(value)); + } + } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org