Hey,

i have a problem with my webservice
i tried to source out the element defenition in seperate *.xsd filesand
import into *.wsdl via :

<xsd:import namespace="http://www.dhbw-mannheim.de/ReqTrac";
schemaLocation="UserService.xsd"> </xsd:import>

compiling with maven works fine!!

the problem occours while calling the wsdl from the server:
http://localhost:8080/reqtrac/services/reqtrac?wsdl

it doesn't show the wsdl file! an error stack is viewed.

i think the following is the magic line:

javax.wsdl.WSDLException: WSDLException (at
/wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR: Problem
parsing 'jndi:/localhost/reqtracWEB-INF/wsdl/UserService.xsd'.:
java.io.FileNotFoundException

/localhost/reqtracWEB-INF/wsdl/UserService.xsd
!!here is a slash missing!!
it should look like this:
/localhost/reqtrac/WEB-INF/wsdl/UserService.xsd

i think it's a problem with relativ path?!?!

because when i code the *.xsd hard with:

<xsd:import namespace="http://www.dhbw-mannheim.de/ReqTrac";
schemaLocation="file:/C:/SoftwareEngineering/eclipse/workspace/ReqTrac/service-war/src/main/webapp/WEB-INF/wsdl/UserService.xsd">
</xsd:import>

everything works fine!!

thanks for your help.

greetz Sven
-- 
View this message in context: 
http://www.nabble.com/Problem-with-wsdl-xsd%3Aimport-schemaLocation-and-relativ-path%21-tp23045851p23045851.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to