[ 
https://issues.apache.org/jira/browse/AXIS2-5285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245084#comment-13245084
 ] 

lalaji sureshika commented on AXIS2-5285:
-----------------------------------------

Hi,

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.

Thanks;
Lalaji
                
> Able to resolve relative paths for imported schemas[eg:"../sample.xsd"] from 
> a wsdl
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-5285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5285
>             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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to