[jdom-interest] RE: Parsing WSDL with JDOM

Edelson, Justin Justin.Edelson at mtvn.com
Wed Oct 4 14:59:19 PDT 2006


Just to be clear, your document is NOT malformed, it's invalid. A minor
point, perhaps, but important - validation can be disabled; checks on
well-formedness cannot (in general).

That being said, according to the schemas you're using, the document is,
in fact, invalid. Looking quickly at the WSDL Schema, you may be able to
have the plnk:partnerLinkType element prior to the wsdl:message element.

Justin

-----Original Message-----
From: jdom-interest-bounces at jdom.org
[mailto:jdom-interest-bounces at jdom.org] On Behalf Of Vortexmind
Sent: Wednesday, October 04, 2006 6:40 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] RE: Parsing WSDL with JDOM


Thank you
Adding the trailing slashes make the parsing work. But now I've got a
different problem ... when I parse the file (with the same code) i get
this
error


org.jdom.input.JDOMParseException: Error on line 46 of document
HelloWorld.wsdl: cvc-complex-type.2.4.a: Invalid content was found
starting
with element 'plnk:partnerLinkType'. One of
'{"http://schemas.xmlsoap.org/wsdl/":import,
"http://schemas.xmlsoap.org/wsdl/":types,
"http://schemas.xmlsoap.org/wsdl/":message,
"http://schemas.xmlsoap.org/wsdl/":portType,
"http://schemas.xmlsoap.org/wsdl/":binding,
"http://schemas.xmlsoap.org/wsdl/":service}' is expected.

It seems that it's correctly loading the schemas and then it seems that
the
HelloWorld.wsdl is malformed ... But I'm pretty sure it's not! Maybe
it's
not loading the right definitions?

Here is the WSDL file being parsed:
http://www.vortexmind.net/BPELTest/HelloWorld.wsdl

And thank you for your StringBuffer tip: I've found a nice article that
explains your point 
(http://uk.builder.com/programming/java/0,39026606,20274027,00.htm)


Thank you
Paolo
http://www.vortexmind.net
-- 
View this message in context:
http://www.nabble.com/Parsing-WSDL-with-JDOM-tf2375010.html#a6637318
Sent from the JDOM - General mailing list archive at Nabble.com.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list