[
https://issues.apache.org/jira/browse/CAMEL-11218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Saravanakumar Selvaraj updated CAMEL-11218:
-------------------------------------------
Affects Version/s: 2.17.0
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,
{code:xml} <cxf:cxfEndpoint id="hello-ws-producer"
address="http://localhost:8000/ws"
serviceClass="com.mycompany.services.HelloWSService"
loggingFeatureEnabled="true" username="admin" password="admin"/>{code}
But it fails with following error
{code}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){code}
Summary: Basic authentication not working when using camel cxf as
producer (was: Basic authentication not working)
> Basic authentication not working when using camel cxf as producer
> -----------------------------------------------------------------
>
> Key: CAMEL-11218
> URL: https://issues.apache.org/jira/browse/CAMEL-11218
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Affects Versions: 2.17.0
> Reporter: Saravanakumar Selvaraj
>
> 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,
> {code:xml} <cxf:cxfEndpoint id="hello-ws-producer"
> address="http://localhost:8000/ws"
> serviceClass="com.mycompany.services.HelloWSService"
> loggingFeatureEnabled="true" username="admin" password="admin"/>{code}
> But it fails with following error
> {code}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){code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)