Skip to content

Commit 6aeb90d

Browse files
BAEL-611 Add JAX-WS client and JUnit Test (eugenp#1725)
* Add NDC and JBoss Logging to the demo application * NDC for Log4j, Log4j2 and JBoss Logging * Simplify NDC example by making it a single operation instead of two * Make NDC example as RestController, Use JBoss Logging only as a logging bridge * Fix merge conflicts in pull request - log-mdc pom.xml updated * BAEL-445 Update to Spring security SpEL example * BAEL-445: Change tabs to spaces in the updated code * BAEL-245: Add Enum Serialization exmaple * BAEL-245: Remove the folder jackson/src/test/java/com/baeldung/jackson/dtos/withEnum as the example is not used anymore * Add more enum serialization examples to align with previous example and prevent build fail * BAEL-611: Minor formatting changes * BAEL-611: Update Test case method names * BAEL-611 Add JAX-WS client and JUnit Test
1 parent cee7e71 commit 6aeb90d

24 files changed

Lines changed: 1559 additions & 36 deletions

‎jee7/pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
<exclude>**/*IntegrationTest.java</exclude>
172172
<exclude>**/*LongRunningUnitTest.java</exclude>
173173
<exclude>**/*ManualTest.java</exclude>
174+
<exclude>**/*LiveTest.java</exclude>
174175
</excludes>
175176
</configuration>
176177
</plugin>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
2+
package com.baeldung.jaxws.client;
3+
4+
import javax.xml.bind.annotation.XmlAccessType;
5+
import javax.xml.bind.annotation.XmlAccessorType;
6+
import javax.xml.bind.annotation.XmlType;
7+
8+
9+
/**
10+
* <p>Java class for addEmployee complex type.
11+
*
12+
* <p>The following schema fragment specifies the expected content contained within this class.
13+
*
14+
* <pre>
15+
* &lt;complexType name="addEmployee">
16+
* &lt;complexContent>
17+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18+
* &lt;sequence>
19+
* &lt;element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
20+
* &lt;element name="arg1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
21+
* &lt;/sequence>
22+
* &lt;/restriction>
23+
* &lt;/complexContent>
24+
* &lt;/complexType>
25+
* </pre>
26+
*
27+
*
28+
*/
29+
@XmlAccessorType(XmlAccessType.FIELD)
30+
@XmlType(name = "addEmployee", propOrder = {
31+
"arg0",
32+
"arg1"
33+
})
34+
public class AddEmployee {
35+
36+
protected int arg0;
37+
protected String arg1;
38+
39+
/**
40+
* Gets the value of the arg0 property.
41+
*
42+
*/
43+
public int getArg0() {
44+
return arg0;
45+
}
46+
47+
/**
48+
* Sets the value of the arg0 property.
49+
*
50+
*/
51+
public void setArg0(int value) {
52+
this.arg0 = value;
53+
}
54+
55+
/**
56+
* Gets the value of the arg1 property.
57+
*
58+
* @return
59+
* possible object is
60+
* {@link String }
61+
*
62+
*/
63+
public String getArg1() {
64+
return arg1;
65+
}
66+
67+
/**
68+
* Sets the value of the arg1 property.
69+
*
70+
* @param value
71+
* allowed object is
72+
* {@link String }
73+
*
74+
*/
75+
public void setArg1(String value) {
76+
this.arg1 = value;
77+
}
78+
79+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
package com.baeldung.jaxws.client;
3+
4+
import javax.xml.bind.annotation.XmlAccessType;
5+
import javax.xml.bind.annotation.XmlAccessorType;
6+
import javax.xml.bind.annotation.XmlElement;
7+
import javax.xml.bind.annotation.XmlType;
8+
9+
10+
/**
11+
* <p>Java class for addEmployeeResponse complex type.
12+
*
13+
* <p>The following schema fragment specifies the expected content contained within this class.
14+
*
15+
* <pre>
16+
* &lt;complexType name="addEmployeeResponse">
17+
* &lt;complexContent>
18+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19+
* &lt;sequence>
20+
* &lt;element name="return" type="{http://bottomup.server.jaxws.baeldung.com/}employee" minOccurs="0"/>
21+
* &lt;/sequence>
22+
* &lt;/restriction>
23+
* &lt;/complexContent>
24+
* &lt;/complexType>
25+
* </pre>
26+
*
27+
*
28+
*/
29+
@XmlAccessorType(XmlAccessType.FIELD)
30+
@XmlType(name = "addEmployeeResponse", propOrder = {
31+
"_return"
32+
})
33+
public class AddEmployeeResponse {
34+
35+
@XmlElement(name = "return")
36+
protected Employee _return;
37+
38+
/**
39+
* Gets the value of the return property.
40+
*
41+
* @return
42+
* possible object is
43+
* {@link Employee }
44+
*
45+
*/
46+
public Employee getReturn() {
47+
return _return;
48+
}
49+
50+
/**
51+
* Sets the value of the return property.
52+
*
53+
* @param value
54+
* allowed object is
55+
* {@link Employee }
56+
*
57+
*/
58+
public void setReturn(Employee value) {
59+
this._return = value;
60+
}
61+
62+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
package com.baeldung.jaxws.client;
3+
4+
import javax.xml.bind.annotation.XmlAccessType;
5+
import javax.xml.bind.annotation.XmlAccessorType;
6+
import javax.xml.bind.annotation.XmlType;
7+
8+
9+
/**
10+
* <p>Java class for countEmployees complex type.
11+
*
12+
* <p>The following schema fragment specifies the expected content contained within this class.
13+
*
14+
* <pre>
15+
* &lt;complexType name="countEmployees">
16+
* &lt;complexContent>
17+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18+
* &lt;sequence>
19+
* &lt;/sequence>
20+
* &lt;/restriction>
21+
* &lt;/complexContent>
22+
* &lt;/complexType>
23+
* </pre>
24+
*
25+
*
26+
*/
27+
@XmlAccessorType(XmlAccessType.FIELD)
28+
@XmlType(name = "countEmployees")
29+
public class CountEmployees {
30+
31+
32+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
package com.baeldung.jaxws.client;
3+
4+
import javax.xml.bind.annotation.XmlAccessType;
5+
import javax.xml.bind.annotation.XmlAccessorType;
6+
import javax.xml.bind.annotation.XmlElement;
7+
import javax.xml.bind.annotation.XmlType;
8+
9+
10+
/**
11+
* <p>Java class for countEmployeesResponse complex type.
12+
*
13+
* <p>The following schema fragment specifies the expected content contained within this class.
14+
*
15+
* <pre>
16+
* &lt;complexType name="countEmployeesResponse">
17+
* &lt;complexContent>
18+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19+
* &lt;sequence>
20+
* &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
21+
* &lt;/sequence>
22+
* &lt;/restriction>
23+
* &lt;/complexContent>
24+
* &lt;/complexType>
25+
* </pre>
26+
*
27+
*
28+
*/
29+
@XmlAccessorType(XmlAccessType.FIELD)
30+
@XmlType(name = "countEmployeesResponse", propOrder = {
31+
"_return"
32+
})
33+
public class CountEmployeesResponse {
34+
35+
@XmlElement(name = "return")
36+
protected int _return;
37+
38+
/**
39+
* Gets the value of the return property.
40+
*
41+
*/
42+
public int getReturn() {
43+
return _return;
44+
}
45+
46+
/**
47+
* Sets the value of the return property.
48+
*
49+
*/
50+
public void setReturn(int value) {
51+
this._return = value;
52+
}
53+
54+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
package com.baeldung.jaxws.client;
3+
4+
import javax.xml.bind.annotation.XmlAccessType;
5+
import javax.xml.bind.annotation.XmlAccessorType;
6+
import javax.xml.bind.annotation.XmlType;
7+
8+
9+
/**
10+
* <p>Java class for deleteEmployee complex type.
11+
*
12+
* <p>The following schema fragment specifies the expected content contained within this class.
13+
*
14+
* <pre>
15+
* &lt;complexType name="deleteEmployee">
16+
* &lt;complexContent>
17+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18+
* &lt;sequence>
19+
* &lt;element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
20+
* &lt;/sequence>
21+
* &lt;/restriction>
22+
* &lt;/complexContent>
23+
* &lt;/complexType>
24+
* </pre>
25+
*
26+
*
27+
*/
28+
@XmlAccessorType(XmlAccessType.FIELD)
29+
@XmlType(name = "deleteEmployee", propOrder = {
30+
"arg0"
31+
})
32+
public class DeleteEmployee {
33+
34+
protected int arg0;
35+
36+
/**
37+
* Gets the value of the arg0 property.
38+
*
39+
*/
40+
public int getArg0() {
41+
return arg0;
42+
}
43+
44+
/**
45+
* Sets the value of the arg0 property.
46+
*
47+
*/
48+
public void setArg0(int value) {
49+
this.arg0 = value;
50+
}
51+
52+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
package com.baeldung.jaxws.client;
3+
4+
import javax.xml.bind.annotation.XmlAccessType;
5+
import javax.xml.bind.annotation.XmlAccessorType;
6+
import javax.xml.bind.annotation.XmlElement;
7+
import javax.xml.bind.annotation.XmlType;
8+
9+
10+
/**
11+
* <p>Java class for deleteEmployeeResponse complex type.
12+
*
13+
* <p>The following schema fragment specifies the expected content contained within this class.
14+
*
15+
* <pre>
16+
* &lt;complexType name="deleteEmployeeResponse">
17+
* &lt;complexContent>
18+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
19+
* &lt;sequence>
20+
* &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
21+
* &lt;/sequence>
22+
* &lt;/restriction>
23+
* &lt;/complexContent>
24+
* &lt;/complexType>
25+
* </pre>
26+
*
27+
*
28+
*/
29+
@XmlAccessorType(XmlAccessType.FIELD)
30+
@XmlType(name = "deleteEmployeeResponse", propOrder = {
31+
"_return"
32+
})
33+
public class DeleteEmployeeResponse {
34+
35+
@XmlElement(name = "return")
36+
protected boolean _return;
37+
38+
/**
39+
* Gets the value of the return property.
40+
*
41+
*/
42+
public boolean isReturn() {
43+
return _return;
44+
}
45+
46+
/**
47+
* Sets the value of the return property.
48+
*
49+
*/
50+
public void setReturn(boolean value) {
51+
this._return = value;
52+
}
53+
54+
}

0 commit comments

Comments
 (0)