diff options
Diffstat (limited to 'Master/Daten- und Systemintegration/camelprototypewsclient/src/de')
8 files changed, 927 insertions, 0 deletions
diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/InputNewOrder.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/InputNewOrder.java new file mode 100644 index 0000000..339e9e8 --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/InputNewOrder.java @@ -0,0 +1,172 @@ +/**
+ * InputNewOrder.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public class InputNewOrder implements java.io.Serializable {
+ private java.lang.String customerNo;
+
+ private de.h_da.fbi.dsi.ws0910.camelprototype.OrderPosition[] orderpositions;
+
+ public InputNewOrder() {
+ }
+
+ public InputNewOrder(
+ java.lang.String customerNo,
+ de.h_da.fbi.dsi.ws0910.camelprototype.OrderPosition[] orderpositions) {
+ this.customerNo = customerNo;
+ this.orderpositions = orderpositions;
+ }
+
+
+ /**
+ * Gets the customerNo value for this InputNewOrder.
+ *
+ * @return customerNo
+ */
+ public java.lang.String getCustomerNo() {
+ return customerNo;
+ }
+
+
+ /**
+ * Sets the customerNo value for this InputNewOrder.
+ *
+ * @param customerNo
+ */
+ public void setCustomerNo(java.lang.String customerNo) {
+ this.customerNo = customerNo;
+ }
+
+
+ /**
+ * Gets the orderpositions value for this InputNewOrder.
+ *
+ * @return orderpositions
+ */
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OrderPosition[] getOrderpositions() {
+ return orderpositions;
+ }
+
+
+ /**
+ * Sets the orderpositions value for this InputNewOrder.
+ *
+ * @param orderpositions
+ */
+ public void setOrderpositions(de.h_da.fbi.dsi.ws0910.camelprototype.OrderPosition[] orderpositions) {
+ this.orderpositions = orderpositions;
+ }
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OrderPosition getOrderpositions(int i) {
+ return this.orderpositions[i];
+ }
+
+ public void setOrderpositions(int i, de.h_da.fbi.dsi.ws0910.camelprototype.OrderPosition _value) {
+ this.orderpositions[i] = _value;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof InputNewOrder)) return false;
+ InputNewOrder other = (InputNewOrder) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.customerNo==null && other.getCustomerNo()==null) ||
+ (this.customerNo!=null &&
+ this.customerNo.equals(other.getCustomerNo()))) &&
+ ((this.orderpositions==null && other.getOrderpositions()==null) ||
+ (this.orderpositions!=null &&
+ java.util.Arrays.equals(this.orderpositions, other.getOrderpositions())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getCustomerNo() != null) {
+ _hashCode += getCustomerNo().hashCode();
+ }
+ if (getOrderpositions() != null) {
+ for (int i=0;
+ i<java.lang.reflect.Array.getLength(getOrderpositions());
+ i++) {
+ java.lang.Object obj = java.lang.reflect.Array.get(getOrderpositions(), i);
+ if (obj != null &&
+ !obj.getClass().isArray()) {
+ _hashCode += obj.hashCode();
+ }
+ }
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(InputNewOrder.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", ">inputNewOrder"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("customerNo");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "customerNo"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("orderpositions");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "orderpositions"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", "orderPosition"));
+ elemField.setNillable(false);
+ elemField.setMaxOccursUnbounded(true);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpoint.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpoint.java new file mode 100644 index 0000000..38998d0 --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpoint.java @@ -0,0 +1,12 @@ +/**
+ * OrderEndpoint.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public interface OrderEndpoint extends java.rmi.Remote {
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder createOrder(de.h_da.fbi.dsi.ws0910.camelprototype.InputNewOrder in) throws java.rmi.RemoteException;
+}
diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointProxy.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointProxy.java new file mode 100644 index 0000000..730f044 --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointProxy.java @@ -0,0 +1,54 @@ +package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public class OrderEndpointProxy implements de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint {
+ private String _endpoint = null;
+ private de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint orderEndpoint = null;
+
+ public OrderEndpointProxy() {
+ _initOrderEndpointProxy();
+ }
+
+ public OrderEndpointProxy(String endpoint) {
+ _endpoint = endpoint;
+ _initOrderEndpointProxy();
+ }
+
+ private void _initOrderEndpointProxy() {
+ try {
+ orderEndpoint = (new de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpointServiceLocator()).getOrderService();
+ if (orderEndpoint != null) {
+ if (_endpoint != null)
+ ((javax.xml.rpc.Stub)orderEndpoint)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
+ else
+ _endpoint = (String)((javax.xml.rpc.Stub)orderEndpoint)._getProperty("javax.xml.rpc.service.endpoint.address");
+ }
+
+ }
+ catch (javax.xml.rpc.ServiceException serviceException) {}
+ }
+
+ public String getEndpoint() {
+ return _endpoint;
+ }
+
+ public void setEndpoint(String endpoint) {
+ _endpoint = endpoint;
+ if (orderEndpoint != null)
+ ((javax.xml.rpc.Stub)orderEndpoint)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
+
+ }
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint getOrderEndpoint() {
+ if (orderEndpoint == null)
+ _initOrderEndpointProxy();
+ return orderEndpoint;
+ }
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder createOrder(de.h_da.fbi.dsi.ws0910.camelprototype.InputNewOrder in) throws java.rmi.RemoteException{
+ if (orderEndpoint == null)
+ _initOrderEndpointProxy();
+ return orderEndpoint.createOrder(in);
+ }
+
+
+}
\ No newline at end of file diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointService.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointService.java new file mode 100644 index 0000000..e18dcf8 --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointService.java @@ -0,0 +1,16 @@ +/**
+ * OrderEndpointService.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public interface OrderEndpointService extends javax.xml.rpc.Service {
+ public java.lang.String getOrderServiceAddress();
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint getOrderService() throws javax.xml.rpc.ServiceException;
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint getOrderService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
+}
diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointServiceLocator.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointServiceLocator.java new file mode 100644 index 0000000..f1f6810 --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderEndpointServiceLocator.java @@ -0,0 +1,142 @@ +/**
+ * OrderEndpointServiceLocator.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public class OrderEndpointServiceLocator extends org.apache.axis.client.Service implements de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpointService {
+
+ public OrderEndpointServiceLocator() {
+ }
+
+
+ public OrderEndpointServiceLocator(org.apache.axis.EngineConfiguration config) {
+ super(config);
+ }
+
+ public OrderEndpointServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
+ super(wsdlLoc, sName);
+ }
+
+ // Use to get a proxy class for OrderService
+ private java.lang.String OrderService_address = "http://localhost:8080/camelprototype/webservices/order";
+
+ public java.lang.String getOrderServiceAddress() {
+ return OrderService_address;
+ }
+
+ // The WSDD service name defaults to the port name.
+ private java.lang.String OrderServiceWSDDServiceName = "OrderService";
+
+ public java.lang.String getOrderServiceWSDDServiceName() {
+ return OrderServiceWSDDServiceName;
+ }
+
+ public void setOrderServiceWSDDServiceName(java.lang.String name) {
+ OrderServiceWSDDServiceName = name;
+ }
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint getOrderService() throws javax.xml.rpc.ServiceException {
+ java.net.URL endpoint;
+ try {
+ endpoint = new java.net.URL(OrderService_address);
+ }
+ catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+ return getOrderService(endpoint);
+ }
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint getOrderService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
+ try {
+ de.h_da.fbi.dsi.ws0910.camelprototype.OrderServiceBindingStub _stub = new de.h_da.fbi.dsi.ws0910.camelprototype.OrderServiceBindingStub(portAddress, this);
+ _stub.setPortName(getOrderServiceWSDDServiceName());
+ return _stub;
+ }
+ catch (org.apache.axis.AxisFault e) {
+ return null;
+ }
+ }
+
+ public void setOrderServiceEndpointAddress(java.lang.String address) {
+ OrderService_address = address;
+ }
+
+ /**
+ * For the given interface, get the stub implementation.
+ * If this service has no port for the given interface,
+ * then ServiceException is thrown.
+ */
+ public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
+ try {
+ if (de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint.class.isAssignableFrom(serviceEndpointInterface)) {
+ de.h_da.fbi.dsi.ws0910.camelprototype.OrderServiceBindingStub _stub = new de.h_da.fbi.dsi.ws0910.camelprototype.OrderServiceBindingStub(new java.net.URL(OrderService_address), this);
+ _stub.setPortName(getOrderServiceWSDDServiceName());
+ return _stub;
+ }
+ }
+ catch (java.lang.Throwable t) {
+ throw new javax.xml.rpc.ServiceException(t);
+ }
+ throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
+ }
+
+ /**
+ * For the given interface, get the stub implementation.
+ * If this service has no port for the given interface,
+ * then ServiceException is thrown.
+ */
+ public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
+ if (portName == null) {
+ return getPort(serviceEndpointInterface);
+ }
+ java.lang.String inputPortName = portName.getLocalPart();
+ if ("OrderService".equals(inputPortName)) {
+ return getOrderService();
+ }
+ else {
+ java.rmi.Remote _stub = getPort(serviceEndpointInterface);
+ ((org.apache.axis.client.Stub) _stub).setPortName(portName);
+ return _stub;
+ }
+ }
+
+ public javax.xml.namespace.QName getServiceName() {
+ return new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", "OrderEndpointService");
+ }
+
+ private java.util.HashSet ports = null;
+
+ public java.util.Iterator getPorts() {
+ if (ports == null) {
+ ports = new java.util.HashSet();
+ ports.add(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", "OrderService"));
+ }
+ return ports.iterator();
+ }
+
+ /**
+ * Set the endpoint address for the specified port name.
+ */
+ public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
+
+if ("OrderService".equals(portName)) {
+ setOrderServiceEndpointAddress(address);
+ }
+ else
+{ // Unknown Port Name
+ throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
+ }
+ }
+
+ /**
+ * Set the endpoint address for the specified port name.
+ */
+ public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
+ setEndpointAddress(portName.getLocalPart(), address);
+ }
+
+}
diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderPosition.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderPosition.java new file mode 100644 index 0000000..bb71d1e --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderPosition.java @@ -0,0 +1,187 @@ +/**
+ * OrderPosition.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public class OrderPosition implements java.io.Serializable {
+ private java.lang.String article;
+
+ private int amount;
+
+ private java.lang.String articleNo;
+
+ public OrderPosition() {
+ }
+
+ public OrderPosition(
+ java.lang.String article,
+ int amount,
+ java.lang.String articleNo) {
+ this.article = article;
+ this.amount = amount;
+ this.articleNo = articleNo;
+ }
+
+
+ /**
+ * Gets the article value for this OrderPosition.
+ *
+ * @return article
+ */
+ public java.lang.String getArticle() {
+ return article;
+ }
+
+
+ /**
+ * Sets the article value for this OrderPosition.
+ *
+ * @param article
+ */
+ public void setArticle(java.lang.String article) {
+ this.article = article;
+ }
+
+
+ /**
+ * Gets the amount value for this OrderPosition.
+ *
+ * @return amount
+ */
+ public int getAmount() {
+ return amount;
+ }
+
+
+ /**
+ * Sets the amount value for this OrderPosition.
+ *
+ * @param amount
+ */
+ public void setAmount(int amount) {
+ this.amount = amount;
+ }
+
+
+ /**
+ * Gets the articleNo value for this OrderPosition.
+ *
+ * @return articleNo
+ */
+ public java.lang.String getArticleNo() {
+ return articleNo;
+ }
+
+
+ /**
+ * Sets the articleNo value for this OrderPosition.
+ *
+ * @param articleNo
+ */
+ public void setArticleNo(java.lang.String articleNo) {
+ this.articleNo = articleNo;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof OrderPosition)) return false;
+ OrderPosition other = (OrderPosition) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.article==null && other.getArticle()==null) ||
+ (this.article!=null &&
+ this.article.equals(other.getArticle()))) &&
+ this.amount == other.getAmount() &&
+ ((this.articleNo==null && other.getArticleNo()==null) ||
+ (this.articleNo!=null &&
+ this.articleNo.equals(other.getArticleNo())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getArticle() != null) {
+ _hashCode += getArticle().hashCode();
+ }
+ _hashCode += getAmount();
+ if (getArticleNo() != null) {
+ _hashCode += getArticleNo().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(OrderPosition.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", "orderPosition"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("article");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "article"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("amount");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "amount"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("articleNo");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "articleNo"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderServiceBindingStub.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderServiceBindingStub.java new file mode 100644 index 0000000..561dfa7 --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OrderServiceBindingStub.java @@ -0,0 +1,189 @@ +/**
+ * OrderServiceBindingStub.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public class OrderServiceBindingStub extends org.apache.axis.client.Stub implements de.h_da.fbi.dsi.ws0910.camelprototype.OrderEndpoint {
+ private java.util.Vector cachedSerClasses = new java.util.Vector();
+ private java.util.Vector cachedSerQNames = new java.util.Vector();
+ private java.util.Vector cachedSerFactories = new java.util.Vector();
+ private java.util.Vector cachedDeserFactories = new java.util.Vector();
+
+ static org.apache.axis.description.OperationDesc [] _operations;
+
+ static {
+ _operations = new org.apache.axis.description.OperationDesc[1];
+ _initOperationDesc1();
+ } +
+ private static void _initOperationDesc1(){
+ org.apache.axis.description.OperationDesc oper;
+ org.apache.axis.description.ParameterDesc param;
+ oper = new org.apache.axis.description.OperationDesc();
+ oper.setName("CreateOrder");
+ param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", "inputNewOrder"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", ">inputNewOrder"), de.h_da.fbi.dsi.ws0910.camelprototype.InputNewOrder.class, false, false);
+ oper.addParameter(param);
+ oper.setReturnType(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", ">outputNewOrder"));
+ oper.setReturnClass(de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder.class);
+ oper.setReturnQName(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", "outputNewOrder"));
+ oper.setStyle(org.apache.axis.constants.Style.DOCUMENT);
+ oper.setUse(org.apache.axis.constants.Use.LITERAL);
+ _operations[0] = oper;
+
+ }
+
+ public OrderServiceBindingStub() throws org.apache.axis.AxisFault {
+ this(null);
+ }
+
+ public OrderServiceBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+ this(service);
+ super.cachedEndpoint = endpointURL;
+ }
+
+ public OrderServiceBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
+ if (service == null) {
+ super.service = new org.apache.axis.client.Service();
+ } else {
+ super.service = service;
+ }
+ ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
+ java.lang.Class cls;
+ javax.xml.namespace.QName qName;
+ javax.xml.namespace.QName qName2;
+ java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
+ java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
+ java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
+ java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
+ java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
+ java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
+ java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
+ java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
+ java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
+ java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
+ qName = new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", ">inputNewOrder");
+ cachedSerQNames.add(qName);
+ cls = de.h_da.fbi.dsi.ws0910.camelprototype.InputNewOrder.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", ">outputNewOrder");
+ cachedSerQNames.add(qName);
+ cls = de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ qName = new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", "orderPosition");
+ cachedSerQNames.add(qName);
+ cls = de.h_da.fbi.dsi.ws0910.camelprototype.OrderPosition.class;
+ cachedSerClasses.add(cls);
+ cachedSerFactories.add(beansf);
+ cachedDeserFactories.add(beandf);
+
+ }
+
+ protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
+ try {
+ org.apache.axis.client.Call _call = super._createCall();
+ if (super.maintainSessionSet) {
+ _call.setMaintainSession(super.maintainSession);
+ }
+ if (super.cachedUsername != null) {
+ _call.setUsername(super.cachedUsername);
+ }
+ if (super.cachedPassword != null) {
+ _call.setPassword(super.cachedPassword);
+ }
+ if (super.cachedEndpoint != null) {
+ _call.setTargetEndpointAddress(super.cachedEndpoint);
+ }
+ if (super.cachedTimeout != null) {
+ _call.setTimeout(super.cachedTimeout);
+ }
+ if (super.cachedPortName != null) {
+ _call.setPortName(super.cachedPortName);
+ }
+ java.util.Enumeration keys = super.cachedProperties.keys();
+ while (keys.hasMoreElements()) {
+ java.lang.String key = (java.lang.String) keys.nextElement();
+ _call.setProperty(key, super.cachedProperties.get(key));
+ }
+ // All the type mapping information is registered
+ // when the first call is made.
+ // The type mapping information is actually registered in
+ // the TypeMappingRegistry of the service, which
+ // is the reason why registration is only needed for the first call.
+ synchronized (this) {
+ if (firstCall()) {
+ // must set encoding style before registering serializers
+ _call.setEncodingStyle(null);
+ for (int i = 0; i < cachedSerFactories.size(); ++i) {
+ java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
+ javax.xml.namespace.QName qName =
+ (javax.xml.namespace.QName) cachedSerQNames.get(i);
+ java.lang.Object x = cachedSerFactories.get(i);
+ if (x instanceof Class) {
+ java.lang.Class sf = (java.lang.Class)
+ cachedSerFactories.get(i);
+ java.lang.Class df = (java.lang.Class)
+ cachedDeserFactories.get(i);
+ _call.registerTypeMapping(cls, qName, sf, df, false);
+ }
+ else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
+ org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
+ cachedSerFactories.get(i);
+ org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
+ cachedDeserFactories.get(i);
+ _call.registerTypeMapping(cls, qName, sf, df, false);
+ }
+ }
+ }
+ }
+ return _call;
+ }
+ catch (java.lang.Throwable _t) {
+ throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
+ }
+ }
+
+ public de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder createOrder(de.h_da.fbi.dsi.ws0910.camelprototype.InputNewOrder in) throws java.rmi.RemoteException {
+ if (super.cachedEndpoint == null) {
+ throw new org.apache.axis.NoEndPointException();
+ }
+ org.apache.axis.client.Call _call = createCall();
+ _call.setOperation(_operations[0]);
+ _call.setUseSOAPAction(true);
+ _call.setSOAPActionURI("http://camelprototype.ws0910.dsi.fbi.h_da.de/PlaceNewOrder");
+ _call.setEncodingStyle(null);
+ _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
+ _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
+ _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
+ _call.setOperationName(new javax.xml.namespace.QName("", "CreateOrder"));
+
+ setRequestHeaders(_call);
+ setAttachments(_call);
+ try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in});
+
+ if (_resp instanceof java.rmi.RemoteException) {
+ throw (java.rmi.RemoteException)_resp;
+ }
+ else {
+ extractAttachments(_call);
+ try {
+ return (de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder) _resp;
+ } catch (java.lang.Exception _exception) {
+ return (de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder) org.apache.axis.utils.JavaUtils.convert(_resp, de.h_da.fbi.dsi.ws0910.camelprototype.OutputNewOrder.class);
+ }
+ }
+ } catch (org.apache.axis.AxisFault axisFaultException) {
+ throw axisFaultException;
+}
+ }
+
+}
diff --git a/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OutputNewOrder.java b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OutputNewOrder.java new file mode 100644 index 0000000..5089553 --- /dev/null +++ b/Master/Daten- und Systemintegration/camelprototypewsclient/src/de/h_da/fbi/dsi/ws0910/camelprototype/OutputNewOrder.java @@ -0,0 +1,155 @@ +/**
+ * OutputNewOrder.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
+ */
+
+package de.h_da.fbi.dsi.ws0910.camelprototype;
+
+public class OutputNewOrder implements java.io.Serializable {
+ private java.lang.String status;
+
+ private java.lang.String message;
+
+ public OutputNewOrder() {
+ }
+
+ public OutputNewOrder(
+ java.lang.String status,
+ java.lang.String message) {
+ this.status = status;
+ this.message = message;
+ }
+
+
+ /**
+ * Gets the status value for this OutputNewOrder.
+ *
+ * @return status
+ */
+ public java.lang.String getStatus() {
+ return status;
+ }
+
+
+ /**
+ * Sets the status value for this OutputNewOrder.
+ *
+ * @param status
+ */
+ public void setStatus(java.lang.String status) {
+ this.status = status;
+ }
+
+
+ /**
+ * Gets the message value for this OutputNewOrder.
+ *
+ * @return message
+ */
+ public java.lang.String getMessage() {
+ return message;
+ }
+
+
+ /**
+ * Sets the message value for this OutputNewOrder.
+ *
+ * @param message
+ */
+ public void setMessage(java.lang.String message) {
+ this.message = message;
+ }
+
+ private java.lang.Object __equalsCalc = null;
+ public synchronized boolean equals(java.lang.Object obj) {
+ if (!(obj instanceof OutputNewOrder)) return false;
+ OutputNewOrder other = (OutputNewOrder) obj;
+ if (obj == null) return false;
+ if (this == obj) return true;
+ if (__equalsCalc != null) {
+ return (__equalsCalc == obj);
+ }
+ __equalsCalc = obj;
+ boolean _equals;
+ _equals = true &&
+ ((this.status==null && other.getStatus()==null) ||
+ (this.status!=null &&
+ this.status.equals(other.getStatus()))) &&
+ ((this.message==null && other.getMessage()==null) ||
+ (this.message!=null &&
+ this.message.equals(other.getMessage())));
+ __equalsCalc = null;
+ return _equals;
+ }
+
+ private boolean __hashCodeCalc = false;
+ public synchronized int hashCode() {
+ if (__hashCodeCalc) {
+ return 0;
+ }
+ __hashCodeCalc = true;
+ int _hashCode = 1;
+ if (getStatus() != null) {
+ _hashCode += getStatus().hashCode();
+ }
+ if (getMessage() != null) {
+ _hashCode += getMessage().hashCode();
+ }
+ __hashCodeCalc = false;
+ return _hashCode;
+ }
+
+ // Type metadata
+ private static org.apache.axis.description.TypeDesc typeDesc =
+ new org.apache.axis.description.TypeDesc(OutputNewOrder.class, true);
+
+ static {
+ typeDesc.setXmlType(new javax.xml.namespace.QName("http://camelprototype.ws0910.dsi.fbi.h_da.de", ">outputNewOrder"));
+ org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("status");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "status"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ elemField = new org.apache.axis.description.ElementDesc();
+ elemField.setFieldName("message");
+ elemField.setXmlName(new javax.xml.namespace.QName("", "message"));
+ elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
+ elemField.setNillable(false);
+ typeDesc.addFieldDesc(elemField);
+ }
+
+ /**
+ * Return type metadata object
+ */
+ public static org.apache.axis.description.TypeDesc getTypeDesc() {
+ return typeDesc;
+ }
+
+ /**
+ * Get Custom Serializer
+ */
+ public static org.apache.axis.encoding.Serializer getSerializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanSerializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+ /**
+ * Get Custom Deserializer
+ */
+ public static org.apache.axis.encoding.Deserializer getDeserializer(
+ java.lang.String mechType,
+ java.lang.Class _javaType,
+ javax.xml.namespace.QName _xmlType) {
+ return
+ new org.apache.axis.encoding.ser.BeanDeserializer(
+ _javaType, _xmlType, typeDesc);
+ }
+
+}
|
