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>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>

View File

@ -7,10 +7,10 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@WebService
public interface Baeldung {
String hello(String name);
public String hello(String name);
String helloStudent(Student student);
public String helloStudent(Student student);
@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")
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) {
return "Hello " + name;

View File

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

View File

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

View File

@ -16,7 +16,7 @@ public class StudentMap {
}
@XmlType(name = "StudentEntry")
static class StudentEntry {
public static class StudentEntry {
private Integer id;
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 PORT_NAME = new QName("http://introduction.cxf.baeldung.com/", "BaeldungPort");
Service service;
Baeldung baeldungProxy;
Baeldung baeldungImpl;
private Service service;
private Baeldung baeldungProxy;
private Baeldung baeldungImpl;
{
service = Service.create(SERVICE_NAME);