dkulp wrote: > > Actually, the CLIENT side stuff is MUCH better tested right now. I've > been using the live MS WCF tests at: > http://mssoapinterop.org/ilab/ > as my testcases. For the most part, I just run wsdl2java on the wsdls > and have a simple client that calls on them. For each "test case", the > spring config sets the properties that are needed. For example, I > have: > > Turn on the policy stuff: (this will probably be the default for 2.2 if > it all works and doesn't affect performance) > <cxf:bus> > <cxf:features> > <p:policies/> > <cxf:logging/> > </cxf:features> > </cxf:bus> > > ... >
I'm attempting to do this via the following file, which I'm calling cxf.xml and placing in the classpath of my SOAP client: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:cxf="http://cxf.apache.org/core" xmlns:p="http://cxf.apache.org/policy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <cxf:bus> <cxf:features> <p:policies/> <cxf:logging/> </cxf:features> </cxf:bus> </beans> But I'm getting this error, and Google searches are not helping me: [INFO] WARNING: Failed to create application context. [INFO] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/policy] [INFO] Offending resource: class path resource [cxf.xml] [INFO] [INFO] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) [INFO] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) [INFO] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) Any idea what I'm doing wrong? Thanks, Glen -- View this message in context: http://www.nabble.com/WS-SecurityPolicy-in-CXF-2.1.x%2C-or-just-2.2--tp19830360p20301570.html Sent from the cxf-dev mailing list archive at Nabble.com.
