You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Sam Hamilton <sa...@sh81.com> on 2010/01/19 11:14:04 UTC

Re: svn commit: r900410 [1/3] - in /ofbiz/trunk: ./ specialpurpose/ebay/ specialpurpose/ebay/config/ specialpurpose/ebay/data/ specialpurpose/ebay/data/helpdata/ specialpurpose/ebay/entitydef/ specialpurpose/ebay/lib/ specialpurpose/ebay/script/ specialpur...

Hi Hans,

I was just looking over this new functionality and was wondering why
when you are "export categories to eBay store" you have a listing
duration and payment methods as I would expect a function called this to
only sync the category names from ofbiz into ebay - rather than sync
both the categories and products at the same time - what happens if you
just want to update the category without adding any new listings?

Cheers
Sam



On 18/01/2010 22:36, hansbak@apache.org wrote:
> Author: hansbak
> Date: Mon Jan 18 14:36:16 2010
> New Revision: 900410
> 
> URL: http://svn.apache.org/viewvc?rev=900410&view=rev
> Log:
> add ebay store maintenance screens:
> - function  Add ofbiz categories in ofbiz store to eBay categories also add new items in every categories to eBay categories.
> - Add field 'apiServerUrl' to EbayConfig entity   and add ebay sdk lib to ebay component.
> - function load data ebay store setting (basic information,theme etc.) from ebaystore
> - function create new account for add your ebay account which is already registered on ebay site (using for access to your ebay store)
> - Screen for show your ebay profile
> - help files for  ebay store functions
> using the Ebay api
> 
> Added:
>     ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml
>     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml
>     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml
>     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml
>     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml
>     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
>     ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java
>     ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayStore.java
>     ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayStoreOptions.java
>     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/
>     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/RetrieveStoreOptions.groovy
>     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/StoreAccount.groovy
>     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/store/
>     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/store/StoreSetting.ftl
>     ofbiz/trunk/specialpurpose/ebay/widget/EbayAccountForms.xml
>     ofbiz/trunk/specialpurpose/ebay/widget/EbayAccountScreens.xml
>     ofbiz/trunk/specialpurpose/ebay/widget/EbayStoreForms.xml
> Modified:
>     ofbiz/trunk/.classpath
>     ofbiz/trunk/LICENSE
>     ofbiz/trunk/specialpurpose/ebay/build.xml
>     ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml
>     ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties
>     ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml
>     ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.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=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/.classpath (original)
> +++ ofbiz/trunk/.classpath Mon Jan 18 14:36:16 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=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/LICENSE (original)
> +++ ofbiz/trunk/LICENSE Mon Jan 18 14:36:16 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=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/build.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/build.xml Mon Jan 18 14:36:16 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/EbayUiLabels.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml?rev=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml Mon Jan 18 14:36:16 2010
> @@ -572,4 +572,120 @@
>          <value xml:lang="th">รายการสินค้าส่งอย่างถูกต้องถึงอีเบย์</value>
>          <value xml:lang="zh">产品明细被正确发送到了eBay</value>
>      </property>
> +    <property key="EbayExportAllCategoryToEbayStore">
> +        <value xml:lang="en">Export categories to eBay store</value>
> +        <value xml:lang="th">ส่งออกหมวดหมู่สินค้าเข้าคลังสินค้าในอีเบย์</value>
> +    </property>
> +    <property key="EbayExportToEbayStore">
> +        <value xml:lang="en">Export To eBay Store</value>
> +        <value xml:lang="th">การส่งออกไปยังคลังสินค้าอีเบย์</value>
> +    </property>
> +    <property key="EbayStore">
> +        <value xml:lang="en">Ebay Store</value>
> +        <value xml:lang="th">คลังสินค้าอีเบย์</value>
> +    </property>
> +    <property key="EbayStores">
> +        <value xml:lang="en">Ebay Stores</value>
> +        <value xml:lang="th">รายชื่อคลังสินค้าอีเบย์</value>
> +    </property>
> +    <property key="EbayStoreSetting">
> +        <value xml:lang="en">Ebay Store Setting</value>
> +        <value xml:lang="th">รายชื่อคลังสินค้าอีเบย์</value>
> +    </property>
> +    <property key="EbayStoreLoadSuccess">
> +        <value xml:lang="en">Load Ebay Store success.</value>
> +        <value xml:lang="th">โหลดข้อมูลคลังสินค้าอีเบย์เรียบร้อย</value>
> +    </property>
> +    <property key="EbayStoreSaveSuccess">
> +        <value xml:lang="en">Save ebay setting success.</value>
> +        <value xml:lang="th">บันทึกข้อมูลคลังสินค้าอีเบย์เรียบร้อย</value>
> +    </property>
> +    
> +    <property key="EbayStoreStoreName">
> +        <value xml:lang="en">Store Name</value>
> +        <value xml:lang="th">ชื่อร้านค้า</value>
> +    </property>
> +    <property key="EbayStoreStoreDesc">
> +        <value xml:lang="en">Store Description</value>
> +        <value xml:lang="th">รายละเอียดร้านค้า</value>
> +    </property>
> +    <property key="EbayStoreStoreURL">
> +        <value xml:lang="en">Store URL</value>
> +        <value xml:lang="th">URL</value>
> +    </property>
> +    <property key="EbayStoreStoreLogoURL">
> +        <value xml:lang="en">Logo URL</value>
> +        <value xml:lang="th">โลโก url</value>
> +    </property>
> +    <property key="EbayStoreStoreAdvancedTheme">
> +        <value xml:lang="en">Store Advanced Theme</value>
> +        <value xml:lang="th">Theme สำเร็จรูป</value>
> +    </property>
> +    <property key="EbayStoreStoreAdvancedThemeColor">
> +        <value xml:lang="en">Store Advanced Theme Color</value>
> +        <value xml:lang="th">เลือกสีของ Theme</value>
> +    </property>
> +    <property key="EbayStoreStoreBasicTheme">
> +        <value xml:lang="en">Store Basic Theme</value>
> +        <value xml:lang="th">ธีมแบบธรรมดา</value>
> +    </property>
> +    
> +    <property key="EbayStoreStoreColorTheme">
> +        <value xml:lang="en">Change Color</value>
> +        <value xml:lang="th">เปลี่ยนสี</value>
> +    </property>
> +    <property key="EbayStoreStorePrimaryColor">
> +        <value xml:lang="en">Primary color</value>
> +        <value xml:lang="th">สีหลัก</value>
> +    </property>
> +    <property key="EbayStoreStoreSecondColor">
> +        <value xml:lang="en">Secondary color</value>
> +        <value xml:lang="th">สีรอง</value>
> +    </property>
> +    <property key="EbayStoreStoreAccentColor">
> +        <value xml:lang="en">Accent color</value>
> +        <value xml:lang="th">Accent color</value>
> +    </property>
> +    <property key="EbayStoreStoreChangeFont">
> +        <value xml:lang="en">Change Fonts</value>
> +        <value xml:lang="th">เปลี่ยนตัวอักษร</value>
> +    </property>
> +    <property key="EbayStoreStoreSectionTitle">
> +        <value xml:lang="en">Section title</value>
> +        <value xml:lang="th">ส่วนของ title</value>
> +    </property>
> +    <property key="EbayStoreStoreHeaderDisplay">
> +        <value xml:lang="en">Store Header Display</value>
> +        <value xml:lang="th">Store header</value>
> +    </property>
> +    <property key="EbayStoreStoreHeaderStyle">
> +        <value xml:lang="en">Store Header Style</value>
> +        <value xml:lang="th">Store header Style</value>
> +    </property>
> +    <property key="EbayStoreStoreItemListDesplay">
> +        <value xml:lang="en">Store Item List Display</value>
> +        <value xml:lang="th"></value>
> +    </property>
> +    <property key="EbayStoreStoreItemSortOrder">
> +        <value xml:lang="en">Store Item Sort Order</value>
> +        <value xml:lang="th"></value>
> +    </property>
> +    <property key="EbayStoreStoreMerchDisplay">
> +        <value xml:lang="en">Store Merch Display</value>
> +        <value xml:lang="th"></value>
> +    </property>
> +    <property key="EbayStoreStoreSubscriptionLevel">
> +        <value xml:lang="en">Store Subscription Level</value>
> +        <value xml:lang="th"></value>
> +    </property>
> +    
> +    <property key="EbayPersonalInformation">
> +        <value xml:lang="en">Personal Information</value>
> +    </property>
> +    <property key="EbayAccountInformation">
> +        <value xml:lang="en">Account Information</value>
> +    </property>
> +    <property key="EbayUserPreference">
> +        <value xml:lang="en">User Preference</value>
> +    </property>
>  </resource>
> 
> Modified: ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties?rev=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties (original)
> +++ ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties Mon Jan 18 14:36:16 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=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml Mon Jan 18 14:36:16 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/EbayHelpData.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.xml?rev=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.xml Mon Jan 18 14:36:16 2010
> @@ -83,5 +83,26 @@
>          objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_eBayOrders.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
>      <Content contentId="EBAY_EbayOrders" contentTypeId="DOCUMENT" contentName="Ebay orders import" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_EbayOrders" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
>      <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_EbayOrders" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_FindEbayOrders"/>
> +    <!-- ebay store -->
> +    
> +    <DataResource dataResourceId="EBAY_ebayStores" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> +    <Content contentId="EBAY_ebayStores" contentTypeId="DOCUMENT" contentName="EBay store" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_ebayStores" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_ebayStores" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_ebayStores"/>
> +    
> +    <DataResource dataResourceId="EBAY_NewEbayAccount" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> +    <Content contentId="EBAY_NewEbayAccount" contentTypeId="DOCUMENT" contentName="EBay store new ebay Account" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_NewEbayAccount" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_NewEbayAccount" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_NewEbayAccount"/>
> +    
> +    <DataResource dataResourceId="EBAY_StoreSetting" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> +    <Content contentId="EBAY_StoreSetting" contentTypeId="DOCUMENT" contentName="EBay store setting" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_StoreSetting" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_StoreSetting" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_ebayStoreDetail"/>
> +    
> +    <DataResource dataResourceId="EBAY_ExpCatToEbay" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> +    <Content contentId="EBAY_ExpCatToEbay" contentTypeId="DOCUMENT" contentName="EBay export categories to store" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_ExpCatToEbay" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_ExpCatToEbay" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_exportCategoryEbayStore"/>
>      
>  </entity-engine-xml>
> 
> Added: ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml?rev=900410&view=auto
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml (added)
> +++ ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml Mon Jan 18 14:36:16 2010
> @@ -0,0 +1,35 @@
> +<?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.
> +-->
> +<entity-engine-xml>
> +    
> +    <PortalPortlet portalPortletId="EbayPersonalInfo"
> +        portletName="Ebay Personal Information"
> +        screenName="EbayPersonalInformation"
> +        screenLocation="component://ebay/widget/EbayAccountScreens.xml"
> +        description="Ebay Personan Information"/>
> +    <PortletPortletCategory portalPortletId="EbayPersonalInfo" portletCategoryId="PROFILE"/>
> +    
> +    <PortalPage portalPageId="EbayAccount" sequenceNum="0" portalPageName="Ebay Account Portal Page" description="Ebay Account page using flexible Portal technology" ownerUserLoginId="_NA_"/>
> +    <PortalPageColumn portalPageId="EbayAccount" columnSeqId="00001" columnWidthPercentage="50"/>
> +    <PortalPageColumn portalPageId="EbayAccount" columnSeqId="00002"/><!-- no width in pixels or percent, use the rest of the space available -->
> +    
> +    <PortalPagePortlet portalPageId="EbayAccount" portalPortletId="EbayPersonalInfo" portletSeqId="00001" columnSeqId="00001" sequenceNum="1"/>
> +    
> +</entity-engine-xml>
> \ No newline at end of file
> 
> Modified: ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml?rev=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml Mon Jan 18 14:36:16 2010
> @@ -24,5 +24,10 @@
>      <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"/>
> +    
> +    <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>
> 
> Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml?rev=900410&view=auto
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml (added)
> +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml Mon Jan 18 14:36:16 2010
> @@ -0,0 +1,41 @@
> +<?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.
> +-->
> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> +    xmlns="http://docbook.org/ns/docbook">
> +    <title>Ebay Store screen.</title>
> +    <para>
> +This screen allows the user to access to ebay store by using their account and you can set up and manage your ebay store in ofbiz.
> +Before you take action on this function, you should already have an ebay store and ebay account on the ebay site  because ebay does not allow to create a store from third party site.</para>
> +	    <section>
> +		<title>How to start ebay store in ofbiz?</title>
> +		<orderedlist>
> +		    <listitem><para>Register with ebay developer site to obtain keys and certificate (eBayExport.devId,eBayExport.appId,eBayExport.cerId and eBayExport.token etc.) at<link xl:href="https://developer.ebay.com/join/">Join with ebay developers</link> </para></listitem>
> +		    <listitem><para>Press 'New Ebay Account' button to create your ebay account in ofbiz. After you have created ,the system will generate new product store in ofbiz which link to ebay store.
> +(note :An ebay account in ofbiz  use for access to your ebay store on the ebay site)</para></listitem>
> +		    <listitem><para>Put your keys  in Ebay Configurations Tab.</para></listitem>
> +		</orderedlist>
> +	    </section>
> +	    <section>
> +		<title>How to connect to your ebay store?</title>
> +		<orderedlist>
> +		    <listitem><para>Go to 'Ebay Accounts' section select your account then press 'submit' button,the system will show functions.</para></listitem>
> +		</orderedlist>
> +	    </section>
> +</section>
> +
> +
> 
> Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml?rev=900410&view=auto
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml (added)
> +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml Mon Jan 18 14:36:16 2010
> @@ -0,0 +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.
> +-->
> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> +    xmlns="http://docbook.org/ns/docbook">
> +    <title>Ebay Store Export categories to ebay store screen.</title>
> +    <para>
> +The screen allow user to export categories and product to eBay store. 
> +First you should select catalog,add your location that product located, select your default payment methods for your product and your listing duration days.
> +When you click Export to eBay store button, this function will add your categories that in catalog selected to eBay store also add product to categories too.</para>
> +
> +</section>
> +
> +
> +
> +
> +
> 
> Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml?rev=900410&view=auto
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml (added)
> +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml Mon Jan 18 14:36:16 2010
> @@ -0,0 +1,43 @@
> +<?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.
> +-->
> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> +    xmlns="http://docbook.org/ns/docbook">
> +    <title>New Ebay Account screen.</title>
> +    <para>
> +This screen allows the user to add new ebay account for access to using their ebay store.
> +    </para>
> +    <section>
> +        <title>Fields Description :</title>
> +        <orderedlist>
> +            <listitem><para>Enter  'Salutation' (ex:Mr,miss,Missis)</para></listitem>
> +	    <listitem><para>Enter  'First Name' (ex:Demo)</para></listitem>
> +	    <listitem><para>Enter  'Middle Name'</para></listitem>
> +	    <listitem><para>Enter  'Last Name' (ex: DemoLastName)</para></listitem>
> +	    <listitem><para>Enter  'Gender'</para></listitem>
> +	    <listitem><para>Enter  'User Login Id' (ex:exbaySandBox123) which you registered on ebay</para></listitem>
> +	    <listitem><para>Enter  'Current Password' the same which you registered on ebay</para></listitem>
> +            <listitem><para>Press the 'Create' button.</para></listitem>
> +        </orderedlist>
> +    </section>
> + <section>
> +        <title>Note :</title>
> +        <orderedlist>
> +            <listitem><para>Go to Party module -> Search your party -> then you can update your profiles</para></listitem>
> +        </orderedlist>
> +    </section>
> +</section>
> 
> Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml?rev=900410&view=auto
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml (added)
> +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml Mon Jan 18 14:36:16 2010
> @@ -0,0 +1,52 @@
> +<?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.
> +-->
> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> +    xmlns="http://docbook.org/ns/docbook">
> +    <title>Ebay Store Detail screen.</title>
> +    <para>
> +This screen allows the user to manage store display setting (store detail, theme, and font color,logo etc.). you can setting in this screen and submit the system will sent your setting to your ebay store and store will update detail.</para>
> +	    <section>
> +		<title>Fields Description : </title>
> +		<orderedlist>
> +		    <listitem><para>Store Name(define 35 charactors)</para></listitem>
> +		    <listitem><para>Store Descrption(define 300 charactors)</para></listitem>
> +		    <listitem><para>Store Url</para></listitem>
> +		    <listitem><para>Store Logo Url(enter your company logo are located at the following URL..)</para></listitem>
> +		   <listitem><para> All of your Store’s pages will appear with the theme you choose,On ebay there are two basic types of themes to choose from.</para></listitem>
> +		    <listitem><para>Store Advanced Theme (This is predesigned themes offer professionally designed background graphics and color combinations. Use one of these if you want to save time on creating an appealing, consistent look for your Store)</para></listitem>
> +		    <listitem><para>Store Advanced Theme Color</para></listitem>
> +		    <listitem><para>Store Basic Theme(Easily Customizable themes lend themselves to creating a more custom look. Use one of these if you'd prefer to have more control over the colors in your store)</para></listitem>
> +		    <listitem><para><link xl:href="http://developer.ebay.com/DevZone/XML/docs/WebHelp/images/CustomStoreLookAndFeelWithCallouts.jpg">See example layout on ebay</link></para></listitem>
> +		    <listitem><para>Primary Color</para></listitem>
> +		    <listitem><para>Secondary Color</para></listitem>
> +		    <listitem><para>Accent Color</para></listitem>
> +		    <listitem><para>Store Name(Font,Size and Color)</para></listitem>
> +		    <listitem><para>Store Title(Font,Size and Color)</para></listitem>
> +		    <listitem><para>Store Description(Font,Size and Color)</para></listitem>
> +		    <listitem><para>Header Display(Select No, do not include additional information in the header.
> +	Select Yes, include additional information in the header. (Enter in text area below))</para></listitem>
> +		    <listitem><para>Select the eBay header style</para></listitem>
> +		    <listitem><para>Item List Display</para></listitem>	 
> +		    <listitem><para>Item Sort</para></listitem>
> +		    <listitem><para>Store Merch Display</para></listitem>
> +		    <listitem><para>Subscription Level</para></listitem>
> +		    <listitem><para>Press 'submit' to submit data to your ebay store site</para></listitem>
> +		</orderedlist>
> +	    </section>
> +</section>
> +
> 
> Modified: ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml?rev=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml Mon Jan 18 14:36:16 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=900410&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=900410&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=900410&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=900410&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=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml Mon Jan 18 14:36:16 2010
> @@ -23,12 +23,14 @@
>          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"/>
>      <entity-resource type="data" reader-name="seed" loader="main" location="data/EbaySecurityData.xml"/>
>      <entity-resource type="data" reader-name="seed" loader="main" location="data/EbayTypeData.xml"/>
>      <entity-resource type="data" reader-name="seed" loader="main" location="data/EbayHelpData.xml"/>
> +    <entity-resource type="data" reader-name="seed" loader="main" location="data/EbayPortletData.xml"/>
>      <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoEbayData.xml"/>
>  
>      <service-resource type="model" loader="main" location="servicedef/services.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=900410&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 14:36:16 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>
> \ No newline at end of file
> 
> Modified: ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml?rev=900410&r1=900409&r2=900410&view=diff
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml (original)
> +++ ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml Mon Jan 18 14:36:16 2010
> @@ -164,4 +164,116 @@
>          <auto-attributes include="pk" mode="IN" optional="false"/>
>      </service>
>      
> +    <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>
> +    <service name="setEbayStoreInput" engine="java"  transaction-timeout="3600"
> +        location="org.ofbiz.ebay.EbayStore" invoke="setEbayStoreInput" auth="true">
> +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> +        <attribute name="themeType" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeName" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeDesc" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeUrl" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeLogoId" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeLogoName" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeLogoURL" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeAdvancedTheme" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeAdvancedThemeColor" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeBasicTheme" mode="IN" type="String" optional="true"/>
> +        <attribute name="storePrimaryColor" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeSecondaryColor" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeAccentColor" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeNameFont" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeNameFontSize" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeNameFontColor" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeTitleFont" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeTitleFontSize" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeTitleFontColor" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeDescFont" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeDescFontSize" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeDescFontColor" mode="IN" type="String" optional="true"/>
> +        <attribute name="storeCustomHeaderLayout" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeCustomHeader" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeHeaderStyle" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeItemLayout" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeItemSortOrder" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeMerchDisplay" mode="IN" type="String" optional="false"/>
> +        <attribute name="storeSubscriptionDisplay" mode="IN" type="String" optional="false"/>
> +        <attribute name="ebayStore" type="Map" mode="OUT" optional="true"/>
> +    </service>
> +    <!-- ebay account -->
> +    <service name="getEbayStoreUser" engine="java" location="org.ofbiz.ebay.EbayStore" invoke="getEbayStoreUser" auth="true" transaction-timeout="3600">
> +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> +        <attribute name="userLoginId" mode="OUT" type="String" optional="true"/>
> +    </service>
> +    <service name="getEbayUser" engine="java" transaction-timeout="3600"
> +        location="org.ofbiz.ebay.EbayAccount" invoke="getEbayUser" auth="true">
> +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> +        <attribute name="email" mode="OUT" type="String" optional="true"/>
> +        <attribute name="registrationAddress" mode="OUT" type="Map" optional="true"/>
> +        <attribute name="status" mode="OUT" type="String" optional="true"/>
> +    </service>
> +    <service name="getEbayAccount" engine="java" transaction-timeout="3600"
> +        location="org.ofbiz.ebay.EbayAccount" invoke="getEbayAccount" auth="true">
> +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> +        <attribute name="accountList" mode="OUT" type="List" optional="true"/>
> +    </service>
> +    <service name="getEbayUserPreference" engine="java" transaction-timeout="3600"
> +        location="org.ofbiz.ebay.EbayAccount" invoke="getEbayUserPreference" auth="true">
> +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> +        <attribute name="userPreferenceList" mode="OUT" type="List" optional="true"/>
> +    </service>
>  </services>
> \ No newline at end of file
> 
> Added: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java?rev=900410&view=auto
> ==============================================================================
> --- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java (added)
> +++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java Mon Jan 18 14:36:16 2010
> @@ -0,0 +1,119 @@
> +/*
> + * 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.
> + */
> +package org.ofbiz.ebay;
> +
> +import java.util.Locale;
> +import java.util.Map;
> +import javolution.util.FastMap;
> +
> +import org.ofbiz.entity.Delegator;
> +import org.ofbiz.entity.GenericValue;
> +import org.ofbiz.service.DispatchContext;
> +import org.ofbiz.service.LocalDispatcher;
> +import org.ofbiz.service.ServiceUtil;
> +
> +import com.ebay.sdk.ApiContext;
> +import com.ebay.sdk.call.*;
> +import com.ebay.soap.eBLBaseComponents.AddressType;
> +import com.ebay.soap.eBLBaseComponents.DetailLevelCodeType;
> +import com.ebay.soap.eBLBaseComponents.UserType;
> +
> +public class EbayAccount {
> +    private static final String resource = "EbayUiLabels";
> +    private static final String configFileName = "ebayExport.properties";
> +    private static final String module = EbayAccount.class.getName();
> +    
> +	public static Map<String, Object> getEbayUser(DispatchContext dctx, Map<String, ? extends Object> context){
> +		Map<String, Object>result = FastMap.newInstance();
> +		String errorMsg = null;
> +		LocalDispatcher dispatcher = dctx.getDispatcher();
> +		GenericValue userLogin = (GenericValue) context.get("userLogin");
> +		Delegator delegator = dctx.getDelegator();
> +		Locale locale = (Locale) context.get("locale");
> +		String productStoreId = (String) context.get("productStoreId");
> +		
> +		// Output Variable
> +		String email = null,
> +			cityName = null, 
> +			companyName = null, 
> +			country = null, 
> +			firstName = null, 
> +			lastName = null,
> +			name = null,
> +			phone = null, 
> +			postalCode = null,
> +			stateOrProvince = null, 
> +			street = null, 
> +			street1 = null, 
> +			street2 = null,
> +			status = null;
> +		Map<String, Object>registrationAddress = FastMap.newInstance();
> +		
> +		try{
> +			Map<String, Object>infoMap = FastMap.newInstance();
> +			ApiContext apiContext = EbayHelper.getApiContext(productStoreId, locale, delegator);
> +			GetUserCall getUserCall  = new GetUserCall(apiContext);
> +			DetailLevelCodeType[] detailLevel = {DetailLevelCodeType.RETURN_ALL};
> +			getUserCall.setDetailLevel(detailLevel);
> +			UserType  user = getUserCall.getUser();
> +			if(user != null){
> +				email = user.getEmail();
> +				AddressType regAddress = user.getRegistrationAddress();
> +				if(regAddress != null){
> +					cityName = regAddress.getCityName();
> +					companyName = regAddress.getCompanyName();
> +					country = regAddress.getCountryName();
> +					firstName = regAddress.getFirstName();
> +					lastName = regAddress.getLastName();
> +					name = regAddress.getName();
> +					phone = regAddress.getPhone();
> +					postalCode = regAddress.getPostalCode();
> +					stateOrProvince = regAddress.getStateOrProvince();
> +					street = regAddress.getStreet();
> +					street1 = regAddress.getStreet1();
> +					street2 = regAddress.getStreet2();
> +				}
> +				if(firstName == null && lastName == null && name !=null){
> +					String nameArray[] = name.split(" ");
> +					firstName = nameArray[0];
> +					lastName = nameArray[1];
> +				}
> +				registrationAddress.put("cityName", cityName);
> +				registrationAddress.put("companyName", companyName);
> +				registrationAddress.put("country", country);
> +				registrationAddress.put("firstName", firstName);
> +				registrationAddress.put("lastName", lastName);
> +				registrationAddress.put("phone", phone);
> +				registrationAddress.put("postalCode", postalCode);
> +				registrationAddress.put("stateOrProvince", stateOrProvince);
> +				registrationAddress.put("street", street);
> +				registrationAddress.put("street1", street1);
> +				registrationAddress.put("street2", street2);
> +				status = user.getStatus().toString();
> +			}
> +			result.put("email", email);
> +			result.put("registrationAddress", registrationAddress);
> +			result.put("status", status);
> +		}catch(Exception e){
> +			// TODO Auto-generated catch block
> +			return  ServiceUtil.returnError(e.getMessage());
> +		}
> +		return result;
> +	}
> +}
> 
> 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=900410&r1=900409&r2=900410&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 14:36:16 2010
> @@ -57,6 +57,13 @@
>  import org.w3c.dom.Document;
>  import org.w3c.dom.Element;
>  
> +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();
> @@ -75,13 +82,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", UtilProperties.getPropertyValue(configFileName, "eBayExport.apiServerUrl"));
>              }
>          } else {
>              buildEbayConfigContext.put("devID", UtilProperties.getPropertyValue(configFileName, "eBayExport.devID"));
> @@ -91,6 +99,7 @@
>              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 +614,72 @@
>          }
>          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;
> +    }
> +}
> 
> 


