Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 5022 invoked from network); 19 May 2007 03:18:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2007 03:18:39 -0000 Received: (qmail 70443 invoked by uid 500); 19 May 2007 03:18:44 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 69955 invoked by uid 500); 19 May 2007 03:18:43 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 69940 invoked by uid 99); 19 May 2007 03:18:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 20:18:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2007 20:18:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B6AC714065 for ; Fri, 18 May 2007 20:18:16 -0700 (PDT) Message-ID: <5123374.1179544696146.JavaMail.jira@brutus> Date: Fri, 18 May 2007 20:18:16 -0700 (PDT) From: "Lin Sun (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-3164) Axis2: support bindingtype overwrite from wsdl to annotation In-Reply-To: <3493511.1179348736346.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lin Sun updated GERONIMO-3164: ------------------------------ Attachment: G3164.patch Will test a bit more on the patch on Monday before commit it... I tried different approaches before coming up with this patch - 1) tried to use what Axis2 uses to get bindingtype from serviceDescription, but that didn't work as the validation failed during the creation of createServiceDescriptionFromDBCMap. And serviceDescriptionImpl's constructor is not public so I cannot create my own serviceDescription in geronimo. 2) Tried to use getType from AxisBinding which can be obtained from AxisService, but that shows the transporturi not really the bindingtype I need. 3) Tried to see how Axis2 set the bindingtype from wsdl when there is no binding specified in annotation and find out it just defaults to the default binding type which is SOAP11HTTP_BINDING. Lin > Axis2: support bindingtype overwrite from wsdl to annotation > ------------------------------------------------------------ > > Key: GERONIMO-3164 > URL: https://issues.apache.org/jira/browse/GERONIMO-3164 > Project: Geronimo > Issue Type: Improvement > Security Level: public(Regular issues) > Components: webservices > Affects Versions: 2.0-M6 > Environment: Win XP + Sun 1.5 SDK > Reporter: Lin Sun > Assigned To: Lin Sun > Fix For: 2.0-M6 > > Attachments: G3164.patch > > > If a user has a jax-ws module that has different bindingtype in wsdl and webservice annotation, the deployment of the module would fail but it doesn't pass the axis2 validation - > The service J2EEApplication=XXXX did not start because Throwable during start of gbean: > java.lang.RuntimeException: javax.xml.ws.WebServiceException: The ServiceDescription failed to validate due to the following errors: > :: Endpoint failed validation :: :: Invalid binding; wsdl = http://schemas.xmlsoap.org/wsdl/soap/, annotation = http://www.w3.org/2004/08/wsdl/http -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.