camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saravanakumar Selvaraj (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-11218) Basic authentication not working when using camel cxf as producer
Date Fri, 28 Apr 2017 14:43:04 GMT

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

Saravanakumar Selvaraj updated CAMEL-11218:
-------------------------------------------
    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}


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

  was:
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}


    Component/s: documentation
                 camel-cxfrs

> 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)

Mime
View raw message