This content has been marked as final. Show 2 replies
This is incorrect. As long as you use XML Schema (within wsdl or xsd files), you should always use
... SchemaFactory sf = SchemaFactory.newInstance( "http://schemas.xmlsoap.org/wsdl/"); ...
I haven't tried validation with wsdl like this. But I guess it should be supported. Someone else might provider better clarity.
SchemaFactory sf = SchemaFactory.newInstance( XMLConstants.W3C_XML_SCHEMA_NS_URI);
I don't think it's supported out of the box. you could pull the schema elements out of the wsdl yourself and turn them into Schema instances. there also might be some support for this in newer jaxb impls, see http://stackoverflow.com/questions/2351298/jaxb-customizations-multiple-schemas-inside-wsdl-and-schemalocation