PassoGiau
PassoGiau

Reputation: 617

No org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender in 2.1.4

I have an application using org.springframework.ws, 2.1.4.RELEASE which is now requires to use SSL. I was hoping to inject the org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender into the org.springframework.ws.client.core.WebServiceTemplate but that class in not in found.

I'm using Maven dependency

        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-core</artifactId>
            <version>2.1.4.RELEASE</version>
        </dependency>

Do I have to downgrade to 1.5 if I want to use HttpsUrlConnectionMessageSender? Is there another way using HTTPS with the WebServiceTemplate without downgrading?

Upvotes: 7

Views: 15051

Answers (3)

Sebin J.
Sebin J.

Reputation: 1

You can also use following maven dependency

<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws</artifactId>
    <version>1.5.2</version>
</dependency>

Upvotes: 0

PassoGiau
PassoGiau

Reputation: 617

I think, I figured it out - there is a WS support dependency:

        <dependency>
            <groupId>org.springframework.ws</groupId>
            <artifactId>spring-ws-support</artifactId>
            <version>2.1.4.RELEASE</version>
        </dependency>

Upvotes: 21

carl
carl

Reputation: 147

Use HttpComponentsMessageSender

<bean id="messageSender"
    class="org.springframework.ws.transport.http.HttpComponentsMessageSender">
    <property name="connectionTimeout" value="1200000" />
    <property name="readTimeout" value="1200000" />
</bean>

you need to have apache htpp components client .jar with the core in classpath.

If you are using Maven jsut add :

       <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.3</version>
            <scope>compile</scope>
        </dependency>

Upvotes: 0

Related Questions