diff --git a/apache-cxf/cxf-spring/pom.xml b/apache-cxf/cxf-spring/pom.xml
index aa72edb739..b9dbda7c11 100644
--- a/apache-cxf/cxf-spring/pom.xml
+++ b/apache-cxf/cxf-spring/pom.xml
@@ -8,90 +8,7 @@
apache-cxf
0.0.1-SNAPSHOT
-
- 3.1.6
- 4.3.1.RELEASE
- 2.19.1
-
-
-
-
- maven-war-plugin
- 2.6
-
- false
-
-
-
- maven-surefire-plugin
- ${surefire.version}
-
-
- StudentTest.java
-
-
-
-
-
-
-
- integration
-
-
-
- org.codehaus.cargo
- cargo-maven2-plugin
- 1.5.0
-
-
- jetty9x
- embedded
-
-
-
- localhost
- 8080
-
-
-
-
-
- start-server
- pre-integration-test
-
- start
-
-
-
- stop-server
- post-integration-test
-
- stop
-
-
-
-
-
- maven-surefire-plugin
- ${surefire.version}
-
-
- integration-test
-
- test
-
-
-
- none
-
-
-
-
-
-
-
-
-
+
org.apache.cxf
@@ -119,4 +36,94 @@
3.1.0
+
+
+
+
+ maven-war-plugin
+ 2.6
+
+ false
+
+
+
+ maven-surefire-plugin
+ ${surefire.version}
+
+
+ StudentTest.java
+
+
+
+
+
+
+
+
+ integration
+
+
+
+ org.codehaus.cargo
+ cargo-maven2-plugin
+ 1.5.0
+
+
+ jetty9x
+ embedded
+
+
+
+ localhost
+ 8081
+
+
+
+
+
+ start-server
+ pre-integration-test
+
+ start
+
+
+
+ stop-server
+ post-integration-test
+
+ stop
+
+
+
+
+
+
+ maven-surefire-plugin
+ ${surefire.version}
+
+
+ integration-test
+
+ test
+
+
+
+ none
+
+
+
+
+
+
+
+
+
+
+
+
+ 3.1.6
+ 4.3.1.RELEASE
+ 2.19.1
+
+
diff --git a/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/Baeldung.java b/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/Baeldung.java
index 4f880e6ada..b66e4c2fbf 100644
--- a/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/Baeldung.java
+++ b/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/Baeldung.java
@@ -5,5 +5,6 @@ import javax.jws.WebService;
@WebService
public interface Baeldung {
String hello(String name);
+
String register(Student student);
}
\ No newline at end of file
diff --git a/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ClientConfiguration.java b/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ClientConfiguration.java
index a2f124705b..021bcc6f66 100644
--- a/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ClientConfiguration.java
+++ b/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ClientConfiguration.java
@@ -15,7 +15,7 @@ public class ClientConfiguration {
public JaxWsProxyFactoryBean proxyFactoryBean() {
JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
proxyFactory.setServiceClass(Baeldung.class);
- proxyFactory.setAddress("http://localhost:8080/services/baeldung");
+ proxyFactory.setAddress("http://localhost:8081/services/baeldung");
return proxyFactory;
}
}
\ No newline at end of file
diff --git a/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ServiceConfiguration.java b/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ServiceConfiguration.java
index f1fac579ab..0bc60fb790 100644
--- a/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ServiceConfiguration.java
+++ b/apache-cxf/cxf-spring/src/main/java/com/baeldung/cxf/spring/ServiceConfiguration.java
@@ -18,7 +18,7 @@ public class ServiceConfiguration {
@Bean
public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(springBus(), new BaeldungImpl());
- endpoint.publish("http://localhost:8080/services/baeldung");
+ endpoint.publish("http://localhost:8081/services/baeldung");
return endpoint;
}
}
\ No newline at end of file
diff --git a/apache-cxf/cxf-spring/src/test/java/com/baeldung/cxf/spring/StudentTest.java b/apache-cxf/cxf-spring/src/test/java/com/baeldung/cxf/spring/StudentTest.java
index 794275b4d6..7466944e04 100644
--- a/apache-cxf/cxf-spring/src/test/java/com/baeldung/cxf/spring/StudentTest.java
+++ b/apache-cxf/cxf-spring/src/test/java/com/baeldung/cxf/spring/StudentTest.java
@@ -22,7 +22,7 @@ public class StudentTest {
Student student2 = new Student("Eve");
String student1Response = baeldungProxy.register(student1);
String student2Response = baeldungProxy.register(student2);
-
+
assertEquals("Adam is registered student number 1", student1Response);
assertEquals("Eve is registered student number 2", student2Response);
}