有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java无法使用NTLM身份验证apache camel cxf

蓝图:

<http-conf:conduit name="*.http-conduit">
    <http-conf:client 
            ConnectionTimeout="20000"
            AllowChunking="false"
            MaxRetransmits="11"
            Connection="Keep-Alive"
            ReceiveTimeout="30000"
            CacheControl="No-Cache"/>
    <http-conf:authorization>
        <sec:UserName>doman\login</sec:UserName>
        <sec:Password>pass</sec:Password>
        <sec:AuthorizationType>NTLM</sec:AuthorizationType>
    </http-conf:authorization>
</http-conf:conduit>

<camelcxf:cxfEndpoint id="soap-active"
                      address=""
                      serviceName="esbExchange:esbExchange"
                      endpointName="esbExchange:esbExchangeSoap12"
                      wsdlURL="wsdl/soap-active.wsdl">
    <camelcxf:properties>
        <entry key="dataFormat" value="PAYLOAD"/>
        <entry key="mtom-enabled" value="true"/>
    </camelcxf:properties>
</camelcxf:cxfEndpoint>

路线:

<from uri="direct-vm:something">
<toD uri="cxf:bean:soap-active"/>

当我试图提出请求时,我得到了401,我看到了follow日志

Headers: {AuthorizationType=Basic 0YPQutGG0YPQutGG0YPQutGG0YPQutGG0YPQug== ...

为什么我看到NTLM place的basic? doc cxf(https://cxf.apache.org/docs/client-http-transport-including-ssl-support.html):NTLM身份验证内置于Java运行时中,您无需执行任何特殊操作

当我通过CURL发出服务请求时,我看到了正确的标题

有一个类似的问题,但我无法阅读它https://access.redhat.com/solutions/3992921

ApacheCamel 2.23.2

cxf 3.2.7

卡拉夫4.2

cxf功能列表:

karaf@root()> feature:list | grep cxf
camel-cxf                                │ 2.23.2           │          │ Started     │ camel-2.23.2                      │
cxf-specs                                │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-jaxb                                 │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-abdera                               │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
wss4j                                    │ 2.2.2            │          │ Started     │ cxf-3.2.7                         │
cxf-core                                 │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-commands                             │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-wsdl                                 │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-ws-policy                            │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-ws-addr                              │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-ws-rm                                │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-ws-mex                               │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-ws-security                          │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-rt-security                          │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-rt-security-saml                     │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-http-client                          │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-http                                 │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-http-provider                        │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-http-jetty                           │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-http-async                           │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-http-netty-client                    │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-http-netty-server                    │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-http-undertow                        │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-bindings-soap                        │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-jaxws                                │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-jaxrs                                │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-rs-security-xml                      │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-rs-security-sso-saml                 │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-rs-security-cors                     │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-rs-security-oauth                    │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-rs-security-jose                     │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-rs-security-oauth2                   │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-jackson                              │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-jsr-json                             │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-tracing-brave                        │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-tracing-opentracing                  │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-rs-description-swagger2              │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-rs-description-openapi-v3            │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-databinding-aegis                    │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-databinding-jaxb                     │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-features-clustering                  │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-features-logging                     │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-features-throttling                  │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-features-metrics                     │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-bindings-corba                       │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-bindings-coloc                       │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-transports-local                     │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-transports-jms                       │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-transports-udp                       │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-transports-websocket-client          │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-transports-websocket-server          │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-sse                                  │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-javascript                           │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-frontend-javascript                  │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-xjc-runtime                          │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-tools                                │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf                                      │ 3.2.7            │          │ Started     │ cxf-3.2.7                         │
cxf-sts                                  │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-wsn-api                              │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-wsn                                  │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-ws-discovery-api                     │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-ws-discovery                         │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-bean-validation-core                 │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-bean-validation                      │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7                         │
cxf-jaxrs-cdi                            │ 3.2.7            │          │ Uninstalled │ cxf-3.2.7  

共 (0) 个答案