[jdom-interest] Reading from SOAP

Nicolàs de Hilster nicolas at globalxion.nl
Tue May 7 01:57:21 PDT 2002


Thanks Philip, that did the job!
Now I have another question:
I use the validation option for opening the XML file:
  SAXBuilder builder = new
SAXBuilder("org.apache.xerces.parsers.SAXParser", true); In the second
line of the XML file the schema is declared as:  xsi:schemaLocation =
"http://schemas.xmlsoap.org/soap/envelope/ ./EnvelopWithMessages.xsd"
This will look for EnvelopWithMessages.xsd in the current directory on
my local machine. The schemas are not (yet) available on the net, so I
have to use a local one. Is it possible to define your own
schemaLocation? Not all customers will have the path (and maybe name)
the same. So I would like to overrule the schemaLocation. Of course I
could read the file with java and replace the schemaLocation, but it
would be better (faster) without doing this.

Regards
Nicolàs

-----Original Message-----
From: Philip Nelson [mailto:panmanphil at yahoo.com] 
Sent: 06 May 2002 17:40
To: Nicol`s_de_Hilster; jdom-interest at jdom.org
Subject: Re: [jdom-interest] Reading from SOAP


> Namespace nsEAN = Namespace.getNamespace("http://www.ean.nl/");
snip

> "http://schemas.xmlsoap.org/soap/envelope/" xmlns = 
> "http://www.ean.nl"

looks like you need to drop the trailing slash in the first statement.


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com






More information about the jdom-interest mailing list