Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 80040 invoked from network); 3 Mar 2005 12:10:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 12:10:12 -0000 Received: (qmail 6925 invoked by uid 500); 3 Mar 2005 12:10:12 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 6811 invoked by uid 500); 3 Mar 2005 12:10:11 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 6797 invoked by uid 99); 3 Mar 2005 12:10:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 04:10:10 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j23CA7Of031937 for ; Thu, 3 Mar 2005 13:10:07 +0100 Message-ID: <1488055919.1109851807015.JavaMail.jira@ajax.apache.org> Date: Thu, 3 Mar 2005 13:10:07 +0100 (CET) From: "Samisa Abeysinghe (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXISCPP-499) No soapaction means handlers can't be called In-Reply-To: <256829825.1109849148437.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXISCPP-499?page=comments#action_60111 ] Samisa Abeysinghe commented on AXISCPP-499: ------------------------------------------- What if we update the generated code (that is WSDL2Ws tool) so that if SOAP Action is already set, we do not set one. But if it has not been set at stub level then the generated code sets it. This way we give the user more flexibility of changing soap action despite it being set to the default by generated code. > No soapaction means handlers can't be called > -------------------------------------------- > > Key: AXISCPP-499 > URL: http://issues.apache.org/jira/browse/AXISCPP-499 > Project: Axis-C++ > Type: Bug > Components: Handlers > Reporter: Mark Whitlock > Assignee: Mark Whitlock > > The Axis C++ server requires that the soapaction is always set. However other servers do not require that soapaction is set since soapaction is optional. Service handlers are called based on the soapaction so having no soapaction means that no service handlers can be configured in the WSDD. The soapaction is set in the WSDL and WSDL2Ws generates a call to Call::setTransportProperty to set the soapaction, even if the soapaction is not set in the WSDL. This generated call to Call::setTransportProperty will override any previous soapaction transport property that the user has previously set up. > So if the server doesn't require a soapaction, the wsdl won't contain a soapaction, but the user may want to call a handler, so the client application sets up a soapaction programmatically. Now the generated code will wipe out the soapaction and no handler will be called. > There are several possible fixes... > - ask the user to change their generated code to update the soapaction. > - change setTransportProperty so that it doesn't override the properties if they are already set > - make WSDL2Ws not generate a call to setTransportProperty if the soapaction is not set in the WSDL. > I propose to fix this problem by the 3rd option - fix WSDL2Ws since it seems the most benign. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira