summaryrefslogtreecommitdiffstats
path: root/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Daten- und Systemintegration/CamelPrototype/src/main/resources')
-rw-r--r--Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/META-INF/spring/camel-context.xml23
-rw-r--r--Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderMailBody.vm12
-rw-r--r--Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderService.wsdl71
-rw-r--r--Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/log4j.properties22
4 files changed, 128 insertions, 0 deletions
diff --git a/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/META-INF/spring/camel-context.xml b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/META-INF/spring/camel-context.xml
new file mode 100644
index 0000000..c412226
--- /dev/null
+++ b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/META-INF/spring/camel-context.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+ <import resource="classpath:META-INF/cxf/cxf.xml"/>
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+ <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
+
+ <!-- create a camel context as to start Camel -->
+ <camelContext xmlns="http://camel.apache.org/schema/spring">
+ <package>de.h_da.fbi.dsi.ws0910.camelprototype</package>
+ </camelContext>
+ <bean id="ordersystem"
+ class="de.h_da.fbi.dsi.ws0910.camelprototype.OrderSystem"
+ destroy-method="shutdown"/>
+ <bean id="ordersystemadaptor"
+ class="de.h_da.fbi.dsi.ws0910.camelprototype.OrderSystemAdaptor">
+ <constructor-arg ref="ordersystem" />
+ </bean>
+</beans> \ No newline at end of file
diff --git a/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderMailBody.vm b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderMailBody.vm
new file mode 100644
index 0000000..0b85af6
--- /dev/null
+++ b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderMailBody.vm
@@ -0,0 +1,12 @@
+Customer $body.customerNo has placed a new order via $headers.from
+
+Order-No.: $headers.orderno
+Cust.No.: $body.customerNo
+
+Art.-No. Article Amount
+====================================================
+#foreach($orderPos in $body.orderpositions)
+$orderPos.articleNo $orderPos.article $orderPos.amount
+#end
+
+This is an auto generated email. You cannot reply. \ No newline at end of file
diff --git a/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderService.wsdl b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderService.wsdl
new file mode 100644
index 0000000..296f6be
--- /dev/null
+++ b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/OrderService.wsdl
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://camelprototype.ws0910.dsi.fbi.h_da.de" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="OrderService" targetNamespace="http://camelprototype.ws0910.dsi.fbi.h_da.de">
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://camelprototype.ws0910.dsi.fbi.h_da.de">
+ <xsd:element name="inputNewOrder">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="customerNo" type="xsd:string" />
+ <xsd:element name="orderpositions"
+ type="tns:orderPosition" maxOccurs="unbounded"
+ minOccurs="1">
+ </xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="outputNewOrder">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="status" type="xsd:string"></xsd:element>
+ <xsd:element name="message" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+
+ <xsd:complexType name="orderPosition">
+ <xsd:sequence>
+ <xsd:element name="article" type="xsd:string"></xsd:element>
+
+ <xsd:element name="amount" type="xsd:int"></xsd:element>
+ <xsd:element name="articleNo" type="xsd:string"></xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="inputNewOrder">
+ <wsdl:part name="in" element="tns:inputNewOrder"></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="outputNewOrder">
+ <wsdl:part name="out" element="tns:outputNewOrder"></wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="OrderEndpoint">
+ <wsdl:operation name="CreateOrder">
+ <wsdl:input message="tns:inputNewOrder" name="input"/>
+ <wsdl:output message="tns:outputNewOrder" name="output"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="OrderServiceBinding" type="tns:OrderEndpoint">
+
+ <soap:binding style="document"
+ transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="CreateOrder">
+
+ <soap:operation
+ soapAction="http://camelprototype.ws0910.dsi.fbi.h_da.de/PlaceNewOrder" />
+ <wsdl:input name="input">
+
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="output">
+
+ <soap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="OrderEndpointService">
+ <wsdl:port binding="tns:OrderServiceBinding" name="OrderService">
+ <soap:address location="http://localhost:8080/camelprototype/webservices/order"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
diff --git a/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/log4j.properties b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/log4j.properties
new file mode 100644
index 0000000..82dd219
--- /dev/null
+++ b/Master/Daten- und Systemintegration/CamelPrototype/src/main/resources/log4j.properties
@@ -0,0 +1,22 @@
+
+# default properties to initialise log4j
+log4j.rootLogger=INFO, console
+
+# Console appender
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+# File appender
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
+log4j.appender.file.file=target/dsi-order.log
+log4j.appender.file.append=true
+
+# settings for specific packages
+#log4j.logger.org.springframework=WARN
+#log4j.logger.org.apache.cxf=WARN
+
+# Camel logging
+log4j.logger.org.apache.camel=INFO \ No newline at end of file