Hello,

My problem is this:

How do I specify schemaLocation to make it work both during generation phase and
runtime.

Similar to the jaxws-spring example, I am using WsGen to generate classes from 
a 
wsdl file.
I would like my schemas and wsdls to be organized in a folder structure like 
this

webapp/WEB-INF/classes/wsdl/person/PersonService.wsdl
webapp/WEB-INF/classes/schema/person/PersonTypes.xsd

The import statement in the wsdl file:

schemaLocation="schema/person/PersonType.xsd"

This fails during the generation with WsGen with the FileNotFoundException
...wsdl/person/schema/person/PersonType.xsd.
This is reasonable of course since that path does not exists.

If I try a relative path instead:

schemaLocation="../../schema/person/PersonType.xsd"

then the deployment fails with the message:

"Unable to locate with a locator the schema referenced at
'../../schema/person/PersonParameters.xsd' relative to document base 'null'"

I also tried

schemaLocation="classpath:schema/person/PersonType.xsd"

But this fails during generation phase with the message

java.net.MalformedURLException: unknown protocol: classpath


I would be very happy if someone could explain how to setup this or can point me
to a tutorial or an example somewhere.


Best Regards
-Thomas



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to