forked from eugenp/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
cee7e71
commit 6aeb90d
Showing
24 changed files
with
1,559 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
jee7/src/main/java/com/baeldung/jaxws/client/AddEmployee.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
package com.baeldung.jaxws.client; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for addEmployee complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="addEmployee"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/> | ||
* <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "addEmployee", propOrder = { | ||
"arg0", | ||
"arg1" | ||
}) | ||
public class AddEmployee { | ||
|
||
protected int arg0; | ||
protected String arg1; | ||
|
||
/** | ||
* Gets the value of the arg0 property. | ||
* | ||
*/ | ||
public int getArg0() { | ||
return arg0; | ||
} | ||
|
||
/** | ||
* Sets the value of the arg0 property. | ||
* | ||
*/ | ||
public void setArg0(int value) { | ||
this.arg0 = value; | ||
} | ||
|
||
/** | ||
* Gets the value of the arg1 property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link String } | ||
* | ||
*/ | ||
public String getArg1() { | ||
return arg1; | ||
} | ||
|
||
/** | ||
* Sets the value of the arg1 property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link String } | ||
* | ||
*/ | ||
public void setArg1(String value) { | ||
this.arg1 = value; | ||
} | ||
|
||
} |
62 changes: 62 additions & 0 deletions
62
jee7/src/main/java/com/baeldung/jaxws/client/AddEmployeeResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
package com.baeldung.jaxws.client; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for addEmployeeResponse complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="addEmployeeResponse"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="return" type="{http://bottomup.server.jaxws.baeldung.com/}employee" minOccurs="0"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "addEmployeeResponse", propOrder = { | ||
"_return" | ||
}) | ||
public class AddEmployeeResponse { | ||
|
||
@XmlElement(name = "return") | ||
protected Employee _return; | ||
|
||
/** | ||
* Gets the value of the return property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link Employee } | ||
* | ||
*/ | ||
public Employee getReturn() { | ||
return _return; | ||
} | ||
|
||
/** | ||
* Sets the value of the return property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link Employee } | ||
* | ||
*/ | ||
public void setReturn(Employee value) { | ||
this._return = value; | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
jee7/src/main/java/com/baeldung/jaxws/client/CountEmployees.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
package com.baeldung.jaxws.client; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for countEmployees complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="countEmployees"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "countEmployees") | ||
public class CountEmployees { | ||
|
||
|
||
} |
54 changes: 54 additions & 0 deletions
54
jee7/src/main/java/com/baeldung/jaxws/client/CountEmployeesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
package com.baeldung.jaxws.client; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for countEmployeesResponse complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="countEmployeesResponse"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "countEmployeesResponse", propOrder = { | ||
"_return" | ||
}) | ||
public class CountEmployeesResponse { | ||
|
||
@XmlElement(name = "return") | ||
protected int _return; | ||
|
||
/** | ||
* Gets the value of the return property. | ||
* | ||
*/ | ||
public int getReturn() { | ||
return _return; | ||
} | ||
|
||
/** | ||
* Sets the value of the return property. | ||
* | ||
*/ | ||
public void setReturn(int value) { | ||
this._return = value; | ||
} | ||
|
||
} |
52 changes: 52 additions & 0 deletions
52
jee7/src/main/java/com/baeldung/jaxws/client/DeleteEmployee.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
package com.baeldung.jaxws.client; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for deleteEmployee complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="deleteEmployee"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "deleteEmployee", propOrder = { | ||
"arg0" | ||
}) | ||
public class DeleteEmployee { | ||
|
||
protected int arg0; | ||
|
||
/** | ||
* Gets the value of the arg0 property. | ||
* | ||
*/ | ||
public int getArg0() { | ||
return arg0; | ||
} | ||
|
||
/** | ||
* Sets the value of the arg0 property. | ||
* | ||
*/ | ||
public void setArg0(int value) { | ||
this.arg0 = value; | ||
} | ||
|
||
} |
54 changes: 54 additions & 0 deletions
54
jee7/src/main/java/com/baeldung/jaxws/client/DeleteEmployeeResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
package com.baeldung.jaxws.client; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for deleteEmployeeResponse complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="deleteEmployeeResponse"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="return" type="{http://www.w3.org/2001/XMLSchema}boolean"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "deleteEmployeeResponse", propOrder = { | ||
"_return" | ||
}) | ||
public class DeleteEmployeeResponse { | ||
|
||
@XmlElement(name = "return") | ||
protected boolean _return; | ||
|
||
/** | ||
* Gets the value of the return property. | ||
* | ||
*/ | ||
public boolean isReturn() { | ||
return _return; | ||
} | ||
|
||
/** | ||
* Sets the value of the return property. | ||
* | ||
*/ | ||
public void setReturn(boolean value) { | ||
this._return = value; | ||
} | ||
|
||
} |
Oops, something went wrong.