Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 44647 invoked from network); 2 Jun 2009 22:30:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 22:30:18 -0000 Received: (qmail 81562 invoked by uid 500); 2 Jun 2009 22:30:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 81458 invoked by uid 500); 2 Jun 2009 22:30:30 -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 81449 invoked by uid 99); 2 Jun 2009 22:30:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 22:30:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Tue, 02 Jun 2009 22:30:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A8441234C052 for ; Tue, 2 Jun 2009 15:30:07 -0700 (PDT) Message-ID: <1956172612.1243981807688.JavaMail.jira@brutus> Date: Tue, 2 Jun 2009 15:30:07 -0700 (PDT) From: "Andreas Veithen (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4353) ServiceClient can not resolve WSDL with imported schemas In-Reply-To: <1199172688.1243377405622.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715724#action_12715724 ] Andreas Veithen commented on AXIS2-4353: ---------------------------------------- The original version of DefaultURIResolver delegated the entity resolution to the getURL method (in the same class). In your case this means that it used java.net.URL to do the resolution. > ServiceClient can not resolve WSDL with imported schemas > -------------------------------------------------------- > > Key: AXIS2-4353 > URL: https://issues.apache.org/jira/browse/AXIS2-4353 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: client-api > Affects Versions: 1.4.1, 1.4 > Environment: all > Reporter: Ben Reif > Assignee: Andreas Veithen > Priority: Blocker > Attachments: ResolveXSDTestCase.zip > > > I am using the ServiceClient to invoke a Web Service, but the WSDL file and imported schema files are located within a jar file that is in the Classpth. I can get the Definition object, and I set the DocumentBaseURI to the proper URL pointing inside the jar file, but when I pass it to the ServiceClient I get an error saying that it can't resolve the imported schema files. This happens when it calls AxisService.createClientSideAxisService(). > It looks like a fix was put in the WSDLToAxisServiceBuilder class (the addition of the setCustomResolver() method) so that you can set a custom URIResolver to resolve imported schema files. This gets inherited by the WSDL11ToAxisServiceBuilder, however the problem is that this setter is not exposed to the ServiceClient, so I can never use it. The ServiceClient constructors and the AxisService.createClientSideAxisService() methods should take in an additional argument so that calling code can pass in the right URIResolver instance which would get set on the WSDL11ToAxisServiceBuilder instance. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.