Hi
2011/5/31 Zhemzhitsky Sergey <[email protected]>:
> Hi there,
>
> I need to call an external RESTful service by means of cxf from my local area
> network. The request have to go through the NTLM proxy.
> On my windows machine everything works as expected and I have the external
> service called. At the same time on the linux machine I've got HTTP response
> code 407 every time.
>
I'm wondering, is it something to do with the fact that the server
recognizes that the request comes in from Windows ?
Perhaps some extra HTTP header is included by default on Win, given
that CXF uses HttpURLConnection...
Can you please capture the headers which CXF sends on Windows and
Linux, using a logging feature or some tcp trace utility ? If it is to
do with some missing header then it can be added explicitly on Linux
Cheers, Sergey
> I'm using JDK 1.6.0_24 that have support of NTLM.
>
> Here is configuration of http:conduit element.
>
> <http:conduit name="*.http-conduit">
> <http:proxyAuthorization>
> <sec:UserName>${proxy.user}</sec:UserName>
> <sec:Password>${proxy.pass}</sec:Password>
> <sec:AuthorizationType>NTLM</sec:AuthorizationType>
> </http:proxyAuthorization>
> <http:client
> ProxyServerType="HTTP"
> ProxyServer="${proxy.host}"
> ProxyServerPort="${proxy.port}"
> AutoRedirect="true"
> AllowChunking="false"
> Connection="Keep-Alive"
> ContentType="application/x-www-form-urlencoded"/>
> </http:conduit>
>
> Is it possible to configure CXF on a linux machine to call external services
> throuth NTLM proxies?
>
>
> Best Regards,
> Sergey Zhemzhitsky
>
>
> _______________________________________________________
>
> The information contained in this message may be privileged and conf idential
> and protected from disclosure. If you are not the original intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, or other use of, or taking of any action in reliance upon,
> this information is prohibited. If you have received this communication in
> error, please notify the sender immediately by replying to this message and
> delete it from your computer. Thank you for your cooperation. Troika Dialog,
> Russia.
> If you need assistance please contact our Contact Center (+7495) 258 0500 or
> go to www.troika.ru/eng/Contacts/system.wbp
>
>