Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26954 invoked from network); 4 Jul 2008 11:30:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 11:30:18 -0000 Received: (qmail 89746 invoked by uid 500); 4 Jul 2008 11:30:13 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 89703 invoked by uid 500); 4 Jul 2008 11:30:12 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 89692 invoked by uid 99); 4 Jul 2008 11:30:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 04:30:12 -0700 X-ASF-Spam-Status: No, hits=-1997.3 required=10.0 tests=ALL_TRUSTED,WHOIS_CONTACTPRIV X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 11:29:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 78DCC234C150 for ; Fri, 4 Jul 2008 04:29:38 -0700 (PDT) Message-ID: <1475024138.1215170978486.JavaMail.jira@brutus> Date: Fri, 4 Jul 2008 04:29:38 -0700 (PDT) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-2756) problem to display the WSDL in a browser in Axis2.1.2 In-Reply-To: <6455899.1180710135649.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/AXIS2-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepal Jayasinghe resolved AXIS2-2756. -------------------------------------- Resolution: Fixed > problem to display the WSDL in a browser in Axis2.1.2 > ----------------------------------------------------- > > Key: AXIS2-2756 > URL: https://issues.apache.org/jira/browse/AXIS2-2756 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: deployment > Affects Versions: 1.2 > Reporter: Stephane Roy > Assignee: Deepal Jayasinghe > Priority: Critical > Attachments: stockquote.wsdl, stockquoteservice.wsdl, stockquoteservice2.wsdl > > > I noticed a problem with the latest release of Axis2 (2.1.2). > Once the code is generated, compiled and deployed for the server part, I try to display the related WSDL in my browser, by clicking on the line of my service in the http://localhost:8080/axis2/services/listServices page. > The page http://localhost:8080/axis2/services/?wsdl opens with an error: > org.apache.axis2.AxisFault: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://www.xxx.com/yyy/myService'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method. > org.apache.axis2.description.AxisService.printWSDL(AxisService.java:850) > org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:221) > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:225) > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > In Axis2.1.1.1, with the same WSDL, it worked fine. > In Axis2.1.2, I tried to generate the code in adb mode, then in xmlbeans mode but I have the same problem. > After analysis, I found a scenario to reproduce the problem. > Our web service is defined with a WSDL divided in three parts. First we have a concrete WSDL (defining the Service and the Binding). This WSDL imports an abstract WSDL (defining the PortType and the Messages). Finally the abstract WSDL imports a XSD Schema (defining the Types). > I found out that the WSDL cannot be displayed in my browser because there is a conflict between two prefixes: > In the concrete WSDL, we defined the prefix 'tns' for our namespace. The prefix 'tns' is also used in the abstract WSDL for another namespace. > With Axis2.1.2, this situation prevents the WSDL to be displayed in the browser, whereas with Axis2.1.1.1, everything works fine. > I change one of the occurrences of the prefix 'tns' to 'tns2' and then Axis2.1.2 can display the WSDL in the browser, just fine. > It seems that this is a regression of Axis2.1.2. > Thanks in advance. > PS: This problem has been submitted to the User mailing list: > http://marc.info/?l=axis-user&m=117915706112761&w=2 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org