svn commit: r900298 [1/3] - in /ofbiz/trunk: ./ specialpurpose/ebay/ specialpurpose/ebay/config/ specialpurpose/ebay/data/ specialpurpose/ebay/entitydef/ specialpurpose/ebay/lib/ specialpurpose/ebay/script/ specialpurpose/ebay/script/org/ specialpurpos...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r900298 [1/3] - in /ofbiz/trunk: ./ specialpurpose/ebay/ specialpurpose/ebay/config/ specialpurpose/ebay/data/ specialpurpose/ebay/entitydef/ specialpurpose/ebay/lib/ specialpurpose/ebay/script/ specialpurpose/ebay/script/org/ specialpurpos...

hansbak-2
Author: hansbak
Date: Mon Jan 18 08:22:00 2010
New Revision: 900298

URL: http://svn.apache.org/viewvc?rev=900298&view=rev
Log:
add a storemaintenance option to the ebay component using the Ebay Api

Added:
    ofbiz/trunk/specialpurpose/ebay/lib/
    ofbiz/trunk/specialpurpose/ebay/lib/attributes.jar   (with props)
    ofbiz/trunk/specialpurpose/ebay/lib/ebaycalls.jar   (with props)
    ofbiz/trunk/specialpurpose/ebay/lib/ebaysdkcore.jar   (with props)
    ofbiz/trunk/specialpurpose/ebay/lib/helper.jar   (with props)
    ofbiz/trunk/specialpurpose/ebay/script/
    ofbiz/trunk/specialpurpose/ebay/script/org/
    ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/
    ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/
    ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/
    ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml   (with props)
    ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayStore.java   (with props)
    ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayStoreOptions.java   (with props)
    ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/
    ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/RetrieveStoreOptions.groovy   (with props)
    ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/StoreAccount.groovy   (with props)
    ofbiz/trunk/specialpurpose/ebay/webapp/ebay/store/
    ofbiz/trunk/specialpurpose/ebay/webapp/ebay/store/StoreSetting.ftl   (with props)
    ofbiz/trunk/specialpurpose/ebay/widget/EbayStoreForms.xml   (with props)
Modified:
    ofbiz/trunk/.classpath
    ofbiz/trunk/LICENSE
    ofbiz/trunk/specialpurpose/ebay/build.xml
    ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties
    ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml
    ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml
    ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml
    ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml
    ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml
    ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java
    ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
    ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/controller.xml
    ofbiz/trunk/specialpurpose/ebay/widget/CommonScreens.xml
    ofbiz/trunk/specialpurpose/ebay/widget/EbayForms.xml
    ofbiz/trunk/specialpurpose/ebay/widget/EbayMenus.xml
    ofbiz/trunk/specialpurpose/ebay/widget/EbayScreens.xml

Modified: ofbiz/trunk/.classpath
URL: http://svn.apache.org/viewvc/ofbiz/trunk/.classpath?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/.classpath (original)
+++ ofbiz/trunk/.classpath Mon Jan 18 08:22:00 2010
@@ -171,6 +171,10 @@
     <classpathentry kind="lib" path="specialpurpose/pos/lib/jcl.jar"/>
     <classpathentry kind="lib" path="specialpurpose/pos/lib/jpos18-controls.jar"/>
     <classpathentry kind="lib" path="specialpurpose/pos/lib/looks-2.0.2.jar"/>
+    <classpathentry kind="lib" path="specialpurpose/ebay/lib/attributes.jar"/>
+    <classpathentry kind="lib" path="specialpurpose/ebay/lib/ebaycalls.jar"/>
+    <classpathentry kind="lib" path="specialpurpose/ebay/lib/ebaysdkcore.jar"/>
+    <classpathentry kind="lib" path="specialpurpose/ebay/lib/helper.jar"/>
     <classpathentry kind="src" path="applications/accounting/src" excluding="org/ofbiz/accounting/thirdparty/cybersource/**|org/ofbiz/accounting/thirdparty/verisign/**|org/ofbiz/accounting/thirdparty/worldpay/**|org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java|org/ofbiz/accounting/thirdparty/orbital/**"/>
     <classpathentry kind="src" path="applications/content/src" excluding="org/ofbiz/content/openoffice/|org/ofbiz/content/report/"/>
     <classpathentry kind="src" path="applications/manufacturing/src"/>

