You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Lorand Bruhacs (JIRA)" <ji...@apache.org> on 2011/05/18 17:38:47 UTC
[jira] [Created] (AXIS2-5047) For provider-based endpoints with
WSDLs using xsd:import, schemaLocation of imported xsd does not resolve
correctly
For provider-based endpoints with WSDLs using xsd:import, schemaLocation of imported xsd does not resolve correctly
-------------------------------------------------------------------------------------------------------------------
Key: AXIS2-5047
URL: https://issues.apache.org/jira/browse/AXIS2-5047
Project: Axis2
Issue Type: Bug
Components: jaxws
Affects Versions: 1.5.4
Environment: JDK 1.6.0_24, Axis2 1.5.4, Tomcat 6
Reporter: Lorand Bruhacs
Priority: Critical
If a provider-based endpoint specifies a WSDL like so:
@WebServiceProvider(wsdlLocation="/WEB-INF/wsdl/PojoProvider.wsdl")
..
and that WSDL imports an external XML schema like this:
<types>
<xsd:schema targetNamespace="http://www.yoyodyne.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:bar="http://www.yoyodyne.com/bar">
<xsd:import namespace="http://www.yoyodyne.com/foo" schemaLocation="foo.xsd"/>
</xsd:schema>
</types>
then, when deploying the provider-based endpoint as a JAR file into servicejars, the schemaLocation will be rewritten to
schemaLocation="PojoProviderService.PojoProviderPort?xsd=foo.xsd"
For provider-based endpoints, that URL does not correctly resolve at runtime. However, for endpoints annotated with @WebService, the same scenario works fine.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org