Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple XSD question

Status
Not open for further replies.

MarkGreen

Technical User
Oct 4, 2002
40
GB
Hi guys,

I'm new to Java - converting from c#, so sorry for the simple question.

I've created a webservice, which parses an XSD file which I have on my hard drive. Trouble is, I don't know the best place to put the XSD, and how then to get a handle on the file. I'm currently specifying a fully qualified hard coded path which is clearly not the way to go as this will cause issues on deployment. Are XSD files normally placed in their own source package? Or are are they in the web/web pages folder? - as structured by Netbeans. I've tried both these options but still can't work out how to reference files in these locations?

Many thanks for any pointers,
Mark
 
I've put it into a schemas sub directory at the root of the webservice.

I still seem unable to use a relative path and are having to use servletcontext to resolve the full path. Maybe this is the only way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top