Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36774 invoked from network); 1 Jun 2009 14:36:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jun 2009 14:36:31 -0000 Received: (qmail 67244 invoked by uid 500); 1 Jun 2009 14:36:33 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 66966 invoked by uid 500); 1 Jun 2009 14:36:32 -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 66616 invoked by uid 99); 1 Jun 2009 14:33:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2009 14:33:32 +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; Mon, 01 Jun 2009 14:33:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6BCAC234C04C for ; Mon, 1 Jun 2009 07:33:07 -0700 (PDT) Message-ID: <225751254.1243866787440.JavaMail.jira@brutus> Date: Mon, 1 Jun 2009 07:33:07 -0700 (PDT) From: "Ben Reif (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=12715099#action_12715099 ] Ben Reif commented on AXIS2-4353: --------------------------------- Thanks for the input, I agree that would be a better solution. I'm not sure if my suggested fix is anything like what the original version of that Class used to look like. Do you have any suggested fixes? It might be quite some time until we take another version of Axis2 or WS-Commons, so I just want to try to chage the code so that it's as close as possible to what the the real fix would be. > 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.