It seems to work now, so nevermind. It was a simple error and my file now looks 
like this:

      <http:endpoints>
                <http:endpoint service="demo:simple-service"
                                         endpoint="simple-service"
                       role="consumer"
                       locationURI="https://localhost:8192/Service/";
                       defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                           soap="true"
                >
                <http:ssl>
                        <http:sslParameters keyPassword="server"
                   keyStore="C:\.keystore2"
                           keyStorePassword="server"
                           
trustStore="C:\Programme\Java\jdk1.5.0_06\jre\lib\security\cacerts"
                           trustStorePassword="changeit"
                           needClientAuth="true"
                           wantClientAuth="true"/>
                </http:ssl>
                </http:endpoint>

-----Ursprüngliche Nachricht-----
Von: Gerdes, Mike
Gesendet: Freitag, 5. Mai 2006 11:18
An: [email protected]
Betreff: AW: Antwort: servicemix-http parameter setting




Thanks for your answer.

Thats exactly my problem. I have no real clue how to set the attributes 
correctly.
Somehow I don't get the spring/xbean configuration not right and have problems 
to define the ssl attributes right.


This is not working:

      <http:endpoints>
                <http:endpoint service="demo:simple-service"
                                         endpoint="simple-service"
                       role="consumer"

                       locationURI="https://localhost:8192/Service/";

                       defaultMep="http://www.w3.org/2004/08/wsdl/in-out";

                           soap="true"

                >
                <ssl       keyPassword="server"
                   keyStore="C:\.keystore2"
                           keyStorePassword="server"
                           
trustStore="C:\Programme\Java\jdk1.5.0_06\jre\lib\security\cacerts"
                           trustStorePassword="changeit"
                           needClientAuth="true"
                           wantClientAuth="true"/>

                </http:endpoint>

There I get:

Caught: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.servicemix.http.HttpEndpoint' defined in file [D:\esb
\incubator-servicemix-3.0-SNAPSHOT\examples\soap-binding\.\servicemix.xml]: Erro
r setting property values; nested exception is org.springframework.beans.Propert
yAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested
 propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException:
 Failed to convert property value of type [java.lang.String] to required type [o
rg.apache.servicemix.http.SslParameters] for property 'ssl']

so I am getting closer, but somehow is something small in the syntax wrong.

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 5. Mai 2006 11:08
An: [email protected]
Betreff: Antwort: servicemix-http parameter setting


Attributes keyPassword, keyStore, keyStorePassword, trustStore,

trustStorePassword, needClientAuth and wantClientAuth are no attributes of

the class HttpEndpoint, but are attributes of the class SslParameters.

HttpEndpoint has an attribute 'ssl' as instance of the class

SslParameters.

public class HttpEndpoint extends SoapEndpoint {

    protected ExtensibilityElement binding;
    protected String locationURI;
    protected Map wsdls = new HashMap();
    protected SslParameters ssl;
 ...
}

public class SslParameters {

    private String keyPassword;
    private String keyStore;
    private String keyStorePassword;
    private String keyStoreType = "JKS"; // type of the key store
    private String trustStore;
    private String trustStorePassword;
    private String trustStoreType = "JKS";
    private String protocol = "TLS";
    private String algorithm = "SunX509"; // cert algorithm
    private boolean wantClientAuth = false;
    private boolean needClientAuth = false;
...
}

Therefore you have to setup the ssl attribute correctly.

Kind regards
Juergen





"Gerdes, Mike" <[EMAIL PROTECTED]>
05.05.2006 10:54
Bitte antworten an servicemix-users


        An:     <[email protected]>
        Kopie:

        Thema:  servicemix-http parameter setting



Hi,

just a small question, how do I set the SSL paremeters for the

servicemix-http component?

This is my http:endpoint definition:

                                 <http:endpoint

service="demo:simple-service"
 endpoint="simple-service"
                                role="consumer"

                                locationURI="
https://localhost:8192/Service/";

                                defaultMep="
http://www.w3.org/2004/08/wsdl/in-out";

                                    soap="true"

                                                    keyPassword="server"
                                    keyStore="C:\.keystore2"
 keyStorePassword="server"
 trustStore="C:\Programme\Java\jdk1.5.0_06\jre\lib\security\cacerts"
 trustStorePassword="changeit"
                                                    needClientAuth="true"
                                                    wantClientAuth="true"
                                 />

And I always get:

Caught: org.springframework.beans.factory.BeanCreationException: Error

creating
bean with name 'org.apache.servicemix.http.HttpEndpoint' defined in file

[D:\esb
\incubator-servicemix-3.0-SNAPSHOT\examples\soap-binding\.\servicemix.xml]:

Erro
r setting property values; nested exception is

org.springframework.beans.NotWrit
ablePropertyException: Invalid property 'keyPassword' of bean class

[org.apache.
servicemix.http.HttpEndpoint]: Bean property 'keyPassword' is not writable

or ha
s an invalid setter method: Does the parameter type of the setter match

the retu
rn type of the getter?

So I gues it is just a small error :)

This mail has originated outside your organization, either from an

external partner or the Global Internet. Keep this in mind if you answer

this message.




This mail has originated outside your organization, either from an external 
partner or the Global Internet. Keep this in mind if you answer this message.



This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.

This mail has originated outside your organization, either from an external 
partner or the Global Internet. Keep this in mind if you answer this message.

Reply via email to