Title: This email may contain confident
It was quite easy:

in xbean.xml

<cxfbc:provider wsdl="classpath:MyService.wsdl"
                     locationURI="https://my.service.com/MyService"
                     interfaceName="mynamespace:HealthIndicatorImplPort2"
                     service="mynamespace:MyService"
                     endpoint="HealthIndicatorImplPort"
                     busCfg="ssl.xml">

</cxfbc:provider>


and ssl.xml file:

<?xml version="1.0" encoding="UTF-8"?>

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

       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.xsd">



    <http:conduit name="{http://target.ws.namespace}ServicePortName.http-conduit">

        <http:tlsClientParameters disableCNCheck="true">
            <sec:trustManagers>
                <sec:keyStore type="JKS" password="pass" resource="keystore.jks"/>
            </sec:trustManagers>
        </http:tlsClientParameters>
    </http:conduit>


</beans>


regards


rafal


On 09.12.2011 14:40, Rafal Janik wrote:
Hi



I'm a little bit confused with configuring cxf-provider with SSL encryption.
In my servicemix there is a very simple proxy :

<cxfbc:consumer wsdl="classpath:MyService.wsdl"
                     targetEndpoint="HealthIndicatorImplPort"
                     targetService="mynamespace:MyService"
                     targetInterface="mynamespace:HealthIndicatorImplPort"
                     endpoint="HealthIndicatorImplPortEndpoint"
                     service="mynamespace:MyService"
                     locationURI="http://0.0.0.0:8190/robust/MyService/">


</cxfbc:consumer>


<cxfbc:provider wsdl="classpath:MyService.wsdl"
                     locationURI="https://my.service.com/MyService"
                     interfaceName="mynamespace:HealthIndicatorImplPort2"
                     service="mynamespace:MyService"
                     endpoint="HealthIndicatorImplPort">

</cxfbc:provider>

The ws mentioned in cxf:bcprovider has changed and now it just support
SSL encryption.
The cert was imported into created jks file.

I want to leave the cxf-consumer without ssl and accept the cert just
for provider - I don't want the smx client see any changes in API.

Where and how I should configure the provider? With busCfg or in
cxf.xml? And how?  I've read many examples, blogs documentations but it
isn't working for me - probably I'm doing something wrong or I don't
understand how it should work...


Please help me :)

Thanks in advance.


regards


rafal



--
Software Mind

Rafał Janik
Software Engineer
Software Mind SA
ul. Bociana 22A
31-231 Krakow
Polska

Tel. +48 12 252 34 00
Fax: +48 12 252 34 01
Mobile:+48 668 48 36 13
[email protected]
www.softwaremind.pl

Software Mind SA z siedzibą w Krakowie przy ul. Bociana 22A, 31-231 Krakow
NIP 9452012822, kapitał zakładowy PLN 500,000.00 (w całości wpłacony), KRS 0000300409
Sąd Rejonowy dla Krakowa Śródmieścia w Krakowie, XI Wydział Gospodarczy KRS
 
Ta wiadomość może zawierać materiały poufne i objęte tajemnicą zawodową, do wyłącznego użytku odbiorcy (odbiorców). Surowo wzbronione są wszelkie zmiany, wykorzystywanie, przechowywanie, dystrybucja lub ujawnienie przez inne osoby. Jeśli nie jest Pan/Pani zamierzonym odbiorcą (lub osobą upoważnioną do odbioru w imieniu odbiorcy), prosimy o kontakt z nadawcą przez wiadomość zwrotną oraz usunięcie wszelkich kopii niniejszej wiadomości. Poza tym poczta elektroniczna jest podatna na uszkodzenia danych, przechwytywanie, sabotaż, nieupoważnione zmiany i wirusy. Wysyłamy i odbieramy wiadomości poczty elektronicznej wyłącznie na takiej zasadzie, że nie ponosimy odpowiedzialności za jakiekolwiek tego typu uszkodzenia, przechwycenia, sabotaż, zmiany lub wirusy, ani jakichkolwiek konsekwencje tego typu okoliczności.

Reply via email to