Hi,

I am not able to get my jaxrs:client configuration to work using CXF version 3 
milestone 2 . The following is my configuration:

<?xml version="1.0" encoding="UTF-8"?>
<beans default-autowire="byName"
       xmlns="http://www.springframework.org/schema/beans"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:jaxrs="http://cxf.apache.org/jaxrs"; 
xmlns:context="http://www.springframework.org/schema/context";
       xmlns:util="http://www.springframework.org/schema/util";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
              http://www.springframework.org/schema/context
              
http://www.springframework.org/schema/context/spring-context-3.0.xsd
              http://www.springframework.org/schema/util
              http://www.springframework.org/schema/util/spring-util-3.0.xsd
        http://cxf.apache.org/jaxrs
        http://cxf.apache.org/schemas/jaxrs.xsd";>

                <jaxrs:client id="myClient" address="local://books"
                                serviceClass="org.company.MyInterface"
                                inheritHeaders="true">
                                <jaxrs:headers>
                                                <entry key="userId" 
value="${dev.userId}"/>
                                                <entry key="password" 
value="${dev.password}"/>
                                </jaxrs:headers>
                </jaxrs:client>

</beans>


I am seeing the following error when running a integ test:

Caused by: org.xml.sax.SAXParseException; lineNumber: 54; columnNumber: 25; 
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can 
be found for element 'jaxrs:client'.
       at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
 Source)


Is the Jaxrs client configuration in a separate namespace?

thanks
-Sonam

Reply via email to