Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 82362 invoked from network); 18 Dec 2006 11:00:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 11:00:50 -0000 Received: (qmail 25469 invoked by uid 500); 18 Dec 2006 11:00:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 25396 invoked by uid 500); 18 Dec 2006 11:00:51 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 25373 invoked by uid 99); 18 Dec 2006 11:00:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 03:00:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [192.6.10.2] (HELO colossus.hpl.hp.com) (192.6.10.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 03:00:40 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by colossus.hpl.hp.com (Postfix) with ESMTP id 9611B6B9CD for ; Mon, 18 Dec 2006 11:00:06 +0000 (GMT) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from colossus.hpl.hp.com ([127.0.0.1]) by localhost (colossus.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OzEXYW1pvDWG for ; Mon, 18 Dec 2006 11:00:03 +0000 (GMT) Received: from ha-node-br1.hpl.hp.com (ha-node-br1.hpl.hp.com [16.25.144.56]) by colossus.hpl.hp.com (Postfix) with ESMTP id CD8176B9D0 for ; Mon, 18 Dec 2006 11:00:02 +0000 (GMT) Received: from [16.25.171.182] (chamonix.hpl.hp.com [16.25.171.182]) by ha-node-br1.hpl.hp.com (8.13.4/8.13.4) with ESMTP id kBIAxqfk021395 for ; Mon, 18 Dec 2006 10:59:52 GMT Message-ID: <458674F3.2010305@apache.org> Date: Mon, 18 Dec 2006 11:01:07 +0000 From: Steve Loughran User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Ant Users List Subject: Re: Using xmlcatalog in schema-validation References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org Caleandro wrote: > Hi Ant users, > > I need to validate a Soap-message against a compound schema, (yes!, a very > common problem today ;-). > I need to map two components of the schema (of soap-body part) with other > resources with respect of those declared in the including schema. > > Something like this: > > main schema: > > > targetNamespace="http://www.svimservice.it/Schemas/PDD_SISR/SCATEL/" > xmlns="http://www.svimservice.it/Schemas/PDD_SISR/SCATEL/" > elementFormDefault="qualified" attributeFormDefault="unqualified"> > (shared > common components) > (of same > target-namespace) > "yyy_getMedicoDiBaseResponse"> > ..... > > for example: the '/SVIM_Schemas/custom_types.xsd' need to be mapped to > 'D:/other_directory/custom_types.xsd. > > I tried using this "xmlcatalog" (that seems correctly parsed during ant > task): > > > > > > uri="D:/other_directory/custom_types.xsd" /> > uri="D:/other_directory/soapFault.xsd" /> > > > The envelope and main body-part schema were normally added, but the ant > debug messages I got, were always the same (both for 1.6.5 and 1.7.0 > versions and for xmlvalidate or schemavalidate tasks) : > ... > resolveEntity: 'null': 'file:/SVIM_Schemas/custom_types.xsd']]> > No matching catalog entry found, parser will use: > 'file:/SVIM_Schemas/custom_types.xsd']]> > resolveEntity: 'null': 'file:/SVIM_Schemas/soapFault.xsd']]> > No matching catalog entry found, parser will use: > 'file:/SVIM_Schemas/soapFault.xsd']]> > ... > > Where I do the error? > > Thanks to anyone who can help me. I dont know about catalogs, but the code I use to validate SOAP messages is here: http://deployment.cvs.sourceforge.net/deployment/deployment/build.xml?view=markup Works pretty well --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org