You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Silberman, Nathan" <NS...@doubleclick.com> on 2007/11/20 19:13:42 UTC
WSDL imports
All,
My current setup includes my wsdls inside a folder in my WEB-INF folder.
I have a number of common types that I would like to import rather than
duplicate across multiple wsdls. When I execute cxf's wsdl2java command,
my <import> tags must have locations that are relative to the current
folder (wsdl):
<wsdl:import namespace="..." location="myImport.wsdl"/>
WEB-INF
/ wsdl
/ myFile.wsdl
/ myImport.wsdl
However, when I use these wsdls for serving, my container (jboss in this
case) considers the import location relative to a completely different
folder (in this case, its bin directory). To solve this problem, I could
alter the location to be the absolute URL for myImport.wsdl, however,
this means I would have to have a different location value for wsdl2java
than I would for serving.
Does anybody know a more elegant way to accomplish writing a wsdl that
can be used by both wsdl2java and a generic container that doesn't
require me to alter my import locations?
Nathan