Modified: ofbiz/trunk/LICENSE
URL: http://svn.apache.org/viewvc/ofbiz/trunk/LICENSE?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/LICENSE (original)
+++ ofbiz/trunk/LICENSE Mon Jan 18 08:22:00 2010
@@ -1990,6 +1990,10 @@
 COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL):
 ofbiz/trunk/framework/base/lib/juel-2.1.1.jar (contains the javax.el package)
 ofbiz/trunk/framework/base/lib/mail.jar
+ofbiz/trunk/specialpurpose/ebay/lib/attributes.jar
+ofbiz/trunk/specialpurpose/ebay/lib/ebaysdkcore.jar
+ofbiz/trunk/specialpurpose/ebay/lib/helper.jar
+ofbiz/trunk/specialpurpose/ebay/lib/ebaycalls.jar
 =========================================================================
 COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 1.
 

Modified: ofbiz/trunk/specialpurpose/ebay/build.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/build.xml?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/build.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/build.xml Mon Jan 18 08:22:00 2010
@@ -29,6 +29,7 @@
     <property name="name" value="ofbiz-ebay"/>
 
     <path id="local.class.path">
+     <fileset dir="${lib.dir}" includes="*.jar"/>
         <fileset dir="../../framework/base/lib" includes="*.jar"/>
         <fileset dir="../../framework/base/lib/commons" includes="*.jar"/>
         <fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/>

Modified: ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties (original)
+++ ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties Mon Jan 18 08:22:00 2010
@@ -30,6 +30,7 @@
 eBayExport.siteID=0
 # sandbox
 eBayExport.xmlGatewayUri=https://api.sandbox.ebay.com/ws/api.dll
+eBayExport.apiServerUrl=https://api.sandbox.ebay.com/wsapi
 # production
 #eBayExport.xmlGatewayUri=https://api.ebay.com/ws/api.dll
 

Modified: ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml Mon Jan 18 08:22:00 2010
@@ -1,31 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
 -->
 
 <entity-engine-xml>
     <ProductStore productStoreId="9000"/>
     <WebSite webSiteId="EBAY" siteName="eBay" standardContentPrefix="http://demo.ofbiz.org" productStoreId="9000"/>
-    <EbayConfig productStoreId="9000" devId="ppodkYk34Kh-279a-6khr-a07c-06fd1d65824b" appId="ApacheOFB-bf44-4c32-ac45-3e099a32b675" certId="99ca5f9f-dd5c-3de-9a4c-13b247ieidfg" compatibilityLevel="635" siteId="0" xmlGatewayUri="https://api.sandbox.ebay.com/ws/api.dll" webSiteId="EBAY">
+    <EbayConfig productStoreId="9000" devId="ppodkYk34Kh-279a-6khr-a07c-06fd1d65824b" appId="ApacheOFB-bf44-4c32-ac45-3e099a32b675" certId="99ca5f9f-dd5c-3de-9a4c-13b247ieidfg" compatibilityLevel="635" siteId="0" xmlGatewayUri="https://api.sandbox.ebay.com/ws/api.dll" apiServerUrl="https://api.sandbox.ebay.com/wsapi" webSiteId="EBAY">
         <token><![CDATA[APACHEeerer**AQresT**aOFBIZ**Dddddg**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wFddddddddsssererdafjk23232uy+seQ**IzABAA**AAMAAA**6kOEMXRyvyVRLt7vAL7W+5dfjdkfjkldfjlkdjfldj121219fjlkdfjldjf+oRU0d07B0jfdFxJj6OolPHiQN5c0qmVNDRsSKaOucPjXTHSBmVm62p7M9/YmRCag/Mz1DjvDTFyS1kaBinGH2lwd9AjcBSBUbD9tSZVTdKn5PQBh3kkCh5Fe+UK5fyq9OeikM/Bdfafja377dkdkBddDDll+zPbG8pYL13cBgCGj8/zzMSGX2ugZkbU01bCLKkTzLOSqIcxj9xgJ4uDHxhjjizyWlHd2ovFKP8mmc/bEjLANUqS1z0vhR0NHydU/izZR8eYAruTvX6eYzSfsZA85sVOpIAjVEYX9M4CqgXazYxDFAT+y7E4+oM9N+tx8+/dkdkfdoTTKdHhdlKwVmgdULRhW0nP04BMugLpRCQrITSVpSJ1mfkwwb4JEQRNwSSUOe/1P3t21JhUBj3OJjpwC1ds84DSh9nlyykxF3X+EfFxtE4rTKUO+fODRDD5FBDO2+TD3AROz/3u/OWOvTWUm13u2kxMiiEQ3DNkuxN4g7Gj5xhKk7uNMIRRM8YoxoDoiJnbvuLQctBtpn1vibjUJsxTlnq92PLOhsgkp2NfhcxzS1JJfDKX1snOkmWfiluqyW5oDayJoZnrHIVKD0RkYNd2h+U5DOyOJ2/YXYIAPJAcWloGLpKO7k]]></token>
         <customXml><![CDATA[<custom-xml><Currency>USD</Currency><UseTaxTable>false</UseTaxTable><DispatchTimeMax>3</DispatchTimeMax><ReturnPolicy><ReturnsAcceptedOption>ReturnsNotAccepted</ReturnsAcceptedOption></ReturnPolicy><ShippingDetails><ShippingType>Flat</ShippingType><ShippingServiceOptions><ShippingService>UPS2ndDay</ShippingService><ShippingServicePriority>1</ShippingServicePriority><ShippingServiceCost>5</ShippingServiceCost><ShippingServiceAdditionalCost>2</ShippingServiceAdditionalCost><ShippingSurcharge>1</ShippingSurcharge></ShippingServiceOptions></ShippingDetails></custom-xml>]]></customXml>
     </EbayConfig>
