details: /erp/devel/pi/rev/2eb99c25867b changeset: 12080:2eb99c25867b user: Stefan Hühner <stefan.huehner <at> openbravo.com> date: Tue May 10 13:37:09 2011 +0200 summary: [cleanup] Remove old soap webservices provided by core - remove all soap imlementations - remove deploy+undeploy files from src/ of core - remove special handling of <core>/src/*.wsdd from WebServiceAdmin
diffstat: src/deploy.wsdd | 40 - src/org/openbravo/erpCommon/utility/WebServiceAdmin.java | 7 +- src/org/openbravo/erpCommon/ws/externalSales/BPartner.java | 99 - src/org/openbravo/erpCommon/ws/externalSales/Category.java | 58 - src/org/openbravo/erpCommon/ws/externalSales/ExternalSales.java | 35 - src/org/openbravo/erpCommon/ws/externalSales/ExternalSalesIOrder_data.xsql | 138 -- src/org/openbravo/erpCommon/ws/externalSales/ExternalSalesImpl.java | 514 ---------- src/org/openbravo/erpCommon/ws/externalSales/ExternalSalesOrder_data.xsql | 149 -- src/org/openbravo/erpCommon/ws/externalSales/ExternalSalesProduct_data.xsql | 72 - src/org/openbravo/erpCommon/ws/externalSales/ExternalSales_data.xsql | 46 - src/org/openbravo/erpCommon/ws/externalSales/Order.java | 73 - src/org/openbravo/erpCommon/ws/externalSales/OrderIdentifier.java | 47 - src/org/openbravo/erpCommon/ws/externalSales/OrderLine.java | 76 - src/org/openbravo/erpCommon/ws/externalSales/Payment.java | 49 - src/org/openbravo/erpCommon/ws/externalSales/Product.java | 117 -- src/org/openbravo/erpCommon/ws/externalSales/ProductPlus.java | 38 - src/org/openbravo/erpCommon/ws/externalSales/Tax.java | 59 - src/org/openbravo/erpCommon/ws/services/BusinessPartner.java | 116 -- src/org/openbravo/erpCommon/ws/services/Contact.java | 107 -- src/org/openbravo/erpCommon/ws/services/Customer.java | 27 - src/org/openbravo/erpCommon/ws/services/Location.java | 107 -- src/org/openbravo/erpCommon/ws/services/WebService.java | 44 - src/org/openbravo/erpCommon/ws/services/WebServiceImpl.java | 320 ------ src/org/openbravo/erpCommon/ws/services/WebServicesAddress_data.xsql | 73 - src/org/openbravo/erpCommon/ws/services/WebServicesContact_data.xsql | 62 - src/org/openbravo/erpCommon/ws/services/WebServicesCustomer_data.xsql | 100 - src/org/openbravo/erpCommon/ws/services/WebServices_data.xsql | 35 - src/org/openbravo/services/webservice/BusinessPartner.java | 451 -------- src/org/openbravo/services/webservice/Contact.java | 395 ------- src/org/openbravo/services/webservice/Customer.java | 104 -- src/org/openbravo/services/webservice/Location.java | 395 ------- src/undeploy.wsdd | 21 - 32 files changed, 1 insertions(+), 3973 deletions(-) diffs (truncated from 4125 to 300 lines): diff -r 9b3f99f3d853 -r 2eb99c25867b src/deploy.wsdd --- a/src/deploy.wsdd Tue May 10 14:46:53 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,41 +0,0 @@ -<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> -<!-- - ************************************************************************* - * The contents of this file are subject to the Openbravo Public License - * Version 1.1 (the "License"), being the Mozilla Public License - * Version 1.1 with a permitted attribution clause; you may not use this - * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html - * Software distributed under the License is distributed on an "AS IS" - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - * License for the specific language governing rights and limitations - * under the License. - * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2008 Openbravo SLU - * All Rights Reserved. - * Contributor(s): ______________________________________. - ************************************************************************ ---> - <service name="ExternalSales" provider="java:RPC"> - <parameter name="className" value="org.openbravo.erpCommon.ws.externalSales.ExternalSalesImpl"/> - <parameter name="allowedMethods" value="*"/> - <beanMapping qname="myNS:Product" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.Product"/> - <beanMapping qname="myNS:ProductPlus" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.ProductPlus"/> - <beanMapping qname="myNS:Tax" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.Tax"/> - <beanMapping qname="myNS:Category" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.Category"/> - <beanMapping qname="myNS:BPartner" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.BPartner"/> - <beanMapping qname="myNS:Order" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.Order"/> - <beanMapping qname="myNS:OrderLine" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.OrderLine"/> - <beanMapping qname="myNS:OrderIdentifier" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.OrderIdentifier"/> - <beanMapping qname="myNS:Payment" xmlns:myNS="/services/ExternalSales" languageSpecificType="java:org.openbravo.erpCommon.ws.externalSales.Payment"/> - </service> - <service name="WebService" provider="java:RPC"> - <parameter name="className" value="org.openbravo.erpCommon.ws.services.WebServiceImpl"/> - <parameter name="allowedMethods" value="*"/> - <beanMapping qname="myNS:BusinessPartner" xmlns:myNS="/services/WebService" languageSpecificType="java:org.openbravo.erpCommon.ws.services.BusinessPartner"/> - <beanMapping qname="myNS:Contact" xmlns:myNS="/services/WebService" languageSpecificType="java:org.openbravo.erpCommon.ws.services.Contact"/> - <beanMapping qname="myNS:Customer" xmlns:myNS="/services/WebService" languageSpecificType="java:org.openbravo.erpCommon.ws.services.Customer"/> - <beanMapping qname="myNS:Location" xmlns:myNS="/services/WebService" languageSpecificType="java:org.openbravo.erpCommon.ws.services.Location"/> - </service> -</deployment> diff -r 9b3f99f3d853 -r 2eb99c25867b src/org/openbravo/erpCommon/utility/WebServiceAdmin.java --- a/src/org/openbravo/erpCommon/utility/WebServiceAdmin.java Tue May 10 14:46:53 2011 +0200 +++ b/src/org/openbravo/erpCommon/utility/WebServiceAdmin.java Tue May 10 13:37:09 2011 +0200 @@ -44,15 +44,10 @@ throw new BuildException("Not valid action: " + action + ". It must be deploy/undeploy."); } - // (un)deploy core webservices - File wssdFile = new File(baseDir + "/src/" + wsddFileName); - if (wssdFile.exists()) { - deployFile(wssdFile); - } // (un)deploy module webservices File modulesDir = new File(baseDir + "/modules"); for (File module : modulesDir.listFiles()) { - wssdFile = new File(module.getAbsoluteFile() + "/src/" + wsddFileName); + File wssdFile = new File(module.getAbsoluteFile() + "/src/" + wsddFileName); if (wssdFile.exists()) { deployFile(wssdFile); } diff -r 9b3f99f3d853 -r 2eb99c25867b src/org/openbravo/erpCommon/ws/externalSales/BPartner.java --- a/src/org/openbravo/erpCommon/ws/externalSales/BPartner.java Tue May 10 14:46:53 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,99 +0,0 @@ -/* - ************************************************************************* - * The contents of this file are subject to the Openbravo Public License - * Version 1.1 (the "License"), being the Mozilla Public License - * Version 1.1 with a permitted attribution clause; you may not use this - * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html - * Software distributed under the License is distributed on an "AS IS" - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - * License for the specific language governing rights and limitations - * under the License. - * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2006 Openbravo SLU - * All Rights Reserved. - * Contributor(s): ______________________________________. - ************************************************************************ - */ - -package org.openbravo.erpCommon.ws.externalSales; - -public class BPartner { - private java.lang.String id; - private java.lang.String name; - private java.lang.String country; - private java.lang.String region; - private java.lang.String city; - private java.lang.String postal; - private java.lang.String address1; - private java.lang.String address2; - - /** Creates a new instance of BPartner */ - public BPartner() { - } - - public java.lang.String getId() { - return id; - } - - public void setId(java.lang.String id) { - this.id = id; - } - - public java.lang.String getName() { - return name; - } - - public void setName(java.lang.String name) { - this.name = name; - } - - public java.lang.String getCountry() { - return country; - } - - public void setCountry(java.lang.String country) { - this.country = country; - } - - public java.lang.String getRegion() { - return region; - } - - public void setRegion(java.lang.String region) { - this.region = region; - } - - public java.lang.String getCity() { - return city; - } - - public void setCity(java.lang.String city) { - this.city = city; - } - - public java.lang.String getPostal() { - return postal; - } - - public void setPostal(java.lang.String postal) { - this.postal = postal; - } - - public java.lang.String getAddress1() { - return address1; - } - - public void setAddress1(java.lang.String address1) { - this.address1 = address1; - } - - public java.lang.String getAddress2() { - return address2; - } - - public void setAddress2(java.lang.String address2) { - this.address2 = address2; - } -} diff -r 9b3f99f3d853 -r 2eb99c25867b src/org/openbravo/erpCommon/ws/externalSales/Category.java --- a/src/org/openbravo/erpCommon/ws/externalSales/Category.java Tue May 10 14:46:53 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -/* - ************************************************************************* - * The contents of this file are subject to the Openbravo Public License - * Version 1.1 (the "License"), being the Mozilla Public License - * Version 1.1 with a permitted attribution clause; you may not use this - * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html - * Software distributed under the License is distributed on an "AS IS" - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - * License for the specific language governing rights and limitations - * under the License. - * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2006 Openbravo SLU - * All Rights Reserved. - * Contributor(s): ______________________________________. - ************************************************************************ - */ - -package org.openbravo.erpCommon.ws.externalSales; - -import java.io.Serializable; - -public class Category extends Object implements Serializable { - private static final long serialVersionUID = 1L; - private String id; - private String name; - private String description; - - /** Creates a new instance of Category */ - public Category() { - } - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - -} diff -r 9b3f99f3d853 -r 2eb99c25867b src/org/openbravo/erpCommon/ws/externalSales/ExternalSales.java --- a/src/org/openbravo/erpCommon/ws/externalSales/ExternalSales.java Tue May 10 14:46:53 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -/* - ************************************************************************* - * The contents of this file are subject to the Openbravo Public License - * Version 1.1 (the "License"), being the Mozilla Public License - * Version 1.1 with a permitted attribution clause; you may not use this - * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html - * Software distributed under the License is distributed on an "AS IS" - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - * License for the specific language governing rights and limitations - * under the License. - * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2006 Openbravo SLU - * All Rights Reserved. - * Contributor(s): ______________________________________. - ************************************************************************ - */ - -package org.openbravo.erpCommon.ws.externalSales; - -public interface ExternalSales { - - public Product[] getProductsCatalog(String entityId, String organizationId, String salesChannel, - String username, String password); - - public ProductPlus[] getProductsPlusCatalog(String entityId, String organizationId, - String salesChannel, String username, String password); - - public boolean uploadOrders(String entityId, String organizationId, String salesChannel, - Order[] newOrders, String username, String password); - - public Order[] getOrders(String entityId, String organizationId, OrderIdentifier[] orderIds, - String username, String password); -} diff -r 9b3f99f3d853 -r 2eb99c25867b src/org/openbravo/erpCommon/ws/externalSales/ExternalSalesIOrder_data.xsql --- a/src/org/openbravo/erpCommon/ws/externalSales/ExternalSalesIOrder_data.xsql Tue May 10 14:46:53 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,139 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<!-- - ************************************************************************* - * The contents of this file are subject to the Openbravo Public License - * Version 1.1 (the "License"), being the Mozilla Public License - * Version 1.1 with a permitted attribution clause; you may not use this - * file except in compliance with the License. You may obtain a copy of - * the License at http://www.openbravo.com/legal/license.html - * Software distributed under the License is distributed on an "AS IS" - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the - * License for the specific language governing rights and limitations - * under the License. - * The Original Code is Openbravo ERP. - * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2001-2008 Openbravo SLU - * All Rights Reserved. - * Contributor(s): ______________________________________. - ************************************************************************ ---> - -<SqlClass name="ExternalSalesIOrderData" package="org.openbravo.erpCommon.ws.externalSales"> - <SqlMethod name="select" type="preparedStatement" return="multiple"> - <SqlMethodComment></SqlMethodComment> - <Sql> - <![CDATA[ - SELECT I_Order_ID, C_BPartner_ID, BPartnerValue, C_BPartner_Location_ID, - COALESCE (Address1,Address2,City) AS Addr, ContactName, Email, ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Openbravo-commits mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbravo-commits
