You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/05/04 13:52:04 UTC

[jira] [Resolved] (CAMEL-11218) Basic authentication not working when using camel cxf as producer

     [ https://issues.apache.org/jira/browse/CAMEL-11218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-11218.
---------------------------------
    Resolution: Not A Problem

> 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, camel-cxfrs, documentation
>    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}
> 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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)