Hello,
 
I'm struggling with schema imports in my wsdl files and would like some hints for how to proceed.
 
The hostname of the target web server/servlet container is not known at the time I create my wsdl so I am trying to use a relative schemaLocation
in my import:
<xsd:import namespace="http://my.domain.com/common/stuff" schemaLocation="../schemas/myschema.xsd" />
 
When I deploy my service, Axis2 will parse this wsdl and try to resolve the location of the schema as a file and fail because the "current directory" is not anywhere near the webapp folder.
 
If I give the full URL to the imported schema (http://myhost:port/axis2/schemas/myschema.xsd) it works like a charm but as I said the hostname is not known at the time I create the wsdl so this is not an option.
 
Is there any way to hook in an Entity Resolver, set some kind of property to get the wsdl4j to load schemas of the classpath or even disabling parsing of the wsdl:types so I can get this to work please let me know.
 
Best Regards
Johan Andersson
 
 

Reply via email to