Hi,

You can add busCfg attribute (let's say busCfg="basic_auth.xml") for your cxf bc provider xbean,
and your basic_auth.xml should be like

<beans xmlns="http://www.springframework.org/schema/beans";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xmlns:sec="http://cxf.apache.org/configuration/security";
 xmlns:http="http://cxf.apache.org/transports/http/configuration";
 xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
 xsi:schemaLocation="
                   http://cxf.apache.org/configuration/security
                      http://cxf.apache.org/schemas/configuration/security.xsd
          http://cxf.apache.org/transports/http/configuration
             http://cxf.apache.org/schemas/configuration/http-conf.xsd
          http://www.springframework.org/schema/beans
             http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

  <http:conduit name="{your_name_space}your_endpoint_name.http-conduit">
<http:authorization>
             <sec:UserName>Betty</sec:UserName>
             <sec:Password>password</sec:Password>
          </http:authorization>

  </http:conduit>

</beans>

You can get more details about the http transport configuration from [1]


[1]http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html

Regards
Freeman

Markus Wolf wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

we need to proxy a webservice with smx. No problem with this, since
enough examples are given. :)
But our 3rd party webservice requires http-basic auth and we are
struggeling in configuring smx to proxy the authentication. Is there a
way to do so? If not, is it possible to proxy ws-security headers?

Thanks for any hint
Markus Wolf
- --
NMMN - New Media Markets & Networks GmbH
Geschäftsführung: Kfm. Michael Schütt
Finanzamt HH-Altona UStID DE 812 699 852  HRB 71102 Hamburg
HypoVereinsbank  -   BLZ 200 300 00  -  Konto-Nr. 156 29 82

http://www.nmmn.com               Tel.: +49 40 284 118 -0
Langbehnstrasse 6                 Entwicklung:         -720
22761 Hamburg                     Fax:                 -999

Rufen Sie uns kostenlos an: http://www.nmmn.com/call/software
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIkzolDBHISU1oEKERAiITAKC/NCkCmJiXGN+S+u5zO4ZlDVW98wCg3P+e
z5kqJmGYxH5D5YUYHVJSB/8=
=dxjq
-----END PGP SIGNATURE-----


Reply via email to