axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lalaji sureshika (Commented) (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5285) Able to resolve relative paths for imported schemas[eg:"../sample.xsd"] from a wsdl
Date Tue, 03 Apr 2012 09:20:27 GMT


lalaji sureshika commented on AXIS2-5285:


Hereby I'm attaching the patch,which was created to resolve above issue.I'll attach the diff
file to this jira.From this patch,how we have resolved it is by,introducing a new service
parameter called "customSchemaNamePrefix".

If a user has a wsdl,with defining imported schemas as relative urls [eg: schemaLocation="../../sample.xsd"]
 in it,when he's going to use that wsdl from a service,first apply the patch for axis2,then
add the above service parameter.The parameter value has to be base url for the xsd.For example
say your original wsdl url is "http://localhost:8080/webservices/wsdl/sample.wsdl".And if
you have defined a schema location as "../xsd/sample.xsd" in your wsdl file,you have to set
the value of 'customSchemaNamePrefix' service parameter [the base url] as "http://localhost:8080/webservices/wsdl/".

Please review the patch.

> Able to resolve relative paths for imported schemas[eg:"../sample.xsd"] from a wsdl
> -----------------------------------------------------------------------------------
>                 Key: AXIS2-5285
>                 URL:
>             Project: Axis2
>          Issue Type: Improvement
>          Components: kernel
>         Environment: Ubuntu
>            Reporter: lalaji sureshika
>            Priority: Minor
>              Labels: axis2
> Tried below steps with wso2 ESB 4.0.3.
> 1)Create a proxy service with setting <useOriginalwsdl> property as true as referring
to a back-end service's wsdl which contains schema definitions as relative paths[eg: schemaLocation="../../sample.xsd"]
> 2)After created the proxy service ,when we tried 'wsdl validator' option,wsdl validation
fails,due to un-resolvement of imported schema urls.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message