Basic Authentication with Camel CXF
Issue
Getting exception while trying to create client for a SOAP service that has basic authentication using camel cxf component.
It is what tried,
<cxf:cxfEndpoint id="hello-ws-producer" address="http://localhost:8000/ws"
serviceClass="com.mycompany.services.HelloWSService" loggingFeatureEnabled="true" username="admin" password="admin"/>
And getting below exception..
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)[:2.11.0.SP4-redhat-1]
Environment
- Red Hat JBoss Fuse
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
