Skip to content

Commit bb76ebd

Browse files
committed
Using generated source files from WSDL for web service API, instead of having a external library dependency to dddsample.
1 parent ddb5c5f commit bb76ebd

12 files changed

+644
-8
lines changed

register-app/pom.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<plugin>
1515
<artifactId>maven-compiler-plugin</artifactId>
1616
<configuration>
17-
<source>1.5</source>
18-
<target>1.5</target>
17+
<source>1.6</source>
18+
<target>1.6</target>
1919
<encoding>UTF-8</encoding>
2020
</configuration>
2121
</plugin>
@@ -88,11 +88,5 @@
8888
<artifactId>looks</artifactId>
8989
<version>2.1.2</version>
9090
</dependency>
91-
<dependency>
92-
<groupId>se.citerus</groupId>
93-
<artifactId>dddsample</artifactId>
94-
<version>1.1-SNAPSHOT</version>
95-
<classifier>ws-client</classifier>
96-
</dependency>
9791
</dependencies>
9892
</project>
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
2+
package com.aggregator;
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+
import javax.xml.datatype.XMLGregorianCalendar;
9+
import java.util.ArrayList;
10+
import java.util.List;
11+
12+
13+
/**
14+
* <p>Java class for handlingReport complex type.
15+
*
16+
* <p>The following schema fragment specifies the expected content contained within this class.
17+
*
18+
* <pre>
19+
* &lt;complexType name="handlingReport">
20+
* &lt;complexContent>
21+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22+
* &lt;sequence>
23+
* &lt;element name="completionTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
24+
* &lt;element name="trackingIds" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
25+
* &lt;element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
26+
* &lt;element name="unLocode" type="{http://www.w3.org/2001/XMLSchema}string"/>
27+
* &lt;element name="voyageNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
28+
* &lt;/sequence>
29+
* &lt;/restriction>
30+
* &lt;/complexContent>
31+
* &lt;/complexType>
32+
* </pre>
33+
*
34+
*
35+
*/
36+
@XmlAccessorType(XmlAccessType.FIELD)
37+
@XmlType(name = "handlingReport", propOrder = {
38+
"completionTime",
39+
"trackingIds",
40+
"type",
41+
"unLocode",
42+
"voyageNumber"
43+
})
44+
public class HandlingReport {
45+
46+
@XmlElement(required = true)
47+
protected XMLGregorianCalendar completionTime;
48+
@XmlElement(required = true)
49+
protected List<String> trackingIds;
50+
@XmlElement(required = true)
51+
protected String type;
52+
@XmlElement(required = true)
53+
protected String unLocode;
54+
protected String voyageNumber;
55+
56+
/**
57+
* Gets the value of the completionTime property.
58+
*
59+
* @return
60+
* possible object is
61+
* {@link XMLGregorianCalendar }
62+
*
63+
*/
64+
public XMLGregorianCalendar getCompletionTime() {
65+
return completionTime;
66+
}
67+
68+
/**
69+
* Sets the value of the completionTime property.
70+
*
71+
* @param value
72+
* allowed object is
73+
* {@link XMLGregorianCalendar }
74+
*
75+
*/
76+
public void setCompletionTime(XMLGregorianCalendar value) {
77+
this.completionTime = value;
78+
}
79+
80+
/**
81+
* Gets the value of the trackingIds property.
82+
*
83+
* <p>
84+
* This accessor method returns a reference to the live list,
85+
* not a snapshot. Therefore any modification you make to the
86+
* returned list will be present inside the JAXB object.
87+
* This is why there is not a <CODE>set</CODE> method for the trackingIds property.
88+
*
89+
* <p>
90+
* For example, to add a new item, do as follows:
91+
* <pre>
92+
* getTrackingIds().add(newItem);
93+
* </pre>
94+
*
95+
*
96+
* <p>
97+
* Objects of the following type(s) are allowed in the list
98+
* {@link String }
99+
*
100+
*
101+
*/
102+
public List<String> getTrackingIds() {
103+
if (trackingIds == null) {
104+
trackingIds = new ArrayList<String>();
105+
}
106+
return this.trackingIds;
107+
}
108+
109+
/**
110+
* Gets the value of the type property.
111+
*
112+
* @return
113+
* possible object is
114+
* {@link String }
115+
*
116+
*/
117+
public String getType() {
118+
return type;
119+
}
120+
121+
/**
122+
* Sets the value of the type property.
123+
*
124+
* @param value
125+
* allowed object is
126+
* {@link String }
127+
*
128+
*/
129+
public void setType(String value) {
130+
this.type = value;
131+
}
132+
133+
/**
134+
* Gets the value of the unLocode property.
135+
*
136+
* @return
137+
* possible object is
138+
* {@link String }
139+
*
140+
*/
141+
public String getUnLocode() {
142+
return unLocode;
143+
}
144+
145+
/**
146+
* Sets the value of the unLocode property.
147+
*
148+
* @param value
149+
* allowed object is
150+
* {@link String }
151+
*
152+
*/
153+
public void setUnLocode(String value) {
154+
this.unLocode = value;
155+
}
156+
157+
/**
158+
* Gets the value of the voyageNumber property.
159+
*
160+
* @return
161+
* possible object is
162+
* {@link String }
163+
*
164+
*/
165+
public String getVoyageNumber() {
166+
return voyageNumber;
167+
}
168+
169+
/**
170+
* Sets the value of the voyageNumber property.
171+
*
172+
* @param value
173+
* allowed object is
174+
* {@link String }
175+
*
176+
*/
177+
public void setVoyageNumber(String value) {
178+
this.voyageNumber = value;
179+
}
180+
181+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
package com.aggregator;
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 HandlingReportErrors complex type.
11+
*
12+
* <p>The following schema fragment specifies the expected content contained within this class.
13+
*
14+
* <pre>
15+
* &lt;complexType name="HandlingReportErrors">
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 = "HandlingReportErrors")
29+
public class HandlingReportErrors {
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.aggregator;
3+
4+
import javax.xml.ws.WebFault;
5+
6+
7+
/**
8+
* This class was generated by the JAX-WS RI.
9+
* JAX-WS RI 2.1.1 in JDK 6
10+
* Generated source version: 2.1
11+
*
12+
*/
13+
@WebFault(name = "HandlingReportErrors", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/")
14+
public class HandlingReportErrors_Exception
15+
extends Exception
16+
{
17+
18+
/**
19+
* Java type that goes as soapenv:Fault detail element.
20+
*
21+
*/
22+
private HandlingReportErrors faultInfo;
23+
24+
/**
25+
*
26+
* @param message
27+
* @param faultInfo
28+
*/
29+
public HandlingReportErrors_Exception(String message, HandlingReportErrors faultInfo) {
30+
super(message);
31+
this.faultInfo = faultInfo;
32+
}
33+
34+
/**
35+
*
36+
* @param message
37+
* @param faultInfo
38+
* @param cause
39+
*/
40+
public HandlingReportErrors_Exception(String message, HandlingReportErrors faultInfo, Throwable cause) {
41+
super(message, cause);
42+
this.faultInfo = faultInfo;
43+
}
44+
45+
/**
46+
*
47+
* @return
48+
* returns fault bean: com.aggregator.HandlingReportErrors
49+
*/
50+
public HandlingReportErrors getFaultInfo() {
51+
return faultInfo;
52+
}
53+
54+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
package com.aggregator;
3+
4+
import javax.jws.WebMethod;
5+
import javax.jws.WebParam;
6+
import javax.jws.WebService;
7+
import javax.xml.bind.annotation.XmlSeeAlso;
8+
import javax.xml.ws.RequestWrapper;
9+
import javax.xml.ws.ResponseWrapper;
10+
11+
12+
/**
13+
* This class was generated by the JAX-WS RI.
14+
* JAX-WS RI 2.1.1 in JDK 6
15+
* Generated source version: 2.1
16+
*
17+
*/
18+
@WebService(name = "HandlingReportService", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/")
19+
@XmlSeeAlso({
20+
ObjectFactory.class
21+
})
22+
public interface HandlingReportService {
23+
24+
25+
/**
26+
*
27+
* @param arg0
28+
* @throws HandlingReportErrors_Exception
29+
*/
30+
@WebMethod
31+
@RequestWrapper(localName = "submitReport", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReport")
32+
@ResponseWrapper(localName = "submitReportResponse", targetNamespace = "http://ws.handling.interfaces.dddsample.citerus.se/", className = "com.aggregator.SubmitReportResponse")
33+
public void submitReport(
34+
@WebParam(name = "arg0", targetNamespace = "")
35+
HandlingReport arg0)
36+
throws HandlingReportErrors_Exception
37+
;
38+
39+
}

0 commit comments

Comments
 (0)