- From: John Kaputin <KAPUTIN@uk.ibm.com>
- Date: Tue, 29 Nov 2005 11:24:23 +0000
- To: Arthur Ryman <ryman@ca.ibm.com>
- Cc: www-ws-desc@w3.org
- Message-ID: <OFB3BFE467.79B2DCBC-ON802570C8.003E7FA4-802570C8.003EA889@uk.ibm.com>
Thanks Arthur, I'll look into the Apache xml-commons resolver for adding XML catalog support to the Woden processor. +1 to your other comments. John Kaputin Arthur Ryman/Toronto/IBM@IBMCA 28/11/2005 23:15 To www-ws-desc@w3.org, John Kaputin/UK/IBM@IBMGB cc Subject Fw: WSDL 2.0 test case problems - unknown host & schema visibility John, I created a local copy of the resSvc.xsd schema and added an XML catalog to point to it. A WSDL processor should support XML catalogs. The other problem you cited isn't a problem. The WSDL file doesn;t need the extra xs:import because it doesn't directly reference QNames from that namespace. Arthur Ryman, IBM Software Group, Rational Division blog: http://ryman.eclipsedevelopersjournal.com/ phone: +1-905-413-3077, TL 969-3077 assistant: +1-905-413-2411, TL 969-2411 fax: +1-905-413-4920, TL 969-4920 mobile: +1-416-939-5063, text: 4169395063@fido.ca ----- Forwarded by Arthur Ryman/Toronto/IBM on 11/28/2005 06:11 PM ----- Arthur Ryman/Toronto/IBM@IBMCA Sent by: www-ws-desc-request@w3.org 09/26/2005 06:04 PM To John Kaputin <KAPUTIN@uk.ibm.com> cc www-ws-desc@w3.org, www-ws-desc-request@w3.org Subject Re: WSDL 2.0 test case problems - unknown host & schema visibility John, Thx. That test case was extracted verbattim from our Primer. I think I'll add an XML catalog and local copies of any referenced schema. Any WSDL processor should support a URI resolver that uses an XML catalog. There is one of those in the Apache commons project. Would that work for you? Arthur Ryman, IBM Software Group, Rational Division blog: http://ryman.eclipsedevelopersjournal.com/ phone: +1-905-413-3077, TL 969-3077 assistant: +1-905-413-2411, TL 969-2411 fax: +1-905-413-4920, TL 969-4920 mobile: +1-416-939-5063, text: 4169395063@fido.ca John Kaputin <KAPUTIN@uk.ibm.com> Sent by: www-ws-desc-request@w3.org 09/23/2005 05:17 AM To www-ws-desc@w3.org cc Subject WSDL 2.0 test case problems - unknown host & schema visibility This WSDL test case has element references that are prefixed with a namespace that is schema imported within <types>, however the schemaLocation URL cannot be resolved (java.net.UnknownHostException: greath.example.com). A wsdl processor might use a catalog to resolve such a host name, but I guess that's not the objective of this test case. See: http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/CreditCardFaults-1G/use-credit-card-faults.wsdl <types> <xs:import namespace="http://greath.example.com/2004/schemas/resSvc" schemaLocation="http://greath.example.com/2004/schemas/resSvc.xsd" /> </types> I think there is another problem too. This wsdl imports another wsdl document containing a schema import of "credit-card-faults.xsd". That schema should not be visible to the top level wsdl, unless it imports the schema directly in its <types> element (i.e. if WSDL B xs:imports Schema X and WSDL A wsdl:imports WSDL B, Schema X is not visible to WSDL A. WSDL A must xs:import Schema X directly). However in this test case, the top level wsdl does have element references to that schema's namespace. For this test case to work, I think the top level schema needs to xs:import "credit-card-faults.xsd" in its <types> element. John Kaputin
Received on Tuesday, 29 November 2005 11:24:43 UTC