-
+    
     <EbayShippingMethod methodTypeEnumId="EBAY_FLAT_RATE" shipmentMethodName="USPSPriority" productStoreId="9000" amount="20.00" carrierPartyId="USPS" shipmentMethodTypeId="STANDARD"/>
     <EbayShippingMethod methodTypeEnumId="EBAY_FLAT_RATE" shipmentMethodName="UPSGround" productStoreId="9000" amount="10.00" carrierPartyId="UPS" shipmentMethodTypeId="GROUND"/>
     <EbayShippingMethod methodTypeEnumId="EBAY_FLAT_RATE" shipmentMethodName="UPS3rdDay" productStoreId="9000" amount="0.00" carrierPartyId="UPS" shipmentMethodTypeId="THIRD_DAY"/>
@@ -36,5 +36,32 @@
     <EbayShippingMethod methodTypeEnumId="EBAY_FLAT_RATE" shipmentMethodName="ShippingMethodStandard" productStoreId="9000" amount="10.00" carrierPartyId="UPS" shipmentMethodTypeId="GROUND"/>
     <EbayShippingMethod methodTypeEnumId="EBAY_FLAT_RATE" shipmentMethodName="StandardInternational" productStoreId="9000" amount="0.00" carrierPartyId="USPS" shipmentMethodTypeId="INT_EXPRESS"/>
     <EbayShippingMethod methodTypeEnumId="EBAY_FLAT_RATE" shipmentMethodName="LocalDelivery" productStoreId="9000" amount="0.00" carrierPartyId="_NA_" shipmentMethodTypeId="STANDARD"/>