Re: svn commit: r900410 [1/3] - in /ofbiz/trunk: ./ specialpurpose/ebay/ specialpurpose/ebay/config/ specialpurpose/ebay/data/ specialpurpose/ebay/data/helpdata/ specialpurpose/ebay/entitydef/ specialpurpose/ebay/lib/ specialpurpose/ebay/script/ specialpur...

Posted by Hans Bakker <ma...@antwebsystems.com>.
Hi Sam,

Yes, we have the plan to separate categories and products sync...wait
until the updates come in...

Regards,
Hans

On Tue, 2010-01-19 at 18:14 +0800, Sam Hamilton wrote:
> Hi Hans,
> 
> I was just looking over this new functionality and was wondering why
> when you are "export categories to eBay store" you have a listing
> duration and payment methods as I would expect a function called this to
> only sync the category names from ofbiz into ebay - rather than sync
> both the categories and products at the same time - what happens if you
> just want to update the category without adding any new listings?
> 
> Cheers
> Sam
> 
> 
> 
> On 18/01/2010 22:36, hansbak@apache.org wrote:
> > Author: hansbak
> > Date: Mon Jan 18 14:36:16 2010
> > New Revision: 900410
> > 
> > URL: http://svn.apache.org/viewvc?rev=900410&view=rev
> > Log:
> > add ebay store maintenance screens:
> > - function  Add ofbiz categories in ofbiz store to eBay categories also add new items in every categories to eBay categories.
> > - Add field 'apiServerUrl' to EbayConfig entity   and add ebay sdk lib to ebay component.
> > - function load data ebay store setting (basic information,theme etc.) from ebaystore
> > - function create new account for add your ebay account which is already registered on ebay site (using for access to your ebay store)
> > - Screen for show your ebay profile
> > - help files for  ebay store functions
> > using the Ebay api
> > 
> > Added:
> >     ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml
> >     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml
> >     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml
> >     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml
> >     ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml
> >     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
> >     ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java
> >     ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayStore.java
> >     ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayStoreOptions.java
> >     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/
> >     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/RetrieveStoreOptions.groovy
> >     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/WEB-INF/actions/store/StoreAccount.groovy
> >     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/store/
> >     ofbiz/trunk/specialpurpose/ebay/webapp/ebay/store/StoreSetting.ftl
> >     ofbiz/trunk/specialpurpose/ebay/widget/EbayAccountForms.xml
> >     ofbiz/trunk/specialpurpose/ebay/widget/EbayAccountScreens.xml
> >     ofbiz/trunk/specialpurpose/ebay/widget/EbayStoreForms.xml
> > Modified:
> >     ofbiz/trunk/.classpath
> >     ofbiz/trunk/LICENSE
> >     ofbiz/trunk/specialpurpose/ebay/build.xml
> >     ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml
> >     ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties
> >     ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml
> >     ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.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=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/.classpath (original)
> > +++ ofbiz/trunk/.classpath Mon Jan 18 14:36:16 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=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/LICENSE (original)
> > +++ ofbiz/trunk/LICENSE Mon Jan 18 14:36:16 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=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/build.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/build.xml Mon Jan 18 14:36:16 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/EbayUiLabels.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml?rev=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/config/EbayUiLabels.xml Mon Jan 18 14:36:16 2010
> > @@ -572,4 +572,120 @@
> >          <value xml:lang="th">รายการสินค้าส่งอย่างถูกต้องถึงอีเบย์</value>
> >          <value xml:lang="zh">产品明细被正确发送到了eBay</value>
> >      </property>
> > +    <property key="EbayExportAllCategoryToEbayStore">
> > +        <value xml:lang="en">Export categories to eBay store</value>
> > +        <value xml:lang="th">ส่งออกหมวดหมู่สินค้าเข้าคลังสินค้าในอีเบย์</value>
> > +    </property>
> > +    <property key="EbayExportToEbayStore">
> > +        <value xml:lang="en">Export To eBay Store</value>
> > +        <value xml:lang="th">การส่งออกไปยังคลังสินค้าอีเบย์</value>
> > +    </property>
> > +    <property key="EbayStore">
> > +        <value xml:lang="en">Ebay Store</value>
> > +        <value xml:lang="th">คลังสินค้าอีเบย์</value>
> > +    </property>
> > +    <property key="EbayStores">
> > +        <value xml:lang="en">Ebay Stores</value>
> > +        <value xml:lang="th">รายชื่อคลังสินค้าอีเบย์</value>
> > +    </property>
> > +    <property key="EbayStoreSetting">
> > +        <value xml:lang="en">Ebay Store Setting</value>
> > +        <value xml:lang="th">รายชื่อคลังสินค้าอีเบย์</value>
> > +    </property>
> > +    <property key="EbayStoreLoadSuccess">
> > +        <value xml:lang="en">Load Ebay Store success.</value>
> > +        <value xml:lang="th">โหลดข้อมูลคลังสินค้าอีเบย์เรียบร้อย</value>
> > +    </property>
> > +    <property key="EbayStoreSaveSuccess">
> > +        <value xml:lang="en">Save ebay setting success.</value>
> > +        <value xml:lang="th">บันทึกข้อมูลคลังสินค้าอีเบย์เรียบร้อย</value>
> > +    </property>
> > +    
> > +    <property key="EbayStoreStoreName">
> > +        <value xml:lang="en">Store Name</value>
> > +        <value xml:lang="th">ชื่อร้านค้า</value>
> > +    </property>
> > +    <property key="EbayStoreStoreDesc">
> > +        <value xml:lang="en">Store Description</value>
> > +        <value xml:lang="th">รายละเอียดร้านค้า</value>
> > +    </property>
> > +    <property key="EbayStoreStoreURL">
> > +        <value xml:lang="en">Store URL</value>
> > +        <value xml:lang="th">URL</value>
> > +    </property>
> > +    <property key="EbayStoreStoreLogoURL">
> > +        <value xml:lang="en">Logo URL</value>
> > +        <value xml:lang="th">โลโก url</value>
> > +    </property>
> > +    <property key="EbayStoreStoreAdvancedTheme">
> > +        <value xml:lang="en">Store Advanced Theme</value>
> > +        <value xml:lang="th">Theme สำเร็จรูป</value>
> > +    </property>
> > +    <property key="EbayStoreStoreAdvancedThemeColor">
> > +        <value xml:lang="en">Store Advanced Theme Color</value>
> > +        <value xml:lang="th">เลือกสีของ Theme</value>
> > +    </property>
> > +    <property key="EbayStoreStoreBasicTheme">
> > +        <value xml:lang="en">Store Basic Theme</value>
> > +        <value xml:lang="th">ธีมแบบธรรมดา</value>
> > +    </property>
> > +    
> > +    <property key="EbayStoreStoreColorTheme">
> > +        <value xml:lang="en">Change Color</value>
> > +        <value xml:lang="th">เปลี่ยนสี</value>
> > +    </property>
> > +    <property key="EbayStoreStorePrimaryColor">
> > +        <value xml:lang="en">Primary color</value>
> > +        <value xml:lang="th">สีหลัก</value>
> > +    </property>
> > +    <property key="EbayStoreStoreSecondColor">
> > +        <value xml:lang="en">Secondary color</value>
> > +        <value xml:lang="th">สีรอง</value>
> > +    </property>
> > +    <property key="EbayStoreStoreAccentColor">
> > +        <value xml:lang="en">Accent color</value>
> > +        <value xml:lang="th">Accent color</value>
> > +    </property>
> > +    <property key="EbayStoreStoreChangeFont">
> > +        <value xml:lang="en">Change Fonts</value>
> > +        <value xml:lang="th">เปลี่ยนตัวอักษร</value>
> > +    </property>
> > +    <property key="EbayStoreStoreSectionTitle">
> > +        <value xml:lang="en">Section title</value>
> > +        <value xml:lang="th">ส่วนของ title</value>
> > +    </property>
> > +    <property key="EbayStoreStoreHeaderDisplay">
> > +        <value xml:lang="en">Store Header Display</value>
> > +        <value xml:lang="th">Store header</value>
> > +    </property>
> > +    <property key="EbayStoreStoreHeaderStyle">
> > +        <value xml:lang="en">Store Header Style</value>
> > +        <value xml:lang="th">Store header Style</value>
> > +    </property>
> > +    <property key="EbayStoreStoreItemListDesplay">
> > +        <value xml:lang="en">Store Item List Display</value>
> > +        <value xml:lang="th"></value>
> > +    </property>
> > +    <property key="EbayStoreStoreItemSortOrder">
> > +        <value xml:lang="en">Store Item Sort Order</value>
> > +        <value xml:lang="th"></value>
> > +    </property>
> > +    <property key="EbayStoreStoreMerchDisplay">
> > +        <value xml:lang="en">Store Merch Display</value>
> > +        <value xml:lang="th"></value>
> > +    </property>
> > +    <property key="EbayStoreStoreSubscriptionLevel">
> > +        <value xml:lang="en">Store Subscription Level</value>
> > +        <value xml:lang="th"></value>
> > +    </property>
> > +    
> > +    <property key="EbayPersonalInformation">
> > +        <value xml:lang="en">Personal Information</value>
> > +    </property>
> > +    <property key="EbayAccountInformation">
> > +        <value xml:lang="en">Account Information</value>
> > +    </property>
> > +    <property key="EbayUserPreference">
> > +        <value xml:lang="en">User Preference</value>
> > +    </property>
> >  </resource>
> > 
> > Modified: ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties?rev=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/config/ebayExport.properties Mon Jan 18 14:36:16 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=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/DemoEbayData.xml Mon Jan 18 14:36:16 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/EbayHelpData.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.xml?rev=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/EbayHelpData.xml Mon Jan 18 14:36:16 2010
> > @@ -83,5 +83,26 @@
> >          objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_eBayOrders.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> >      <Content contentId="EBAY_EbayOrders" contentTypeId="DOCUMENT" contentName="Ebay orders import" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_EbayOrders" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
> >      <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_EbayOrders" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_FindEbayOrders"/>
> > +    <!-- ebay store -->
> > +    
> > +    <DataResource dataResourceId="EBAY_ebayStores" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> > +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> > +    <Content contentId="EBAY_ebayStores" contentTypeId="DOCUMENT" contentName="EBay store" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_ebayStores" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> > +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_ebayStores" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_ebayStores"/>
> > +    
> > +    <DataResource dataResourceId="EBAY_NewEbayAccount" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> > +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> > +    <Content contentId="EBAY_NewEbayAccount" contentTypeId="DOCUMENT" contentName="EBay store new ebay Account" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_NewEbayAccount" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> > +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_NewEbayAccount" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_NewEbayAccount"/>
> > +    
> > +    <DataResource dataResourceId="EBAY_StoreSetting" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> > +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> > +    <Content contentId="EBAY_StoreSetting" contentTypeId="DOCUMENT" contentName="EBay store setting" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_StoreSetting" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> > +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_StoreSetting" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_ebayStoreDetail"/>
> > +    
> > +    <DataResource dataResourceId="EBAY_ExpCatToEbay" localeString="en" dataResourceTypeId="OFBIZ_FILE" 
> > +        objectInfo="specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Ebay" mimeTypeId="text/xml" isPublic="Y" />
> > +    <Content contentId="EBAY_ExpCatToEbay" contentTypeId="DOCUMENT" contentName="EBay export categories to store" templateDataResourceId="HELP_TEMPL" dataResourceId="EBAY_ExpCatToEbay" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>/>
> > +    <ContentAssoc contentId="HELP_EBAY" contentIdTo="EBAY_ExpCatToEbay" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EBAY_exportCategoryEbayStore"/>
> >      
> >  </entity-engine-xml>
> > 
> > Added: ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml?rev=900410&view=auto
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml (added)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/EbayPortletData.xml Mon Jan 18 14:36:16 2010
> > @@ -0,0 +1,35 @@
> > +<?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.
> > +-->
> > +<entity-engine-xml>
> > +    
> > +    <PortalPortlet portalPortletId="EbayPersonalInfo"
> > +        portletName="Ebay Personal Information"
> > +        screenName="EbayPersonalInformation"
> > +        screenLocation="component://ebay/widget/EbayAccountScreens.xml"
> > +        description="Ebay Personan Information"/>
> > +    <PortletPortletCategory portalPortletId="EbayPersonalInfo" portletCategoryId="PROFILE"/>
> > +    
> > +    <PortalPage portalPageId="EbayAccount" sequenceNum="0" portalPageName="Ebay Account Portal Page" description="Ebay Account page using flexible Portal technology" ownerUserLoginId="_NA_"/>
> > +    <PortalPageColumn portalPageId="EbayAccount" columnSeqId="00001" columnWidthPercentage="50"/>
> > +    <PortalPageColumn portalPageId="EbayAccount" columnSeqId="00002"/><!-- no width in pixels or percent, use the rest of the space available -->
> > +    
> > +    <PortalPagePortlet portalPageId="EbayAccount" portalPortletId="EbayPersonalInfo" portletSeqId="00001" columnSeqId="00001" sequenceNum="1"/>
> > +    
> > +</entity-engine-xml>
> > \ No newline at end of file
> > 
> > Modified: ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml?rev=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/EbayTypeData.xml Mon Jan 18 14:36:16 2010
> > @@ -24,5 +24,10 @@
> >      <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"/>
> > +    
> > +    <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>
> > 
> > Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml?rev=900410&view=auto
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml (added)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_EbayStore.xml Mon Jan 18 14:36:16 2010
> > @@ -0,0 +1,41 @@
> > +<?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.
> > +-->
> > +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> > +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> > +    xmlns="http://docbook.org/ns/docbook">
> > +    <title>Ebay Store screen.</title>
> > +    <para>
> > +This screen allows the user to access to ebay store by using their account and you can set up and manage your ebay store in ofbiz.
> > +Before you take action on this function, you should already have an ebay store and ebay account on the ebay site  because ebay does not allow to create a store from third party site.</para>
> > +	    <section>
> > +		<title>How to start ebay store in ofbiz?</title>
> > +		<orderedlist>
> > +		    <listitem><para>Register with ebay developer site to obtain keys and certificate (eBayExport.devId,eBayExport.appId,eBayExport.cerId and eBayExport.token etc.) at<link xl:href="https://developer.ebay.com/join/">Join with ebay developers</link> </para></listitem>
> > +		    <listitem><para>Press 'New Ebay Account' button to create your ebay account in ofbiz. After you have created ,the system will generate new product store in ofbiz which link to ebay store.
> > +(note :An ebay account in ofbiz  use for access to your ebay store on the ebay site)</para></listitem>
> > +		    <listitem><para>Put your keys  in Ebay Configurations Tab.</para></listitem>
> > +		</orderedlist>
> > +	    </section>
> > +	    <section>
> > +		<title>How to connect to your ebay store?</title>
> > +		<orderedlist>
> > +		    <listitem><para>Go to 'Ebay Accounts' section select your account then press 'submit' button,the system will show functions.</para></listitem>
> > +		</orderedlist>
> > +	    </section>
> > +</section>
> > +
> > +
> > 
> > Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml?rev=900410&view=auto
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml (added)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_ExportCategoriesToEbay.xml Mon Jan 18 14:36:16 2010
> > @@ -0,0 +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.
> > +-->
> > +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> > +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> > +    xmlns="http://docbook.org/ns/docbook">
> > +    <title>Ebay Store Export categories to ebay store screen.</title>
> > +    <para>
> > +The screen allow user to export categories and product to eBay store. 
> > +First you should select catalog,add your location that product located, select your default payment methods for your product and your listing duration days.
> > +When you click Export to eBay store button, this function will add your categories that in catalog selected to eBay store also add product to categories too.</para>
> > +
> > +</section>
> > +
> > +
> > +
> > +
> > +
> > 
> > Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml?rev=900410&view=auto
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml (added)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_NewEbayAccount.xml Mon Jan 18 14:36:16 2010
> > @@ -0,0 +1,43 @@
> > +<?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.
> > +-->
> > +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> > +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> > +    xmlns="http://docbook.org/ns/docbook">
> > +    <title>New Ebay Account screen.</title>
> > +    <para>
> > +This screen allows the user to add new ebay account for access to using their ebay store.
> > +    </para>
> > +    <section>
> > +        <title>Fields Description :</title>
> > +        <orderedlist>
> > +            <listitem><para>Enter  'Salutation' (ex:Mr,miss,Missis)</para></listitem>
> > +	    <listitem><para>Enter  'First Name' (ex:Demo)</para></listitem>
> > +	    <listitem><para>Enter  'Middle Name'</para></listitem>
> > +	    <listitem><para>Enter  'Last Name' (ex: DemoLastName)</para></listitem>
> > +	    <listitem><para>Enter  'Gender'</para></listitem>
> > +	    <listitem><para>Enter  'User Login Id' (ex:exbaySandBox123) which you registered on ebay</para></listitem>
> > +	    <listitem><para>Enter  'Current Password' the same which you registered on ebay</para></listitem>
> > +            <listitem><para>Press the 'Create' button.</para></listitem>
> > +        </orderedlist>
> > +    </section>
> > + <section>
> > +        <title>Note :</title>
> > +        <orderedlist>
> > +            <listitem><para>Go to Party module -> Search your party -> then you can update your profiles</para></listitem>
> > +        </orderedlist>
> > +    </section>
> > +</section>
> > 
> > Added: ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml?rev=900410&view=auto
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml (added)
> > +++ ofbiz/trunk/specialpurpose/ebay/data/helpdata/HELP_EBAY_StoreSetting.xml Mon Jan 18 14:36:16 2010
> > @@ -0,0 +1,52 @@
> > +<?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.
> > +-->
> > +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > +    version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
> > +    xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd"
> > +    xmlns="http://docbook.org/ns/docbook">
> > +    <title>Ebay Store Detail screen.</title>
> > +    <para>
> > +This screen allows the user to manage store display setting (store detail, theme, and font color,logo etc.). you can setting in this screen and submit the system will sent your setting to your ebay store and store will update detail.</para>
> > +	    <section>
> > +		<title>Fields Description : </title>
> > +		<orderedlist>
> > +		    <listitem><para>Store Name(define 35 charactors)</para></listitem>
> > +		    <listitem><para>Store Descrption(define 300 charactors)</para></listitem>
> > +		    <listitem><para>Store Url</para></listitem>
> > +		    <listitem><para>Store Logo Url(enter your company logo are located at the following URL..)</para></listitem>
> > +		   <listitem><para> All of your Store’s pages will appear with the theme you choose,On ebay there are two basic types of themes to choose from.</para></listitem>
> > +		    <listitem><para>Store Advanced Theme (This is predesigned themes offer professionally designed background graphics and color combinations. Use one of these if you want to save time on creating an appealing, consistent look for your Store)</para></listitem>
> > +		    <listitem><para>Store Advanced Theme Color</para></listitem>
> > +		    <listitem><para>Store Basic Theme(Easily Customizable themes lend themselves to creating a more custom look. Use one of these if you'd prefer to have more control over the colors in your store)</para></listitem>
> > +		    <listitem><para><link xl:href="http://developer.ebay.com/DevZone/XML/docs/WebHelp/images/CustomStoreLookAndFeelWithCallouts.jpg">See example layout on ebay</link></para></listitem>
> > +		    <listitem><para>Primary Color</para></listitem>
> > +		    <listitem><para>Secondary Color</para></listitem>
> > +		    <listitem><para>Accent Color</para></listitem>
> > +		    <listitem><para>Store Name(Font,Size and Color)</para></listitem>
> > +		    <listitem><para>Store Title(Font,Size and Color)</para></listitem>
> > +		    <listitem><para>Store Description(Font,Size and Color)</para></listitem>
> > +		    <listitem><para>Header Display(Select No, do not include additional information in the header.
> > +	Select Yes, include additional information in the header. (Enter in text area below))</para></listitem>
> > +		    <listitem><para>Select the eBay header style</para></listitem>
> > +		    <listitem><para>Item List Display</para></listitem>	 
> > +		    <listitem><para>Item Sort</para></listitem>
> > +		    <listitem><para>Store Merch Display</para></listitem>
> > +		    <listitem><para>Subscription Level</para></listitem>
> > +		    <listitem><para>Press 'submit' to submit data to your ebay store site</para></listitem>
> > +		</orderedlist>
> > +	    </section>
> > +</section>
> > +
> > 
> > Modified: ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml?rev=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/entitydef/entitymodel.xml Mon Jan 18 14:36:16 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=900410&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=900410&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=900410&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=900410&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=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/ofbiz-component.xml Mon Jan 18 14:36:16 2010
> > @@ -23,12 +23,14 @@
> >          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"/>
> >      <entity-resource type="data" reader-name="seed" loader="main" location="data/EbaySecurityData.xml"/>
> >      <entity-resource type="data" reader-name="seed" loader="main" location="data/EbayTypeData.xml"/>
> >      <entity-resource type="data" reader-name="seed" loader="main" location="data/EbayHelpData.xml"/>
> > +    <entity-resource type="data" reader-name="seed" loader="main" location="data/EbayPortletData.xml"/>
> >      <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoEbayData.xml"/>
> >  
> >      <service-resource type="model" loader="main" location="servicedef/services.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=900410&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 14:36:16 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>
> > \ No newline at end of file
> > 
> > Modified: ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml?rev=900410&r1=900409&r2=900410&view=diff
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml (original)
> > +++ ofbiz/trunk/specialpurpose/ebay/servicedef/services.xml Mon Jan 18 14:36:16 2010
> > @@ -164,4 +164,116 @@
> >          <auto-attributes include="pk" mode="IN" optional="false"/>
> >      </service>
> >      
> > +    <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>
> > +    <service name="setEbayStoreInput" engine="java"  transaction-timeout="3600"
> > +        location="org.ofbiz.ebay.EbayStore" invoke="setEbayStoreInput" auth="true">
> > +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> > +        <attribute name="themeType" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeName" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeDesc" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeUrl" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeLogoId" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeLogoName" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeLogoURL" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeAdvancedTheme" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeAdvancedThemeColor" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeBasicTheme" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storePrimaryColor" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeSecondaryColor" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeAccentColor" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeNameFont" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeNameFontSize" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeNameFontColor" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeTitleFont" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeTitleFontSize" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeTitleFontColor" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeDescFont" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeDescFontSize" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeDescFontColor" mode="IN" type="String" optional="true"/>
> > +        <attribute name="storeCustomHeaderLayout" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeCustomHeader" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeHeaderStyle" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeItemLayout" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeItemSortOrder" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeMerchDisplay" mode="IN" type="String" optional="false"/>
> > +        <attribute name="storeSubscriptionDisplay" mode="IN" type="String" optional="false"/>
> > +        <attribute name="ebayStore" type="Map" mode="OUT" optional="true"/>
> > +    </service>
> > +    <!-- ebay account -->
> > +    <service name="getEbayStoreUser" engine="java" location="org.ofbiz.ebay.EbayStore" invoke="getEbayStoreUser" auth="true" transaction-timeout="3600">
> > +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> > +        <attribute name="userLoginId" mode="OUT" type="String" optional="true"/>
> > +    </service>
> > +    <service name="getEbayUser" engine="java" transaction-timeout="3600"
> > +        location="org.ofbiz.ebay.EbayAccount" invoke="getEbayUser" auth="true">
> > +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> > +        <attribute name="email" mode="OUT" type="String" optional="true"/>
> > +        <attribute name="registrationAddress" mode="OUT" type="Map" optional="true"/>
> > +        <attribute name="status" mode="OUT" type="String" optional="true"/>
> > +    </service>
> > +    <service name="getEbayAccount" engine="java" transaction-timeout="3600"
> > +        location="org.ofbiz.ebay.EbayAccount" invoke="getEbayAccount" auth="true">
> > +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> > +        <attribute name="accountList" mode="OUT" type="List" optional="true"/>
> > +    </service>
> > +    <service name="getEbayUserPreference" engine="java" transaction-timeout="3600"
> > +        location="org.ofbiz.ebay.EbayAccount" invoke="getEbayUserPreference" auth="true">
> > +        <attribute name="productStoreId" mode="IN" type="String" optional="false"/>
> > +        <attribute name="userPreferenceList" mode="OUT" type="List" optional="true"/>
> > +    </service>
> >  </services>
> > \ No newline at end of file
> > 
> > Added: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java
> > URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java?rev=900410&view=auto
> > ==============================================================================
> > --- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java (added)
> > +++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/EbayAccount.java Mon Jan 18 14:36:16 2010
> > @@ -0,0 +1,119 @@
> > +/*
> > + * 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.
> > + */
> > +package org.ofbiz.ebay;
> > +
> > +import java.util.Locale;
> > +import java.util.Map;
> > +import javolution.util.FastMap;
> > +
> > +import org.ofbiz.entity.Delegator;
> > +import org.ofbiz.entity.GenericValue;
> > +import org.ofbiz.service.DispatchContext;
> > +import org.ofbiz.service.LocalDispatcher;
> > +import org.ofbiz.service.ServiceUtil;
> > +
> > +import com.ebay.sdk.ApiContext;
> > +import com.ebay.sdk.call.*;
> > +import com.ebay.soap.eBLBaseComponents.AddressType;
> > +import com.ebay.soap.eBLBaseComponents.DetailLevelCodeType;
> > +import com.ebay.soap.eBLBaseComponents.UserType;
> > +
> > +public class EbayAccount {
> > +    private static final String resource = "EbayUiLabels";
> > +    private static final String configFileName = "ebayExport.properties";
> > +    private static final String module = EbayAccount.class.getName();
> > +    
> > +	public static Map<String, Object> getEbayUser(DispatchContext dctx, Map<String, ? extends Object> context){
> > +		Map<String, Object>result = FastMap.newInstance();
> > +		String errorMsg = null;
> > +		LocalDispatcher dispatcher = dctx.getDispatcher();
> > +		GenericValue userLogin = (GenericValue) context.get("userLogin");
> > +		Delegator delegator = dctx.getDelegator();
> > +		Locale locale = (Locale) context.get("locale");
> > +		String productStoreId = (String) context.get("productStoreId");
> > +		
> > +		// Output Variable
> > +		String email = null,
> > +			cityName = null, 
> > +			companyName = null, 
> > +			country = null, 
> > +			firstName = null, 
> > +			lastName = null,
> > +			name = null,
> > +			phone = null, 
> > +			postalCode = null,
> > +			stateOrProvince = null, 
> > +			street = null, 
> > +			street1 = null, 
> > +			street2 = null,
> > +			status = null;
> > +		Map<String, Object>registrationAddress = FastMap.newInstance();
> > +		
> > +		try{
> > +			Map<String, Object>infoMap = FastMap.newInstance();
> > +			ApiContext apiContext = EbayHelper.getApiContext(productStoreId, locale, delegator);
> > +			GetUserCall getUserCall  = new GetUserCall(apiContext);
> > +			DetailLevelCodeType[] detailLevel = {DetailLevelCodeType.RETURN_ALL};
> > +			getUserCall.setDetailLevel(detailLevel);
> > +			UserType  user = getUserCall.getUser();
> > +			if(user != null){
> > +				email = user.getEmail();
> > +				AddressType regAddress = user.getRegistrationAddress();
> > +				if(regAddress != null){
> > +					cityName = regAddress.getCityName();
> > +					companyName = regAddress.getCompanyName();
> > +					country = regAddress.getCountryName();
> > +					firstName = regAddress.getFirstName();
> > +					lastName = regAddress.getLastName();
> > +					name = regAddress.getName();
> > +					phone = regAddress.getPhone();
> > +					postalCode = regAddress.getPostalCode();
> > +					stateOrProvince = regAddress.getStateOrProvince();
> > +					street = regAddress.getStreet();
> > +					street1 = regAddress.getStreet1();
> > +					street2 = regAddress.getStreet2();
> > +				}
> > +				if(firstName == null && lastName == null && name !=null){
> > +					String nameArray[] = name.split(" ");
> > +					firstName = nameArray[0];
> > +					lastName = nameArray[1];
> > +				}
> > +				registrationAddress.put("cityName", cityName);
> > +				registrationAddress.put("companyName", companyName);
> > +				registrationAddress.put("country", country);
> > +				registrationAddress.put("firstName", firstName);
> > +				registrationAddress.put("lastName", lastName);
> > +				registrationAddress.put("phone", phone);
> > +				registrationAddress.put("postalCode", postalCode);
> > +				registrationAddress.put("stateOrProvince", stateOrProvince);
> > +				registrationAddress.put("street", street);
> > +				registrationAddress.put("street1", street1);
> > +				registrationAddress.put("street2", street2);
> > +				status = user.getStatus().toString();
> > +			}
> > +			result.put("email", email);
> > +			result.put("registrationAddress", registrationAddress);
> > +			result.put("status", status);
> > +		}catch(Exception e){
> > +			// TODO Auto-generated catch block
> > +			return  ServiceUtil.returnError(e.getMessage());
> > +		}
> > +		return result;
> > +	}
> > +}
> > 
> > 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=900410&r1=900409&r2=900410&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 14:36:16 2010
> > @@ -57,6 +57,13 @@
> >  import org.w3c.dom.Document;
> >  import org.w3c.dom.Element;
> >  
> > +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();
> > @@ -75,13 +82,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", UtilProperties.getPropertyValue(configFileName, "eBayExport.apiServerUrl"));
> >              }
> >          } else {
> >              buildEbayConfigContext.put("devID", UtilProperties.getPropertyValue(configFileName, "eBayExport.devID"));
> > @@ -91,6 +99,7 @@
> >              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 +614,72 @@
> >          }
> >          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;
> > +    }
> > +}
> > 
> > 
> 
-- 
Antwebsystems.com: Quality OFBiz services for competitive rates