Browse Source

Back to using the shared WS API classes.

peter_backlund 17 years ago
parent
commit
9f97f3f414

+ 1
- 1
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/interfaces/handling/HandlingReportParser.java View File

@@ -1,11 +1,11 @@
1 1
 package se.citerus.dddsample.tracking.core.interfaces.handling;
2 2
 
3
+import com.aggregator.HandlingReport;
3 4
 import org.apache.commons.lang.StringUtils;
4 5
 import se.citerus.dddsample.tracking.core.domain.model.cargo.TrackingId;
5 6
 import se.citerus.dddsample.tracking.core.domain.model.handling.HandlingEvent;
6 7
 import se.citerus.dddsample.tracking.core.domain.model.location.UnLocode;
7 8
 import se.citerus.dddsample.tracking.core.domain.model.voyage.VoyageNumber;
8
-import se.citerus.dddsample.tracking.core.interfaces.handling.ws.aggregator.HandlingReport;
9 9
 
10 10
 import javax.xml.datatype.XMLGregorianCalendar;
11 11
 import java.text.ParseException;

+ 4
- 4
dddsample/tracking/core/src/main/java/se/citerus/dddsample/tracking/core/interfaces/handling/ws/HandlingReportWebService.java View File

@@ -1,5 +1,9 @@
1 1
 package se.citerus.dddsample.tracking.core.interfaces.handling.ws;
2 2
 
3
+import com.aggregator.HandlingReport;
4
+import com.aggregator.HandlingReportErrors;
5
+import com.aggregator.HandlingReportErrors_Exception;
6
+import com.aggregator.HandlingReportService;
3 7
 import org.apache.commons.logging.Log;
4 8
 import org.apache.commons.logging.LogFactory;
5 9
 import org.springframework.stereotype.Service;
@@ -10,10 +14,6 @@ import se.citerus.dddsample.tracking.core.domain.model.handling.HandlingEvent;
10 14
 import se.citerus.dddsample.tracking.core.domain.model.location.UnLocode;
11 15
 import se.citerus.dddsample.tracking.core.domain.model.voyage.VoyageNumber;
12 16
 import static se.citerus.dddsample.tracking.core.interfaces.handling.HandlingReportParser.*;
13
-import se.citerus.dddsample.tracking.core.interfaces.handling.ws.aggregator.HandlingReportService;
14
-import se.citerus.dddsample.tracking.core.interfaces.handling.ws.aggregator.HandlingReport;
15
-import se.citerus.dddsample.tracking.core.interfaces.handling.ws.aggregator.HandlingReportErrors_Exception;
16
-import se.citerus.dddsample.tracking.core.interfaces.handling.ws.aggregator.HandlingReportErrors;
17 17
 
18 18
 import javax.jws.WebParam;
19 19
 import javax.jws.WebService;

+ 0
- 78
dddsample/tracking/core/src/main/resources/HandlingReportService.wsdl View File

@@ -1,78 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<wsdl:definitions name="HandlingReportServiceService"
3
-                  targetNamespace="http://ws.handling.interfaces.dddsample.citerus.se/"
4
-                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
5
-                  xmlns:tns="http://ws.handling.interfaces.dddsample.citerus.se/"
6
-                  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
7
-  <wsdl:types>
8
-    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
9
-               xmlns:tns="http://ws.handling.interfaces.dddsample.citerus.se/" attributeFormDefault="unqualified"
10
-               elementFormDefault="unqualified" targetNamespace="http://ws.handling.interfaces.dddsample.citerus.se/">
11
-      <xs:element name="submitReport" type="tns:submitReport"/>
12
-      <xs:element name="submitReportResponse" type="tns:submitReportResponse"/>
13
-      <xs:complexType name="submitReport">
14
-        <xs:sequence>
15
-          <xs:element minOccurs="0" name="arg0" type="tns:handlingReport"/>
16
-        </xs:sequence>
17
-      </xs:complexType>
18
-      <xs:complexType name="handlingReport">
19
-        <xs:sequence>
20
-          <xs:element name="completionTime" type="xs:dateTime"/>
21
-          <xs:element maxOccurs="unbounded" name="trackingIds" type="xs:string"/>
22
-          <xs:element name="type" type="xs:string"/>
23
-          <xs:element name="unLocode" type="xs:string"/>
24
-          <xs:element minOccurs="0" name="voyageNumber" type="xs:string"/>
25
-        </xs:sequence>
26
-      </xs:complexType>
27
-      <xs:complexType name="submitReportResponse">
28
-        <xs:sequence/>
29
-      </xs:complexType>
30
-      <xs:element name="HandlingReportErrors" type="tns:HandlingReportErrors"/>
31
-      <xs:complexType name="HandlingReportErrors">
32
-        <xs:sequence/>
33
-      </xs:complexType>
34
-    </xs:schema>
35
-  </wsdl:types>
36
-  <wsdl:message name="HandlingReportErrors">
37
-    <wsdl:part name="HandlingReportErrors" element="tns:HandlingReportErrors">
38
-    </wsdl:part>
39
-  </wsdl:message>
40
-  <wsdl:message name="submitReport">
41
-    <wsdl:part name="parameters" element="tns:submitReport">
42
-    </wsdl:part>
43
-  </wsdl:message>
44
-  <wsdl:message name="submitReportResponse">
45
-    <wsdl:part name="parameters" element="tns:submitReportResponse">
46
-    </wsdl:part>
47
-  </wsdl:message>
48
-  <wsdl:portType name="HandlingReportService">
49
-    <wsdl:operation name="submitReport">
50
-      <wsdl:input name="submitReport" message="tns:submitReport">
51
-      </wsdl:input>
52
-      <wsdl:output name="submitReportResponse" message="tns:submitReportResponse">
53
-      </wsdl:output>
54
-      <wsdl:fault name="HandlingReportErrors" message="tns:HandlingReportErrors">
55
-      </wsdl:fault>
56
-    </wsdl:operation>
57
-  </wsdl:portType>
58
-  <wsdl:binding name="HandlingReportServiceServiceSoapBinding" type="tns:HandlingReportService">
59
-    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
60
-    <wsdl:operation name="submitReport">
61
-      <soap:operation soapAction="" style="document"/>
62
-      <wsdl:input name="submitReport">
63
-        <soap:body use="literal"/>
64
-      </wsdl:input>
65
-      <wsdl:output name="submitReportResponse">
66
-        <soap:body use="literal"/>
67
-      </wsdl:output>
68
-      <wsdl:fault name="HandlingReportErrors">
69
-        <soap:fault name="HandlingReportErrors" use="literal"/>
70
-      </wsdl:fault>
71
-    </wsdl:operation>
72
-  </wsdl:binding>
73
-  <wsdl:service name="HandlingReportServiceService">
74
-    <wsdl:port name="HandlingReportServicePort" binding="tns:HandlingReportServiceServiceSoapBinding">
75
-      <soap:address location="http://localhost:9090/HandlingReportServicePort"/>
76
-    </wsdl:port>
77
-  </wsdl:service>
78
-</wsdl:definitions>