-
+    
+    
+    <!-- Ebay Store Demo Data -->
+    <RoleType roleTypeId="EBAY_ACCOUNT" hasTable="N" description="eBay Account"/>
+    <Party partyId="esandbox10543" partyTypeId="PERSON"/>
+    <Person partyId="esandbox10543" firstName="Demo ebay account" lastName="USA"/>
+    <PartyRole partyId="esandbox10543" roleTypeId="EBAY_ACCOUNT"/>
+    <UserLogin userLoginId="esandbox10543" partyId="esandbox10543" currentPassword="{SHA}bbf272ce445e1c48d94096afdba6a7888c1df1fe"/>
+    <ProductStore productStoreId="esandbox10543_store" storeName="OFBiz Ebay Store-USA" companyName="Apache OFBiz" title="Test esandbox10543 store"
+        subtitle="Part of the Open For Business Family of Open Source Software" payToPartyId="esandbox10543" daysToCancelNonPay="30" prorateShipping="Y" prorateTaxes="Y"
+        inventoryFacilityId="WebStoreWarehouse" oneInventoryFacility="Y" checkInventory="Y" reserveInventory="Y" balanceResOnOrderCreation="Y" reserveOrderEnumId="INVRO_FIFO_REC" requireInventory="N"
+        defaultLocaleString="en_US" defaultCurrencyUomId="USD" defaultSalesChannelEnumId="EBAY_SALES_CHANNEL" allowPassword="Y" explodeOrderItems="N" retryFailedAuths="Y" reqReturnInventoryReceive="N"
+        headerApprovedStatus="ORDER_APPROVED" itemApprovedStatus="ITEM_APPROVED" digitalItemApprovedStatus="ITEM_APPROVED" headerDeclinedStatus="ORDER_REJECTED"
+        itemDeclinedStatus="ITEM_REJECTED" headerCancelStatus="ORDER_CANCELLED" itemCancelStatus="ITEM_CANCELLED" orderNumberPrefix="WS"
+        authDeclinedMessage="There has been a problem with your method of payment. Please try a different method or call customer service."
+        authFraudMessage="Your order has been rejected and your account has been disabled due to fraud."
+        authErrorMessage="Problem connecting to payment processor; we will continue to retry and notify you by email."
+        storeCreditValidDays="90" storeCreditAccountEnumId="FIN_ACCOUNT"
+        visualThemeId="EC_DEFAULT" prodSearchExcludeVariants="Y" autoApproveInvoice="Y" shipIfCaptureFails="Y" autoApproveOrder="Y" showOutOfStockProducts="Y"/>
+    <ProductStoreRole partyId="esandbox10543" roleTypeId="EBAY_ACCOUNT" productStoreId="esandbox10543_store" fromDate="2010-01-01 16:19:47.058"/>
+    <ProductStoreCatalog productStoreId="esandbox10543_store" prodCatalogId="eBayCatalog" fromDate="2010-01-01 16:19:47.058"/>
+    
+    <WebSite webSiteId="EBAY" siteName="eBay" standardContentPrefix="http://demo.ofbiz.org" productStoreId="esandbox10543_store"/>
+    <EbayConfig productStoreId="esandbox10543_store" devId="f3586481-93c7-4aaf-ab87-d383d56b71b1" appId="antwebc0f-9bf9-4829-998b-e5e8fb773ac" certId="7f363bc0-11d6-489a-a54d-4a44de82f790" compatibilityLevel="643" siteId="0" xmlGatewayUri="https://api.sandbox.ebay.com/ws/api.dll"  apiServerUrl="https://api.sandbox.ebay.com/wsapi"  webSiteId="EBAY">
+        <token><![CDATA[AgAAAA**AQAAAA**aAAAAA**PC5MSw**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wJnY+lCZiGoA2dj6x9nY+seQ**0jgBAA**AAMAAA**YxqcpdWbgFwYg1G+3AhOonR2/yllz3IJ5VoJyU75texuETwabGgsN4f6OfeBGWejUx10heCKG7wcM4JI+Fqk8Zg64L51JL3/Vm7dYo8VHd8wfixWIdMmhheYFwOdBtxcTb93NLeJa6uxvBJYrSS7O0RcQ3KPhOVJvt7KfVT009o2/02tuX7vbMoHV+Meszli4eVAnB9Fbt6ag2nq46+2/AzMIO4rZE23ozLfh6c4W+QkD6BcaFzLmhVE+7Ni9y7y26QHfUUdjBOEF6ewLpZJsSIoQZC9y4J/yF15Ann9NiamtmFj5IeX4uNIKegEt8EwFSqtpxjgVngcAmMaM8/hk9uQVnFKHTjhK3koUrT7zu/+tk2twJfGF9odb+/5uTVJZ8Lywl/LwEdadv2wjpTdQqHF2bV84cSRhOKrlsYr9xFqgqNDpnmCFXkQKGhycWzMzxcBmiRT5VXJfBjbTGGdmfAf7TVcoU/4C3F3kvzEJhcxU9WbMvj58TmW+VvYS7oy4kOyTiyr3alkz/+HJYGIuttnkzqsIVIPaSXyyuFNWQmQL+0GlJ1n7EoKCevuVsTYgayQEN39TPeXg8ADmf5Pf19BlPxRFNkKvANxE0k3ac+whUwpkfBgx6lApOcwKQMXioi7NrN3MROL/1qrO2+N5sl4kr9nbuvEk9mPDJnmNdB7lzgoESo+se3ZmY9KJ6v08uQ02N1/SjHtmeiojayaR/DqeJiFSoAnU4winzA5GQGNjzEHUpSf1Kj+IZudhT9r]]></token>
+        <customXml><![CDATA[<custom-xml><Currency>USD</Currency><UseTaxTable>false</UseTaxTable><DispatchTimeMax>3</DispatchTimeMax><ReturnPolicy><ReturnsAcceptedOption>ReturnsNotAccepted</ReturnsAcceptedOption></ReturnPolicy><ShippingDetails><ShippingType>Flat</ShippingType><ShippingServiceOptions><ShippingService>UPS2ndDay</ShippingService><ShippingServicePriority>1</ShippingServicePriority><ShippingServiceCost>5</ShippingServiceCost><ShippingServiceAdditionalCost>2</ShippingServiceAdditionalCost><ShippingSurcharge>1</ShippingSurcharge></ShippingServiceOptions></ShippingDetails></custom-xml>]]></customXml>
+    </EbayConfig>
+    
 </entity-engine-xml>

