[jdom-interest] Parsing WSDL with JDOM? How?

Per Norrman per.norrman at austers.se
Mon Dec 27 14:25:27 PST 2004


Frank Cohen wrote:
> 
> wsdldefs = "http://www.xmethods.net/sd/eBayWatherService.wsdl " + \
> "http://www.w3.org/2001/XMLSchema " + \
> "http://schemas.xmlsoap.org/wsdl/soap " +\
> "http://schemas.xmlsoap.org/wsdl "
> 
> builder.setProperty( 
> "http://apache.org/xml/properties/schema/external-schemaLocation", 
> wsdldefs )

This property should be a list of namespace/URI *pairs*--youv'e just enumerated
some of the namespaces used in the document.

Instead:

  wsdldefs = "http://www.xmethods.net/sd/eBayWatherService.wsdl <ebay URI>" + \
  "http://www.w3.org/2001/XMLSchema <Schema URI>" + \
  "http://schemas.xmlsoap.org/wsdl/soap <SOAP URI>" +\
  "http://schemas.xmlsoap.org/wsdl <WSDL URI>"

/pmn




More information about the jdom-interest mailing list