Merge branch 'master' of https://github.com/nguyennamthai/tutorials into nguyennamthai-master

This commit is contained in:
Zeger Hendrikse 2016-07-08 23:24:38 +02:00
commit d166bb0ca3
7 changed files with 10 additions and 13 deletions

View File

@ -26,9 +26,6 @@
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>

View File

@ -7,10 +7,10 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@WebService @WebService
public interface Baeldung { public interface Baeldung {
String hello(String name); public String hello(String name);
String helloStudent(Student student); public String helloStudent(Student student);
@XmlJavaTypeAdapter(StudentMapAdapter.class) @XmlJavaTypeAdapter(StudentMapAdapter.class)
Map<Integer, Student> getStudents(); public Map<Integer, Student> getStudents();
} }

View File

@ -7,7 +7,7 @@ import javax.jws.WebService;
@WebService(endpointInterface = "com.baeldung.cxf.introduction.Baeldung") @WebService(endpointInterface = "com.baeldung.cxf.introduction.Baeldung")
public class BaeldungImpl implements Baeldung { public class BaeldungImpl implements Baeldung {
Map<Integer, Student> students = new LinkedHashMap<Integer, Student>(); private Map<Integer, Student> students = new LinkedHashMap<Integer, Student>();
public String hello(String name) { public String hello(String name) {
return "Hello " + name; return "Hello " + name;

View File

@ -4,5 +4,5 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@XmlJavaTypeAdapter(StudentAdapter.class) @XmlJavaTypeAdapter(StudentAdapter.class)
public interface Student { public interface Student {
String getName(); public String getName();
} }

View File

@ -4,7 +4,7 @@ import javax.xml.bind.annotation.XmlType;
@XmlType(name = "Student") @XmlType(name = "Student")
public class StudentImpl implements Student { public class StudentImpl implements Student {
String name; private String name;
StudentImpl() { StudentImpl() {
} }

View File

@ -16,7 +16,7 @@ public class StudentMap {
} }
@XmlType(name = "StudentEntry") @XmlType(name = "StudentEntry")
static class StudentEntry { public static class StudentEntry {
private Integer id; private Integer id;
private Student student; private Student student;

View File

@ -19,9 +19,9 @@ public class StudentTest {
private static QName SERVICE_NAME = new QName("http://introduction.cxf.baeldung.com/", "Baeldung"); private static QName SERVICE_NAME = new QName("http://introduction.cxf.baeldung.com/", "Baeldung");
private static QName PORT_NAME = new QName("http://introduction.cxf.baeldung.com/", "BaeldungPort"); private static QName PORT_NAME = new QName("http://introduction.cxf.baeldung.com/", "BaeldungPort");
Service service; private Service service;
Baeldung baeldungProxy; private Baeldung baeldungProxy;
Baeldung baeldungImpl; private Baeldung baeldungImpl;
{ {
service = Service.create(SERVICE_NAME); service = Service.create(SERVICE_NAME);