Modified: ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml Mon Jan 18 08:22:00 2010
@@ -24,5 +24,8 @@
     <ProductContentType productContentTypeId="EBAY_DESCRIPTION" description="Detail Page for eBay Auctions"/>
 
     <EnumerationType description="Ebay Ship Types" enumTypeId="EBAY_SHIP_TYPE" hasTable="N" parentTypeId=""/>
-    <Enumeration description="Flat Rate Shipping" enumCode="FLAT_RATE" enumId="EBAY_FLAT_RATE" sequenceId="01" enumTypeId="EBAY_SHIP_TYPE"/>    
+    <Enumeration description="Flat Rate Shipping" enumCode="FLAT_RATE" enumId="EBAY_FLAT_RATE" sequenceId="01" enumTypeId="EBAY_SHIP_TYPE"/>
+
+    <RoleType roleTypeId="COMMENTATOR" hasTable="N" description="Commentator"/>
+    <RoleType roleTypeId="EBAY_ORGANIZATION" hasTable="N" description="eBay Organization"/>
 </entity-engine-xml>

Modified: ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml Mon Jan 18 08:22:00 2010
@@ -51,6 +51,7 @@
         <field name="compatibilityLevel" type="id"></field>
         <field name="siteId" type="id"></field>
         <field name="xmlGatewayUri" type="value"></field>
+        <field name="apiServerUrl" type="value"></field>
         <field name="customXml" type="very-long"></field>
         <field name="webSiteId" type="id-ne"></field>
         <prim-key field="productStoreId"/>      

Added: ofbiz/trunk/specialpurpose/ebay/lib/attributes.jar
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/lib/attributes.jar?rev=900298&view=auto
==============================================================================
Binary file - no diff available.

Propchange: ofbiz/trunk/specialpurpose/ebay/lib/attributes.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: ofbiz/trunk/specialpurpose/ebay/lib/ebaycalls.jar
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/lib/ebaycalls.jar?rev=900298&view=auto
==============================================================================
Binary file - no diff available.

Propchange: ofbiz/trunk/specialpurpose/ebay/lib/ebaycalls.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: ofbiz/trunk/specialpurpose/ebay/lib/ebaysdkcore.jar
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/lib/ebaysdkcore.jar?rev=900298&view=auto
==============================================================================
Binary file - no diff available.

Propchange: ofbiz/trunk/specialpurpose/ebay/lib/ebaysdkcore.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: ofbiz/trunk/specialpurpose/ebay/lib/helper.jar
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/lib/helper.jar?rev=900298&view=auto
==============================================================================
Binary file - no diff available.

