The line Property(" Location", "file://config/schema/commons.xsd") can be removed.I am trying to do XML Fragment validation using the xerces API . Can you give me some details as to how to get PSVI for an XML Fragment(i.e.Using XML marshalling makes it easy to work with object oriented methodologies.spring Ws supports different Object-XML frameworks namely JAXB (1 and 2), Castor, Ji BX, XStream and XMLBeans.I would just like to introduce you to the various interceptors available in the Spring framework which can be used when you have Spring WS in your application.Endpoint interceptors are typically defined by using a element in your Spring application context.Or just programmatically specifying in Feature(...) i am using Xerces-J 2.6.2.Or just programmatically specifying in Feature(...)Yes, you have to specify both programmaticaly and in the xml document. My Q is, 1)do I have to have xsi:schema Location=" file://c:/dir1/schema1.xsd" in the XML Instance document, in order to validate with SAX or DOM?
I do XML fragment validation so I don't have a schema def in the XML.Interceptors are useful for applying specific functionality to required request as required by the application.There are built-in interceptors provided by Spring Framework and if required client interceptors can be written and configured according to application requirement.In our example we will use XML marshalling using JAXB 2. Now we will have to configure the XML marshaller and endpoint adapters in the Spring configuration file as shown in Listing 16-7 below. Configuring XML marshaller in Spring configuration file Following the pattern of Spring in other technologies, it provides Webservice Template similar to Jdbc Template and JMSTemplate to aid implementing the client for web service consumption and use.Listing 16-8 shows configuring Webservice Template in the Spring configuration file as shown below. Configuring Webservice Template in Spring configuration file Detailing Webservice Template in much more detail is out of scope of this book as detailing it would increase this chapter to another 20 pages as Spring WS gives very good way of customizing and integrating with other technologies.