Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
2.17.0
-
None
-
None
-
Unknown
Description
According to http://camel.apache.org/cxf.html, username and password options can be set in cxfEndpoint from camel 2.13.2 onwards.
When tried to create a producer endpoint like,
<cxf:cxfEndpoint id="hello-ws-producer" address="http://localhost:8000/ws" serviceClass="com.mycompany.services.HelloWSService" loggingFeatureEnabled="true" username="admin" password="admin"/>
But it fails with following error
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'username' is not allowed to appear in element 'camel-cxf:cxfEndpoint'. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:201)
It appears to be this username and password elements are applicable for cxfrs component and not cxf component.
So the following documentations need to be corrected.
http://camel.apache.org/cxfrs.html
http://camel.apache.org/cxf.html