Propchange: ofbiz/trunk/specialpurpose/ebay/lib/helper.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml Mon Jan 18 08:22:00 2010
@@ -23,6 +23,7 @@
         xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
     <resource-loader name="main" type="component"/>
     <classpath type="dir" location="config"/>
+    <classpath type="jar" location="lib/*"/>
     <classpath type="jar" location="build/lib/*"/>
     
     <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/>

Added: ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml?rev=900298&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml (added)
+++ ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml Mon Jan 18 08:22:00 2010
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
+    <simple-method method-name="createEbayAccount" short-description="Create Ebay Account">
+        
+        <set-service-fields service-name="createPersonAndUserLogin" to-map="newPerson" map="parameters"/>
+        <call-service service-name="createPersonAndUserLogin" in-map-name="newPerson">
+            <result-to-field result-name="partyId" field="parameters.partyId"/>
+        </call-service>
+        
+        <set field="parameters.storeName" value="${parameters.userLoginId}_store"/>
+        <set-service-fields service-name="createProductStore" to-map="newProductStore" map="parameters"/>
+        <call-service service-name="createProductStore" in-map-name="newProductStore">
+            <result-to-field result-name="productStoreId" field="parameters.productStoreId"/>
+        </call-service>
+        
+        <set field="parameters.roleTypeId" value="EBAY_ACCOUNT"/>
+        <set-service-fields service-name="createPartyRole" to-map="newPartyRole" map="parameters"/>
+        <call-service service-name="createPartyRole" in-map-name="newPartyRole"/>
+        
+        <set-service-fields service-name="createProductStoreRole" to-map="newProductStoreRole" map="parameters"/>
+        <call-service service-name="createProductStoreRole" in-map-name="newProductStoreRole"/>
+        <field-to-result field="parameters.productStoreId" result-name="productStoreId"/>
+        
+    </simple-method>
+</simple-methods>

Propchange: ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/trunk/specialpurpose/ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml (original)
+++ ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml Mon Jan 18 08:22:00 2010
@@ -164,4 +164,60 @@
         <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
     
-</services>
\ No newline at end of file
+    <service name="createEbayAccount" engine="simple"
+        location="component://ebay/script/org/ofbiz/ebay/ebay/EbayServices.xml" invoke="createEbayAccount" auth="true">
+        <attribute name="salutation" mode="IN" type="String" optional="true"/>
+        <attribute name="firstName" mode="IN" type="String" optional="false"/>
+        <attribute name="middleName" mode="IN" type="String" optional="true"/>
+        <attribute name="lastName" mode="IN" type="String" optional="false"/>
+        <attribute name="gender" mode="IN" type="String" optional="true"/>
+        <attribute name="userLoginId" mode="IN" type="String" optional="false"/>
+        <attribute name="currentPassword" mode="IN" type="String" optional="false"/>
+        <attribute name="currentPasswordVerify" mode="IN" type="String" optional="false"/>
+        <attribute name="statusId" mode="IN" type="String" optional="true"/>
+        <attribute name="productStoreId" mode="OUT" type="String" optional="false"/>
+    </service>
+    
+    <service name="exportCategoriesSelectedToEbayStore" engine="java" transaction-timeout="7200"
+        location="org.ofbiz.ebay.EbayStore" invoke="exportCategoriesSelectedToEbayStore" auth="true">
+        <description>Export categories in store to eBay store</description>
+        <attribute name="productStoreId" type="String" mode="IN" optional="false"/>
+        <attribute name="prodCatalogId" type="String" mode="IN" optional="false"/>
+        <attribute name="paymentMethods" type="String" mode="IN" optional="false"/>
+        <attribute name="listingDuration" type="String" mode="IN" optional="false"/>
+        <attribute name="location" type="String" mode="IN" optional="false"/>
+    </service>
+    
+    <!-- Store output -->
+    <service name="getEbayStoreOutput" engine="java" transaction-timeout="7200"  
+        location="org.ofbiz.ebay.EbayStore" invoke="getEbayStoreOutput" auth="true">
+        <description>get ebay store description</description>
+        <attribute name="productStoreId" type="String" mode="IN" optional="false"/>
+        <attribute name="ebayStore" type="Map" mode="OUT" optional="true"/>
+    </service>
+    <service name="retrievePredesignedLogoOption" engine="java" transaction-timeout="7200"  
+        location="org.ofbiz.ebay.EbayStore" invoke="retrievePredesignedLogoOption" auth="true">
+        <description>get ebay store logos description</description>
+        <attribute name="productStoreId" type="String" mode="IN" optional="false"/>
+        <attribute name="storeLogoOptList" type="List" mode="OUT" optional="true"/>
+    </service>
+    <service name="retrieveBasicThemeArray" engine="java" transaction-timeout="7200"  
+        location="org.ofbiz.ebay.EbayStore" invoke="retrieveBasicThemeArray" auth="true">
+        <description>get ebay store Basic theme Array  description</description>
+        <attribute name="productStoreId" type="String" mode="IN" optional="false"/>
+        <attribute name="storeThemeList" type="List" mode="OUT" optional="true"/>
+    </service>
+    <service name="retrieveAdvancedThemeArray" engine="java" transaction-timeout="7200"  
+        location="org.ofbiz.ebay.EbayStore" invoke="retrieveAdvancedThemeArray" auth="true">
+        <description>get ebay store Advanced theme Array  description</description>
+        <attribute name="productStoreId" type="String" mode="IN" optional="false"/>
+        <attribute name="storeThemeList" type="List" mode="OUT" optional="true"/>
+        <attribute name="storeAdvancedThemeColorOptList" type="List" mode="OUT" optional="true"/>
+    </service>
+    <service name="retrieveStoreFontTheme" engine="java" transaction-timeout="7200"  
+        location="org.ofbiz.ebay.EbayStore" invoke="retrieveStoreFontTheme" auth="true">
+        <description>get ebay store Advanced theme Array  description</description>
+        <attribute name="productStoreId" type="String" mode="IN" optional="false"/>
+        <attribute name="advanceFontTheme" type="Map" mode="OUT" optional="true"/>
+    </service>
+</services>

