[JBoss JIRA] Reopened: (JBWS-751) Multiple schema imports with the same namespace
by Thomas Diesler (JIRA)
[ http://jira.jboss.com/jira/browse/JBWS-751?page=all ]
Thomas Diesler reopened JBWS-751:
---------------------------------
Assignee: Thomas Diesler
Please cleanup the associated FIXME.
> Multiple schema imports with the same namespace
> -----------------------------------------------
>
> Key: JBWS-751
> URL: http://jira.jboss.com/jira/browse/JBWS-751
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: tools-jaxrpc
> Reporter: Thomas Diesler
> Assigned To: Thomas Diesler
>
> <types>
> <xs:schema>
> <xs:import namespace="uri:tranHistory" schemaLocation="TransactionHistoryRq.xsd"/>
> <xs:import namespace="uri:tranHistory" schemaLocation="TransactionHistoryRs.xsd"/>
> <xs:import namespace="uri:tranHistory" schemaLocation="StatusRs.xsd"/>
> </xs:schema>
> </types>
> Current handling of schema imports is incorrect, since it does not allow for multiple imports with the same namespace.
> private void handleSchemaImports(Element schemaEl, URL wsdlLoc) throws MalformedURLException
> {
> if (wsdlLoc == null)
> throw new IllegalArgumentException("Cannot process import, parent location not set");
>
> Iterator it = DOMUtils.getChildElements(schemaEl, new QName(Constants.NS_SCHEMA_XSD, "import"));
> while (it.hasNext())
> {
> Element includeEl = (Element)it.next();
> String schemaLocation = includeEl.getAttribute("schemaLocation");
> String namespace = includeEl.getAttribute("namespace");
>
> log.trace("handleSchemaImport: [namespace=" + namespace + ",schemaLocation=" + schemaLocation + "]");
>
> // Skip, let the entity resolver resolve these
> if (namespace.length() > 0 && schemaLocation.length() > 0)
> {
> URL currLoc = this.getLocationURL(wsdlLoc, schemaLocation);
> schemaLocationsMap.put(namespace, currLoc);
> }
> else
> {
> log.warn("Skip invalid schema import: [namespace=" + namespace + ",schemaLocation=" + schemaLocation + "]");
> }
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 5 months
[JBoss JIRA] Created: (JBWS-2212) Pass JavaEE5 CTS for jaxr, jaxrpc, jaxws, jws, saaj, webservice, webservices12
by Thomas Diesler (JIRA)
Pass JavaEE5 CTS for jaxr, jaxrpc, jaxws, jws, saaj, webservice, webservices12
------------------------------------------------------------------------------
Key: JBWS-2212
URL: http://jira.jboss.com/jira/browse/JBWS-2212
Project: JBoss Web Services
Issue Type: Task
Security Level: Public (Everyone can see)
Components: jbossws-native
Reporter: Thomas Diesler
Assigned To: Richard Opalka
Fix For: jbossws-native-3.0.1
Run the JavaEE5 tests with jdk-1.5 against jboss-5.0 + remember the AS revision that was used
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months