Skip to content

Commit 32f0e2e

Browse files
author
eugenp
committed
minor cleanup work
1 parent fbad155 commit 32f0e2e

5 files changed

Lines changed: 44 additions & 36 deletions

File tree

‎apache-cxf/cxf-spring/pom.xml‎

Lines changed: 40 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,35 @@
88
<artifactId>apache-cxf</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
1010
</parent>
11-
<properties>
12-
<cxf.version>3.1.6</cxf.version>
13-
<spring.version>4.3.1.RELEASE</spring.version>
14-
<surefire.version>2.19.1</surefire.version>
15-
</properties>
11+
12+
<dependencies>
13+
<dependency>
14+
<groupId>org.apache.cxf</groupId>
15+
<artifactId>cxf-rt-frontend-jaxws</artifactId>
16+
<version>${cxf.version}</version>
17+
</dependency>
18+
<dependency>
19+
<groupId>org.apache.cxf</groupId>
20+
<artifactId>cxf-rt-transports-http-jetty</artifactId>
21+
<version>${cxf.version}</version>
22+
</dependency>
23+
<dependency>
24+
<groupId>org.springframework</groupId>
25+
<artifactId>spring-context</artifactId>
26+
<version>${spring.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.springframework</groupId>
30+
<artifactId>spring-webmvc</artifactId>
31+
<version>${spring.version}</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>javax.servlet</groupId>
35+
<artifactId>javax.servlet-api</artifactId>
36+
<version>3.1.0</version>
37+
</dependency>
38+
</dependencies>
39+
1640
<build>
1741
<plugins>
1842
<plugin>
@@ -33,6 +57,7 @@
3357
</plugin>
3458
</plugins>
3559
</build>
60+
3661
<profiles>
3762
<profile>
3863
<id>integration</id>
@@ -50,7 +75,7 @@
5075
<configuration>
5176
<properties>
5277
<cargo.hostname>localhost</cargo.hostname>
53-
<cargo.servlet.port>8080</cargo.servlet.port>
78+
<cargo.servlet.port>8081</cargo.servlet.port>
5479
</properties>
5580
</configuration>
5681
</configuration>
@@ -71,6 +96,7 @@
7196
</execution>
7297
</executions>
7398
</plugin>
99+
74100
<plugin>
75101
<artifactId>maven-surefire-plugin</artifactId>
76102
<version>${surefire.version}</version>
@@ -91,32 +117,13 @@
91117
</plugins>
92118
</build>
93119
</profile>
120+
94121
</profiles>
95-
<dependencies>
96-
<dependency>
97-
<groupId>org.apache.cxf</groupId>
98-
<artifactId>cxf-rt-frontend-jaxws</artifactId>
99-
<version>${cxf.version}</version>
100-
</dependency>
101-
<dependency>
102-
<groupId>org.apache.cxf</groupId>
103-
<artifactId>cxf-rt-transports-http-jetty</artifactId>
104-
<version>${cxf.version}</version>
105-
</dependency>
106-
<dependency>
107-
<groupId>org.springframework</groupId>
108-
<artifactId>spring-context</artifactId>
109-
<version>${spring.version}</version>
110-
</dependency>
111-
<dependency>
112-
<groupId>org.springframework</groupId>
113-
<artifactId>spring-webmvc</artifactId>
114-
<version>${spring.version}</version>
115-
</dependency>
116-
<dependency>
117-
<groupId>javax.servlet</groupId>
118-
<artifactId>javax.servlet-api</artifactId>
119-
<version>3.1.0</version>
120-
</dependency>
121-
</dependencies>
122+
123+
<properties>
124+
<cxf.version>3.1.6</cxf.version>
125+
<spring.version>4.3.1.RELEASE</spring.version>
126+
<surefire.version>2.19.1</surefire.version>
127+
</properties>
128+
122129
</project>

‎apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/Baeldung.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
@WebService
66
public interface Baeldung {
77
String hello(String name);
8+
89
String register(Student student);
910
}

‎apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ClientConfiguration.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public Object generateProxy() {
1515
public JaxWsProxyFactoryBean proxyFactoryBean() {
1616
JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
1717
proxyFactory.setServiceClass(Baeldung.class);
18-
proxyFactory.setAddress("http://localhost:8080/services/baeldung");
18+
proxyFactory.setAddress("http://localhost:8081/services/baeldung");
1919
return proxyFactory;
2020
}
2121
}

‎apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ServiceConfiguration.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public SpringBus springBus() {
1818
@Bean
1919
public Endpoint endpoint() {
2020
EndpointImpl endpoint = new EndpointImpl(springBus(), new BaeldungImpl());
21-
endpoint.publish("http://localhost:8080/services/baeldung");
21+
endpoint.publish("http://localhost:8081/services/baeldung");
2222
return endpoint;
2323
}
2424
}

‎apache-cxf/cxf-spring/src/test/java/com/baeldung/cxf/spring/StudentTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void whenUsingRegisterMethod_thenCorrect() {
2222
Student student2 = new Student("Eve");
2323
String student1Response = baeldungProxy.register(student1);
2424
String student2Response = baeldungProxy.register(student2);
25-
25+
2626
assertEquals("Adam is registered student number 1", student1Response);
2727
assertEquals("Eve is registered student number 2", student2Response);
2828
}

0 commit comments

Comments
 (0)