Modified: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java?rev=900298&r1=900297&r2=900298&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java (original)
+++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayHelper.java Mon Jan 18 08:22:00 2010
@@ -57,7 +57,13 @@
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
-public class EbayHelper {
+import com.ebay.sdk.ApiAccount;
+import com.ebay.sdk.ApiContext;
+import com.ebay.sdk.ApiCredential;
+import com.ebay.sdk.ApiLogging;
+import com.ebay.soap.eBLBaseComponents.SiteCodeType;
+
+public class EbayHelper {
     private static final String configFileName = "ebayExport.properties";
     private static final String module = EbayHelper.class.getName();
     public static final String resource = "EbayUiLabels";
@@ -75,13 +81,14 @@
                 return ServiceUtil.returnError(errMsg);
             }
             if (UtilValidate.isNotEmpty(eBayConfig)) {
-                buildEbayConfigContext.put("devID", eBayConfig.getString("devId"));
+                buildEbayConfigContext.put("devId", eBayConfig.getString("devId"));
                 buildEbayConfigContext.put("appID", eBayConfig.getString("appId"));
                 buildEbayConfigContext.put("certID", eBayConfig.getString("certId"));
                 buildEbayConfigContext.put("token", eBayConfig.getString("token"));
                 buildEbayConfigContext.put("compatibilityLevel", eBayConfig.getString("compatibilityLevel"));
                 buildEbayConfigContext.put("siteID", eBayConfig.getString("siteId"));
                 buildEbayConfigContext.put("xmlGatewayUri", eBayConfig.getString("xmlGatewayUri"));
+                buildEbayConfigContext.put("apiServerUrl", eBayConfig.getString("apiServerUrl"));
             }
         } else {
             buildEbayConfigContext.put("devID", UtilProperties.getPropertyValue(configFileName, "eBayExport.devID"));
@@ -91,7 +98,8 @@
             buildEbayConfigContext.put("compatibilityLevel", UtilProperties.getPropertyValue(configFileName, "eBayExport.compatibilityLevel"));
             buildEbayConfigContext.put("siteID", UtilProperties.getPropertyValue(configFileName, "eBayExport.siteID"));
             buildEbayConfigContext.put("xmlGatewayUri", UtilProperties.getPropertyValue(configFileName, "eBayExport.xmlGatewayUri"));
-        }
+            buildEbayConfigContext.put("apiServerUrl", UtilProperties.getPropertyValue(configFileName, "eBayExport.apiServerUrl"));
+        }    
         return buildEbayConfigContext;
     }
 
