Hi,

On my side, I did it the following way:

<http:endpoint service="tns:DemoService"
     endpoint="DemoPort"
     role="consumer"
     locationURI="https://k-bouchard:8192/Service/";
     defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
     soap="true"
     soapVersion="1.1" 
     
wsdlResource="D:\projects\kbouchard_workspace\SOA\BusinessLogic\WebServices\Main\Security\etc\DHCPTableService.wsdl">

     <property name="ssl">
        <bean class="org.apache.servicemix.http.SslParameters">
                <property name="keyPassword" value="changeit"/>
                <property name="keyStorePassword" value="changeit"/>
                <property name="keyStore" 
value="D:\projects\kbouchard_workspace\SOA\BusinessLogic\WebServices\Main\Security\keystore"/>
        </bean>
     </property>

     </http:endpoint>

Hope this helped.

> -----Original Message-----
> From: Gerdes, Mike [mailto:[EMAIL PROTECTED]
> Sent: 5 mai, 2006 05:36
> To: [email protected]
> Subject: AW: Antwort: servicemix-http parameter setting
> 
> 
> 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.

Cardinal Health -- Working together. For life. (sm)
_________________________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk 
- Portuguese - Svenska: www.cardinalhealth.com/legal/email

Reply via email to