@@ -605,4 +613,71 @@
         }
         return productId;
     }
-}
\ No newline at end of file
+    
+ public static ApiContext getApiContext(String productStoreId,Locale locale, Delegator delegator){
+ Map<String, Object> context = FastMap.newInstance();
+ context.put("locale", locale);
+ context.put("productStoreId", productStoreId);
+ Map<String, Object> config = buildEbayConfig(context, delegator);
+ ApiCredential apiCredential = new ApiCredential();
+ ApiLogging apiLogging = new ApiLogging();
+ apiLogging.setEnableLogging(false);
+ apiLogging.setLogExceptions(false);
+ apiLogging.setLogSOAPMessages(false);
+
+ String devID = (String)config.get("devId");
+        String appID = (String)config.get("appID");
+        String certID = (String)config.get("certID");
+        String token = (String)config.get("token");
+        String apiServerUrl = (String)config.get("apiServerUrl");
+
+ if(token != null){
+ apiCredential.seteBayToken(token);
+ }else if(devID != null && appID != null && certID != null){
+ ApiAccount apiAccount = new ApiAccount();
+ apiAccount.setApplication(appID);
+ apiAccount.setCertificate(certID);
+ apiAccount.setDeveloper(devID);
+ apiCredential.setApiAccount(apiAccount);
+ }
+ ApiContext apiContext = new ApiContext();
+ apiContext.setApiCredential(apiCredential);
+ apiContext.setApiServerUrl(apiServerUrl);
+ apiContext.setApiLogging(apiLogging);
+ apiContext.setErrorLanguage("en_US");
+ return apiContext;
+ }
+ public static SiteCodeType getSiteCodeType(String productStoreId,Locale locale, Delegator delegator){
+        Map<String, Object> context = FastMap.newInstance();
+        context.put("locale", locale);
+        context.put("productStoreId", productStoreId);
+        Map<String, Object> config = buildEbayConfig(context, delegator);
+        String siteId = (String)config.get("siteID");
+        if(siteId.equals("0")) return SiteCodeType.US;
+        if(siteId.equals("2")) return SiteCodeType.CANADA;
+        if(siteId.equals("3")) return SiteCodeType.UK;
+        if(siteId.equals("15")) return SiteCodeType.AUSTRALIA;
+        if(siteId.equals("16")) return SiteCodeType.AUSTRIA;
+        if(siteId.equals("23")) return SiteCodeType.BELGIUM_FRENCH;
+        if(siteId.equals("71")) return SiteCodeType.FRANCE;
+        if(siteId.equals("77")) return SiteCodeType.GERMANY;
+        if(siteId.equals("100")) return SiteCodeType.E_BAY_MOTORS;
+        if(siteId.equals("101")) return SiteCodeType.ITALY;
+        if(siteId.equals("123")) return SiteCodeType.BELGIUM_DUTCH;
+        if(siteId.equals("146")) return SiteCodeType.NETHERLANDS;
+        if(siteId.equals("189")) return SiteCodeType.SPAIN;
+        if(siteId.equals("193")) return SiteCodeType.SWITZERLAND;
+        if(siteId.equals("196")) return SiteCodeType.TAIWAN;
+        if(siteId.equals("201")) return SiteCodeType.HONG_KONG;
+        if(siteId.equals("203")) return SiteCodeType.INDIA;
+        if(siteId.equals("205")) return SiteCodeType.IRELAND;
+        if(siteId.equals("207")) return SiteCodeType.MALAYSIA;
+        if(siteId.equals("210")) return SiteCodeType.CANADA_FRENCH;
+        if(siteId.equals("211")) return SiteCodeType.PHILIPPINES;
+        if(siteId.equals("212")) return SiteCodeType.POLAND;
+        if(siteId.equals("216")) return SiteCodeType.SINGAPORE;
+        if(siteId.equals("218")) return SiteCodeType.SWEDEN;
+        if(siteId.equals("223")) return SiteCodeType.CHINA;
+        return SiteCodeType.US;
+    }
+}