Version Notes
This is the first public release of the HotWax Commerce Connect Extension and is compatible with both Magento Enterprise and Community versions. This plug-in supports HotWax Commerce 6.0 and later as well as OFBiz 13.07 and later.
Download this release
Release Info
Developer | HotWax Systems |
Extension | HotWax_Commerce_Connect |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/OFBiz/Magentoext/Model/Magento/Catalog/Api.php +22 -0
- app/code/community/OFBiz/Magentoext/Model/Magento/Catalog/Api/V2.php +4 -0
- app/code/community/OFBiz/Magentoext/Model/Magento/Order/Api.php +36 -0
- app/code/community/OFBiz/Magentoext/Model/Magento/Order/Api/V2.php +4 -0
- app/code/community/OFBiz/Magentoext/Model/Magento/Store/Api.php +92 -0
- app/code/community/OFBiz/Magentoext/Model/Magento/Store/Api/V2.php +4 -0
- app/code/community/OFBiz/Magentoext/etc/api.xml +107 -0
- app/code/community/OFBiz/Magentoext/etc/config.xml +80 -0
- app/code/community/OFBiz/Magentoext/etc/wsdl.xml +200 -0
- app/code/community/OFBiz/Magentoext/etc/wsi.xml +244 -0
- app/etc/modules/OFBiz_Magentoext.xml +9 -0
- package.xml +38 -0
app/code/community/OFBiz/Magentoext/Model/Magento/Catalog/Api.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class OFBiz_Magentoext_Model_Magento_Catalog_Api extends Mage_Api_Model_Resource_Abstract {
|
3 |
+
public function getProductRelation($productId) {
|
4 |
+
$resultList = array();
|
5 |
+
$product = Mage::getModel('catalog/product')->load($productId);
|
6 |
+
if($product) {
|
7 |
+
$connection = Mage::getSingleton('core/resource')->getConnection('core_read');
|
8 |
+
$sql = "Select * from catalog_product_relation where child_id={$productId}";
|
9 |
+
$rows = $connection->fetchAll($sql);
|
10 |
+
foreach($rows as $val) {
|
11 |
+
$result = [];
|
12 |
+
$result['parent_id'] = $val['parent_id'];
|
13 |
+
$result['product_id'] = $val['child_id'];
|
14 |
+
$parentProduct = Mage::getModel('catalog/product')->load($val['parent_id']);
|
15 |
+
$result['parent_type'] = $parentProduct->getTypeID();
|
16 |
+
array_push($resultList, $result);
|
17 |
+
}
|
18 |
+
Mage::log($resultList, null, 'system.log');
|
19 |
+
}
|
20 |
+
return $resultList;
|
21 |
+
}
|
22 |
+
}
|
app/code/community/OFBiz/Magentoext/Model/Magento/Catalog/Api/V2.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class OFBiz_Magentoext_Model_Magento_Catalog_Api_V2 extends OFBiz_Magentoext_Model_Magento_Catalog_Api{
|
3 |
+
|
4 |
+
}
|
app/code/community/OFBiz/Magentoext/Model/Magento/Order/Api.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class OFBiz_Magentoext_Model_Magento_Order_Api extends Mage_Api_Model_Resource_Abstract {
|
3 |
+
public function editSalesOrderAddress($orderIncrementId, $orderData) {
|
4 |
+
if($orderIncrementId) {
|
5 |
+
$order = Mage::getModel('sales/order')->load($orderIncrementId, 'increment_id');
|
6 |
+
if ($order && $orderData) {
|
7 |
+
try {
|
8 |
+
$address_type = $orderData->address_type;
|
9 |
+
if($address_type == "Shipping") {
|
10 |
+
$address = $order->getShippingAddress();
|
11 |
+
} else {
|
12 |
+
$address = $order->getBillingAddress();
|
13 |
+
}
|
14 |
+
$address->setFirstname($orderData->firstname)
|
15 |
+
->setLastname($orderData->lastname)
|
16 |
+
->setStreet(array($orderData->address1, $orderData->address2))
|
17 |
+
->setCity($orderData->city)
|
18 |
+
->setPostcode($orderData->postcode)
|
19 |
+
->setRegion($orderData->region_id)
|
20 |
+
->setCountryId($orderData->country_id)
|
21 |
+
->setTelephone($orderData->telephone)
|
22 |
+
->setFax($orderData->fax)
|
23 |
+
->save();
|
24 |
+
return true;
|
25 |
+
} catch (Mage_Core_Exception $e) {
|
26 |
+
$this->_getSession()->addError($e->getMessage());
|
27 |
+
} catch (Exception $e) {
|
28 |
+
$this->_getSession()->addException(
|
29 |
+
Mage::helper('sales')->__('An error occurred while updating the order address. The address has not been changed.')
|
30 |
+
);
|
31 |
+
}
|
32 |
+
}
|
33 |
+
}
|
34 |
+
return false;
|
35 |
+
}
|
36 |
+
}
|
app/code/community/OFBiz/Magentoext/Model/Magento/Order/Api/V2.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class OFBiz_Magentoext_Model_Magento_Order_Api_V2 extends OFBiz_Magentoext_Model_Magento_Order_Api{
|
3 |
+
|
4 |
+
}
|
app/code/community/OFBiz/Magentoext/Model/Magento/Store/Api.php
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class OFBiz_Magentoext_Model_Magento_Store_Api extends Mage_Api_Model_Resource_Abstract {
|
3 |
+
public function address($store) {
|
4 |
+
$storeAddressInfo = array();
|
5 |
+
|
6 |
+
$storeAddressInfo['store_name'] = Mage::getStoreConfig('general/store_information/name', $store);
|
7 |
+
$storeAddressInfo['contact_number'] = Mage::getStoreConfig('general/store_information/phone', $store);
|
8 |
+
$storeAddressInfo['country'] = Mage::getStoreConfig('general/store_information/merchant_country', $store);
|
9 |
+
$storeAddressInfo['address'] = Mage::getStoreConfig('general/store_information/address', $store);
|
10 |
+
$storeAddressInfo['email_address'] = Mage::getStoreConfig('trans_email/ident_general/email');
|
11 |
+
return $storeAddressInfo;
|
12 |
+
}
|
13 |
+
|
14 |
+
public function shippingMethods($store) {
|
15 |
+
$carrierAndAllowedMethods = array();
|
16 |
+
$shippingOptions = array();
|
17 |
+
$carriers = Mage::getSingleton('shipping/config')->getAllCarriers();
|
18 |
+
foreach ($carriers as $carrierCode=>$carrierModel) {
|
19 |
+
$path = 'carriers/'.$carrierCode;
|
20 |
+
$carrierAndAllowedMethods['allowedMethods'] = Mage::getStoreConfig($path.'/allowed_methods', $store);
|
21 |
+
$carrierAndAllowedMethods['active'] = Mage::getStoreConfig($path.'/active', $store);
|
22 |
+
$carrierAndAllowedMethods['username'] = Mage::getStoreConfig($path.'/username', $store);
|
23 |
+
$carrierAndAllowedMethods['password'] = Mage::getStoreConfig($path.'/password', $store);
|
24 |
+
$carrierAndAllowedMethods['gatewayUrl'] = Mage::getStoreConfig($path.'/gateway_url', $store);
|
25 |
+
$carrierAndAllowedMethods['gatewayXmlUrl'] = Mage::getStoreConfig($path.'/gateway_xml_url', $store);
|
26 |
+
$carrierAndAllowedMethods['trackingXmlUrl'] = Mage::getStoreConfig($path.'/tracking_xml_url', $store);
|
27 |
+
$carrierAndAllowedMethods['shipConfirmXmlUrl'] = Mage::getStoreConfig($path.'/shipconfirm_xml_url', $store);
|
28 |
+
$carrierAndAllowedMethods['shipAcceptXmlUrl'] = Mage::getStoreConfig($path.'/shipaccept_xml_url', $store);
|
29 |
+
$carrierAndAllowedMethods['accessLicenseNumber'] = Mage::getStoreConfig($path.'/access_license_number', $store);
|
30 |
+
$carrierAndAllowedMethods['gatewaySecureUrl'] = Mage::getStoreConfig($path.'/gateway_secure_url', $store);
|
31 |
+
$carrierAndAllowedMethods['userId'] = Mage::getStoreConfig($path.'/userid', $store);
|
32 |
+
$carrierAndAllowedMethods['account'] = Mage::getStoreConfig($path.'/account', $store);
|
33 |
+
$carrierAndAllowedMethods['meterNumber'] = Mage::getStoreConfig($path.'/meter_number', $store);
|
34 |
+
$carrierAndAllowedMethods['key'] = Mage::getStoreConfig($path.'/key', $store);
|
35 |
+
$carrierAndAllowedMethods['id'] = Mage::getStoreConfig($path.'/id', $store);
|
36 |
+
$carrierAndAllowedMethods['carrierCode'] = $carrierCode;
|
37 |
+
$shippingOptions[] = $carrierAndAllowedMethods;
|
38 |
+
}
|
39 |
+
return $shippingOptions;
|
40 |
+
}
|
41 |
+
|
42 |
+
public function currency($store) {
|
43 |
+
$currency = array();
|
44 |
+
$currency['default'] = Mage::getStoreConfig('currency/options/default', $store);
|
45 |
+
$currency['base'] = Mage::getStoreConfig('currency/options/base', $store);
|
46 |
+
return $currency;
|
47 |
+
}
|
48 |
+
|
49 |
+
public function shippingOrigin($store) {
|
50 |
+
$shippingOrigin = array();
|
51 |
+
$shippingOrigin['country_id'] = Mage::getStoreConfig('shipping/origin/country_id', $store);
|
52 |
+
|
53 |
+
$regionId = Mage::getStoreConfig('shipping/origin/region_id', $store);
|
54 |
+
$regionModel = Mage::getModel('directory/region/')->load($regionId);
|
55 |
+
$shippingOrigin['region_code'] = $regionModel->getCode();
|
56 |
+
|
57 |
+
$shippingOrigin['postcode'] = Mage::getStoreConfig('shipping/origin/postcode', $store);
|
58 |
+
$shippingOrigin['city'] = Mage::getStoreConfig('shipping/origin/city', $store);
|
59 |
+
$shippingOrigin['street_line1'] = Mage::getStoreConfig('shipping/origin/street_line1', $store);
|
60 |
+
$shippingOrigin['street_line2'] = Mage::getStoreConfig('shipping/origin/street_line2', $store);
|
61 |
+
return $shippingOrigin;
|
62 |
+
}
|
63 |
+
|
64 |
+
public function config() {
|
65 |
+
$config = array();
|
66 |
+
$storeConfig = array();
|
67 |
+
$websites = Mage::app()->getWebsites();
|
68 |
+
foreach ($websites as $website) {
|
69 |
+
$websiteId = $website->getWebsiteId();
|
70 |
+
$website = Mage::app()->getWebsite($websiteId);
|
71 |
+
$storeGroups = $website->getGroups();
|
72 |
+
foreach ($storeGroups as $storeGroup) {
|
73 |
+
$defaultStoreId = $storeGroup->getDefaultStoreId();
|
74 |
+
$store = Mage::app()->getStore($defaultStoreId);
|
75 |
+
$storeConfig['website_id'] = $websiteId;
|
76 |
+
$storeConfig['default_store_id'] = $store->getId();
|
77 |
+
$storeConfig['group_id'] = $storeGroup->getId();
|
78 |
+
$storeConfig['store_group_name'] = $storeGroup->getName();
|
79 |
+
$storeConfig['root_category_id'] = $storeGroup->getRootCategoryId();
|
80 |
+
$storeConfig['code'] = $store->getCode();
|
81 |
+
$storeConfig['name'] = $store->getName();
|
82 |
+
$storeConfig['is_active'] = $store->getIsActive();
|
83 |
+
$storeConfig['shipping_origin'] = $this->shippingOrigin($store);
|
84 |
+
$storeConfig['currency'] = $this->currency($store);
|
85 |
+
$storeConfig['shipping_methods'] = $this->shippingMethods($store);
|
86 |
+
$storeConfig['address'] = $this->address($store);
|
87 |
+
$config[] = $storeConfig;
|
88 |
+
}
|
89 |
+
}
|
90 |
+
return $config;
|
91 |
+
}
|
92 |
+
}
|
app/code/community/OFBiz/Magentoext/Model/Magento/Store/Api/V2.php
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class OFBiz_Magentoext_Model_Magento_Store_Api_V2 extends OFBiz_Magentoext_Model_Magento_Store_Api{
|
3 |
+
|
4 |
+
}
|
app/code/community/OFBiz/Magentoext/etc/api.xml
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<OFBiz_Magentoext>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</OFBiz_Magentoext>
|
7 |
+
</modules>
|
8 |
+
<api>
|
9 |
+
<resources>
|
10 |
+
<magentoext_magento_store translate="title" module="ofbiz_magentoext">
|
11 |
+
<title>custom API</title>
|
12 |
+
<model>magentoext/magento_store_api</model>
|
13 |
+
<acl>magentoext/magento_custom</acl>
|
14 |
+
<methods>
|
15 |
+
<config translate="title" module="ofbiz_magentoext">
|
16 |
+
<title>Get store configuration</title>
|
17 |
+
<acl>magentoext/magento/store/config</acl>
|
18 |
+
</config>
|
19 |
+
</methods>
|
20 |
+
<faults module="ofbiz_magentoext">
|
21 |
+
<project_not_exists>
|
22 |
+
<code>101</code>
|
23 |
+
<message>Requested project does not exist.</message>
|
24 |
+
</project_not_exists>
|
25 |
+
<invalid_data>
|
26 |
+
<code>102</code>
|
27 |
+
<message>Provided data is invalid.</message>
|
28 |
+
</invalid_data>
|
29 |
+
<save_error>
|
30 |
+
<code>103</code>
|
31 |
+
<message>Error while saving project. Details in error message.</message>
|
32 |
+
</save_error>
|
33 |
+
<remove_error>
|
34 |
+
<code>104</code>
|
35 |
+
<message>Error while removing project. Details in error message.</message>
|
36 |
+
</remove_error>
|
37 |
+
</faults>
|
38 |
+
</magentoext_magento_store>
|
39 |
+
<magentoext_magento_order translate="title" module="ofbiz_magentoext">
|
40 |
+
<title>Edit Sales Order API</title>
|
41 |
+
<model>magentoext/magento_order_api</model>
|
42 |
+
<methods>
|
43 |
+
<editSalesOrderAddress translate="title" module="ofbiz_magentoext">
|
44 |
+
<title>Edit Sales Order Address</title>
|
45 |
+
<acl>magentoext/magento/order/editSalesOrderAddress</acl>
|
46 |
+
</editSalesOrderAddress>
|
47 |
+
</methods>
|
48 |
+
<faults module="ofbiz_magentoext">
|
49 |
+
<project_not_exists>
|
50 |
+
<code>101</code>
|
51 |
+
<message>Requested project does not exist.</message>
|
52 |
+
</project_not_exists>
|
53 |
+
<invalid_data>
|
54 |
+
<code>102</code>
|
55 |
+
<message>Provided data is invalid.</message>
|
56 |
+
</invalid_data>
|
57 |
+
<save_error>
|
58 |
+
<code>103</code>
|
59 |
+
<message>Error while saving project. Details in error message.</message>
|
60 |
+
</save_error>
|
61 |
+
<remove_error>
|
62 |
+
<code>104</code>
|
63 |
+
<message>Error while removing project. Details in error message.</message>
|
64 |
+
</remove_error>
|
65 |
+
</faults>
|
66 |
+
</magentoext_magento_order>
|
67 |
+
<magentoext_magento_catalog translate="title" module="ofbiz_magentoext">
|
68 |
+
<title>Catalog API</title>
|
69 |
+
<model>magentoext/magento_catalog_api</model>
|
70 |
+
<methods>
|
71 |
+
<getProductRelation translate="title" module="ofbiz_magentoext">
|
72 |
+
<title>Get Product Relation</title>
|
73 |
+
<acl>magentoext/magento/catalog/getProductRelation</acl>
|
74 |
+
</getProductRelation>
|
75 |
+
</methods>
|
76 |
+
<faults module="ofbiz_magentoext">
|
77 |
+
<project_not_exists>
|
78 |
+
<code>101</code>
|
79 |
+
<message>Requested project does not exist.</message>
|
80 |
+
</project_not_exists>
|
81 |
+
<invalid_data>
|
82 |
+
<code>102</code>
|
83 |
+
<message>Provided data is invalid.</message>
|
84 |
+
</invalid_data>
|
85 |
+
<save_error>
|
86 |
+
<code>103</code>
|
87 |
+
<message>Error while saving project. Details in error message.</message>
|
88 |
+
</save_error>
|
89 |
+
<remove_error>
|
90 |
+
<code>104</code>
|
91 |
+
<message>Error while removing project. Details in error message.</message>
|
92 |
+
</remove_error>
|
93 |
+
</faults>
|
94 |
+
</magentoext_magento_catalog>
|
95 |
+
</resources>
|
96 |
+
<!-- <resources_alias>
|
97 |
+
<magento_store>magentoext_magento_store</magento_store>
|
98 |
+
</resources_alias> -->
|
99 |
+
<v2>
|
100 |
+
<resources_function_prefix>
|
101 |
+
<magentoext_magento_store>magentoStore</magentoext_magento_store>
|
102 |
+
<magentoext_magento_order>magentoOrder</magentoext_magento_order>
|
103 |
+
<magentoext_magento_catalog>magentoCatalog</magentoext_magento_catalog>
|
104 |
+
</resources_function_prefix>
|
105 |
+
</v2>
|
106 |
+
</api>
|
107 |
+
</config>
|
app/code/community/OFBiz/Magentoext/etc/config.xml
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" ?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<OFBiz_Magentoext>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</OFBiz_Magentoext>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
<helpers>
|
11 |
+
<mycompany_magentoext>
|
12 |
+
<class>OFBiz_Magentoext_Helper</class>
|
13 |
+
</mycompany_magentoext>
|
14 |
+
</helpers>
|
15 |
+
|
16 |
+
<models>
|
17 |
+
<magentoext>
|
18 |
+
<class>OFBiz_Magentoext_Model</class>
|
19 |
+
<resourceModel>magentoext_resource</resourceModel>
|
20 |
+
</magentoext>
|
21 |
+
<magentoext_resource>
|
22 |
+
<class>OFBiz_Magentoext_Model_Resource</class>
|
23 |
+
</magentoext_resource>
|
24 |
+
</models>
|
25 |
+
|
26 |
+
<resources>
|
27 |
+
<magentoext_setup>
|
28 |
+
<setup>
|
29 |
+
<module>OFBiz_Magentoext</module>
|
30 |
+
</setup>
|
31 |
+
<connection>
|
32 |
+
<use>core_setup</use>
|
33 |
+
</connection>
|
34 |
+
</magentoext_setup>
|
35 |
+
<magentoext_write>
|
36 |
+
<connection>
|
37 |
+
<use>core_write</use>
|
38 |
+
</connection>
|
39 |
+
</magentoext_write>
|
40 |
+
<magentoext_read>
|
41 |
+
<connection>
|
42 |
+
<use>core_read</use>
|
43 |
+
</connection>
|
44 |
+
</magentoext_read>
|
45 |
+
</resources>
|
46 |
+
</global>
|
47 |
+
<admin>
|
48 |
+
<routers>
|
49 |
+
<adminhtml>
|
50 |
+
<args>
|
51 |
+
<modules>
|
52 |
+
<magentoext before="Mage_Adminhtml">OFBiz_Magentoext_Adminhtml</magentoext>
|
53 |
+
</modules>
|
54 |
+
</args>
|
55 |
+
</adminhtml>
|
56 |
+
</routers>
|
57 |
+
</admin>
|
58 |
+
|
59 |
+
<frontend>
|
60 |
+
<routers>
|
61 |
+
<magentoext>
|
62 |
+
<use>standard</use>
|
63 |
+
<args>
|
64 |
+
<module>OFBiz_Magentoext</module>
|
65 |
+
<frontName>magentoext</frontName>
|
66 |
+
</args>
|
67 |
+
</magentoext>
|
68 |
+
</routers>
|
69 |
+
</frontend>
|
70 |
+
|
71 |
+
<adminhtml>
|
72 |
+
<layout>
|
73 |
+
<updates>
|
74 |
+
<magentoext>
|
75 |
+
<file>magentoext.xml</file>
|
76 |
+
</magentoext>
|
77 |
+
</updates>
|
78 |
+
</layout>
|
79 |
+
</adminhtml>
|
80 |
+
</config>
|
app/code/community/OFBiz/Magentoext/etc/wsdl.xml
ADDED
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<definitions xmlns:typens="urn:{{var wsdl.name}}" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
3 |
+
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
|
4 |
+
name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
|
5 |
+
<types>
|
6 |
+
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento">
|
7 |
+
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
|
8 |
+
<complexType name="storeAddressEntity">
|
9 |
+
<all>
|
10 |
+
<element name="store_name" type="xsd:string"/>
|
11 |
+
<element name="contact_number" type="xsd:string"/>
|
12 |
+
<element name="country" type="xsd:string"/>
|
13 |
+
<element name="address" type="xsd:string"/>
|
14 |
+
<element name="email_address" type="xsd:string"/>
|
15 |
+
</all>
|
16 |
+
</complexType>
|
17 |
+
<complexType name="storeShippingMethodsEntity">
|
18 |
+
<all>
|
19 |
+
<element name="allowedMethods" type="xsd:string"/>
|
20 |
+
<element name="active" type="xsd:string"/>
|
21 |
+
<element name="username" type="xsd:string"/>
|
22 |
+
<element name="password" type="xsd:string"/>
|
23 |
+
<element name="gatewayUrl" type="xsd:string"/>
|
24 |
+
<element name="gatewayXmlUrl" type="xsd:string" />
|
25 |
+
<element name="trackingXmlUrl" type="xsd:string" />
|
26 |
+
<element name="shipConfirmXmlUrl" type="xsd:string" />
|
27 |
+
<element name="shipAcceptXmlUrl" type="xsd:string" />
|
28 |
+
<element name="accessLicenseNumber" type="xsd:string" />
|
29 |
+
<element name="gatewaySecureUrl" type="xsd:string" />
|
30 |
+
<element name="userId" type="xsd:string" />
|
31 |
+
<element name="account" type="xsd:string" />
|
32 |
+
<element name="meterNumber" type="xsd:string" />
|
33 |
+
<element name="key" type="xsd:string" />
|
34 |
+
<element name="id" type="xsd:string" />
|
35 |
+
<element name="carrierCode" type="xsd:string"/>
|
36 |
+
</all>
|
37 |
+
</complexType>
|
38 |
+
<complexType name="storeShippingMethodsEntityArray">
|
39 |
+
<complexContent>
|
40 |
+
<restriction base="soapenc:Array">
|
41 |
+
<attribute ref="soapenc:arrayType" wsdl:arrayType="typens:storeShippingMethodsEntity[]" />
|
42 |
+
</restriction>
|
43 |
+
</complexContent>
|
44 |
+
</complexType>
|
45 |
+
<complexType name="storeShippingOriginEntity">
|
46 |
+
<all>
|
47 |
+
<element name="country_id" type="xsd:string"/>
|
48 |
+
<element name="region_code" type="xsd:string"/>
|
49 |
+
<element name="postcode" type="xsd:string"/>
|
50 |
+
<element name="city" type="xsd:string"/>
|
51 |
+
<element name="street_line1" type="xsd:string"/>
|
52 |
+
<element name="street_line2" type="xsd:string"/>
|
53 |
+
</all>
|
54 |
+
</complexType>
|
55 |
+
<complexType name="storeCurrencyEntity">
|
56 |
+
<all>
|
57 |
+
<element name="base" type="xsd:string"/>
|
58 |
+
<element name="default" type="xsd:string"/>
|
59 |
+
</all>
|
60 |
+
</complexType>
|
61 |
+
<complexType name="storeConfigEntity">
|
62 |
+
<all>
|
63 |
+
<element name="address" type="typens:storeAddressEntity"/>
|
64 |
+
<element name="shipping_methods" type="typens:storeShippingMethodsEntityArray"/>
|
65 |
+
<element name="shipping_origin" type="typens:storeShippingOriginEntity"/>
|
66 |
+
<element name="currency" type="typens:storeCurrencyEntity"/>
|
67 |
+
<element name="website_id" type="xsd:string"/>
|
68 |
+
<element name="default_store_id" type="xsd:string"/>
|
69 |
+
<element name="group_id" type="xsd:string"/>
|
70 |
+
<element name="is_active" type="xsd:string"/>
|
71 |
+
<element name="store_group_name" type="xsd:string"/>
|
72 |
+
<element name="root_category_id" type="xsd:string"/>
|
73 |
+
<element name="code" type="xsd:string"/>
|
74 |
+
<element name="name" type="xsd:string"/>
|
75 |
+
</all>
|
76 |
+
</complexType>
|
77 |
+
<complexType name="storeConfigEntityArray">
|
78 |
+
<complexContent>
|
79 |
+
<restriction base="soapenc:Array">
|
80 |
+
<attribute ref="soapenc:arrayType" wsdl:arrayType="typens:storeConfigEntity[]" />
|
81 |
+
</restriction>
|
82 |
+
</complexContent>
|
83 |
+
</complexType>
|
84 |
+
<complexType name="salesOrderAddressUpdateEntity">
|
85 |
+
<all>
|
86 |
+
<element name="address_type" type="xsd:string" minOccurs="0" />
|
87 |
+
<element name="firstname" type="xsd:string" minOccurs="0" />
|
88 |
+
<element name="lastname" type="xsd:string" minOccurs="0" />
|
89 |
+
<element name="address1" type="xsd:string" minOccurs="0" />
|
90 |
+
<element name="address2" type="xsd:string" minOccurs="0" />
|
91 |
+
<element name="city" type="xsd:string" minOccurs="0" />
|
92 |
+
<element name="region" type="xsd:string" minOccurs="0" />
|
93 |
+
<element name="postcode" type="xsd:string" minOccurs="0" />
|
94 |
+
<element name="country_id" type="xsd:string" minOccurs="0" />
|
95 |
+
<element name="telephone" type="xsd:string" minOccurs="0" />
|
96 |
+
<element name="fax" type="xsd:string" minOccurs="0" />
|
97 |
+
<element name="region_id" type="xsd:string" minOccurs="0" />
|
98 |
+
<element name="address_id" type="xsd:string" minOccurs="0" />
|
99 |
+
</all>
|
100 |
+
</complexType>
|
101 |
+
<complexType name="catalogProductRelationEntity">
|
102 |
+
<all>
|
103 |
+
<element name="product_id" type="xsd:int"/>
|
104 |
+
<element name="parent_id" type="xsd:int"/>
|
105 |
+
<element name="parent_type" type="xsd:int"/>
|
106 |
+
</all>
|
107 |
+
</complexType>
|
108 |
+
<complexType name="catalogProductRelationEntityArray">
|
109 |
+
<complexContent>
|
110 |
+
<restriction base="soapenc:Array">
|
111 |
+
<attribute ref="soapenc:arrayType" wsdl:arrayType="typens:catalogProductRelationEntity[]" />
|
112 |
+
</restriction>
|
113 |
+
</complexContent>
|
114 |
+
</complexType>
|
115 |
+
</schema>
|
116 |
+
</types>
|
117 |
+
<message name="storeConfigRequest">
|
118 |
+
<part name="sessionId" type="xsd:string" />
|
119 |
+
</message>
|
120 |
+
<message name="storeConfigResponse">
|
121 |
+
<part name="result" type="typens:storeConfigEntityArray" />
|
122 |
+
</message>
|
123 |
+
<message name="editSalesOrderAddressRequest">
|
124 |
+
<part name="sessionId" type="xsd:string" />
|
125 |
+
<part name="orderIncrementId" type="xsd:int" />
|
126 |
+
<part name="orderData" type="typens:salesOrderAddressUpdateEntity" />
|
127 |
+
</message>
|
128 |
+
<message name="editSalesOrderAddressResponse">
|
129 |
+
<part name="result" type="xsd:boolean" />
|
130 |
+
</message>
|
131 |
+
<message name="getProductRelationRequest">
|
132 |
+
<part name="sessionId" type="xsd:string" />
|
133 |
+
<part name="productId" type="xsd:string" />
|
134 |
+
</message>
|
135 |
+
<message name="getProductRelationResponse">
|
136 |
+
<part name="result" type="typens:catalogProductRelationEntityArray" />
|
137 |
+
</message>
|
138 |
+
<portType name="{{var wsdl.handler}}PortType">
|
139 |
+
<operation name="magentoStoreConfig">
|
140 |
+
<documentation>Retrieve store configuration</documentation>
|
141 |
+
<input message="typens:storeConfigRequest" />
|
142 |
+
<output message="typens:storeConfigResponse" />
|
143 |
+
</operation>
|
144 |
+
</portType>
|
145 |
+
<portType name="{{var wsdl.handler}}PortType">
|
146 |
+
<operation name="magentoOrderEditSalesOrderAddress">
|
147 |
+
<documentation>Edit Sales Order Address</documentation>
|
148 |
+
<input message="typens:editSalesOrderAddressRequest" />
|
149 |
+
<output message="typens:editSalesOrderAddressResponse" />
|
150 |
+
</operation>
|
151 |
+
</portType>
|
152 |
+
<portType name="{{var wsdl.handler}}PortType">
|
153 |
+
<operation name="magentoCatalogGetProductRelation">
|
154 |
+
<documentation>Get Product Relation</documentation>
|
155 |
+
<input message="typens:getProductRelationRequest" />
|
156 |
+
<output message="typens:getProductRelationResponse" />
|
157 |
+
</operation>
|
158 |
+
</portType>
|
159 |
+
<binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
160 |
+
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
161 |
+
<operation name="magentoStoreConfig">
|
162 |
+
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
163 |
+
<input>
|
164 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
165 |
+
</input>
|
166 |
+
<output>
|
167 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
168 |
+
</output>
|
169 |
+
</operation>
|
170 |
+
</binding>
|
171 |
+
<binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
172 |
+
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
173 |
+
<operation name="magentoOrderEditSalesOrderAddress">
|
174 |
+
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
175 |
+
<input>
|
176 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
177 |
+
</input>
|
178 |
+
<output>
|
179 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
180 |
+
</output>
|
181 |
+
</operation>
|
182 |
+
</binding>
|
183 |
+
<binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
184 |
+
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
185 |
+
<operation name="magentoCatalogGetProductRelation">
|
186 |
+
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
187 |
+
<input>
|
188 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
189 |
+
</input>
|
190 |
+
<output>
|
191 |
+
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
192 |
+
</output>
|
193 |
+
</operation>
|
194 |
+
</binding>
|
195 |
+
<service name="{{var wsdl.name}}Service">
|
196 |
+
<port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
|
197 |
+
<soap:address location="{{var wsdl.url}}" />
|
198 |
+
</port>
|
199 |
+
</service>
|
200 |
+
</definitions>
|
app/code/community/OFBiz/Magentoext/etc/wsi.xml
ADDED
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<wsdl:definitions xmlns:typens="urn:{{var wsdl.name}}"
|
3 |
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
4 |
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
5 |
+
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
6 |
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
7 |
+
name="{{var wsdl.name}}"
|
8 |
+
targetNamespace="urn:{{var wsdl.name}}">
|
9 |
+
<wsdl:types>
|
10 |
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:{{var wsdl.name}}">
|
11 |
+
<xsd:complexType name="storeAddressEntity">
|
12 |
+
<xsd:sequence>
|
13 |
+
<xsd:element name="store_name" type="xsd:string" />
|
14 |
+
<xsd:element name="contact_number" type="xsd:string" />
|
15 |
+
<xsd:element name="country" type="xsd:string" />
|
16 |
+
<xsd:element name="address" type="xsd:string" />
|
17 |
+
<xsd:element name="email_address" type="xsd:string" />
|
18 |
+
</xsd:sequence>
|
19 |
+
</xsd:complexType>
|
20 |
+
<xsd:complexType name="storeShippingMethodsEntity">
|
21 |
+
<xsd:sequence>
|
22 |
+
<xsd:element name="allowedMethods" type="xsd:string" />
|
23 |
+
<xsd:element name="active" type="xsd:string" />
|
24 |
+
<xsd:element name="username" type="xsd:string" />
|
25 |
+
<xsd:element name="password" type="xsd:string" />
|
26 |
+
<xsd:element name="gatewayUrl" type="xsd:string" />
|
27 |
+
<xsd:element name="gatewayXmlUrl" type="xsd:string" />
|
28 |
+
<xsd:element name="trackingXmlUrl" type="xsd:string" />
|
29 |
+
<xsd:element name="shipConfirmXmlUrl" type="xsd:string" />
|
30 |
+
<xsd:element name="shipAcceptXmlUrl" type="xsd:string" />
|
31 |
+
<xsd:element name="accessLicenseNumber" type="xsd:string" />
|
32 |
+
<xsd:element name="gatewaySecureUrl" type="xsd:string" />
|
33 |
+
<xsd:element name="userId" type="xsd:string" />
|
34 |
+
<xsd:element name="account" type="xsd:string" />
|
35 |
+
<xsd:element name="meterNumber" type="xsd:string" />
|
36 |
+
<xsd:element name="key" type="xsd:string" />
|
37 |
+
<xsd:element name="id" type="xsd:string" />
|
38 |
+
<xsd:element name="carrierCode" type="xsd:string" />
|
39 |
+
</xsd:sequence>
|
40 |
+
</xsd:complexType>
|
41 |
+
<xsd:complexType name="storeShippingMethodsEntityArray">
|
42 |
+
<xsd:sequence>
|
43 |
+
<xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:storeShippingMethodsEntity" />
|
44 |
+
</xsd:sequence>
|
45 |
+
</xsd:complexType>
|
46 |
+
<xsd:complexType name="storeShippingOriginEntity">
|
47 |
+
<xsd:sequence>
|
48 |
+
<xsd:element name="country_id" type="xsd:string" />
|
49 |
+
<xsd:element name="region_code" type="xsd:string" />
|
50 |
+
<xsd:element name="postcode" type="xsd:string" />
|
51 |
+
<xsd:element name="city" type="xsd:string" />
|
52 |
+
<xsd:element name="street_line1" type="xsd:string" />
|
53 |
+
<xsd:element name="street_line2" type="xsd:string" />
|
54 |
+
</xsd:sequence>
|
55 |
+
</xsd:complexType>
|
56 |
+
<xsd:complexType name="storeCurrencyEntity">
|
57 |
+
<xsd:sequence>
|
58 |
+
<xsd:element name="base" type="xsd:string" />
|
59 |
+
<xsd:element name="default" type="xsd:string" />
|
60 |
+
</xsd:sequence>
|
61 |
+
</xsd:complexType>
|
62 |
+
<xsd:complexType name="storeConfigEntity">
|
63 |
+
<xsd:sequence>
|
64 |
+
<xsd:element name="address" type="typens:storeAddressEntity" />
|
65 |
+
<xsd:element name="shipping_methods" type="typens:storeShippingMethodsEntityArray" />
|
66 |
+
<xsd:element name="shipping_origin" type="typens:storeShippingOriginEntity" />
|
67 |
+
<xsd:element name="currency" type="typens:storeCurrencyEntity" />
|
68 |
+
<xsd:element name="website_id" type="xsd:string" />
|
69 |
+
<xsd:element name="default_store_id" type="xsd:string" />
|
70 |
+
<xsd:element name="group_id" type="xsd:string" />
|
71 |
+
<xsd:element name="is_active" type="xsd:string" />
|
72 |
+
<xsd:element name="store_group_name" type="xsd:string" />
|
73 |
+
<xsd:element name="root_category_id" type="xsd:string" />
|
74 |
+
<xsd:element name="code" type="xsd:string" />
|
75 |
+
<xsd:element name="name" type="xsd:string" />
|
76 |
+
</xsd:sequence>
|
77 |
+
</xsd:complexType>
|
78 |
+
<xsd:complexType name="storeConfigEntityArray">
|
79 |
+
<xsd:sequence>
|
80 |
+
<xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:storeConfigEntity" />
|
81 |
+
</xsd:sequence>
|
82 |
+
</xsd:complexType>
|
83 |
+
<xsd:complexType name="salesOrderAddressUpdateEntity">
|
84 |
+
<xsd:sequence>
|
85 |
+
<xsd:element name="address_type" type="xsd:string" minOccurs="0" />
|
86 |
+
<xsd:element name="firstname" type="xsd:string" minOccurs="0" />
|
87 |
+
<xsd:element name="lastname" type="xsd:string" minOccurs="0" />
|
88 |
+
<xsd:element name="address1" type="xsd:string" minOccurs="0" />
|
89 |
+
<xsd:element name="address2" type="xsd:string" minOccurs="0" />
|
90 |
+
<xsd:element name="city" type="xsd:string" minOccurs="0" />
|
91 |
+
<xsd:element name="region" type="xsd:string" minOccurs="0" />
|
92 |
+
<xsd:element name="postcode" type="xsd:string" minOccurs="0" />
|
93 |
+
<xsd:element name="country_id" type="xsd:string" minOccurs="0" />
|
94 |
+
<xsd:element name="telephone" type="xsd:string" minOccurs="0" />
|
95 |
+
<xsd:element name="fax" type="xsd:string" minOccurs="0" />
|
96 |
+
<xsd:element name="region_id" type="xsd:string" minOccurs="0" />
|
97 |
+
<xsd:element name="address_id" type="xsd:string" minOccurs="0" />
|
98 |
+
</xsd:sequence>
|
99 |
+
</xsd:complexType>
|
100 |
+
<xsd:complexType name="catalogProductRelationEntity">
|
101 |
+
<xsd:sequence>
|
102 |
+
<xsd:element name="product_id" type="xsd:string"/>
|
103 |
+
<xsd:element name="parent_id" type="xsd:string"/>
|
104 |
+
<xsd:element name="parent_type" type="xsd:string"/>
|
105 |
+
</xsd:sequence>
|
106 |
+
</xsd:complexType>
|
107 |
+
<xsd:complexType name="catalogProductRelationEntityArray">
|
108 |
+
<xsd:sequence>
|
109 |
+
<xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:catalogProductRelationEntity" />
|
110 |
+
</xsd:sequence>
|
111 |
+
</xsd:complexType>
|
112 |
+
|
113 |
+
<xsd:element name="storeConfigRequestParam">
|
114 |
+
<xsd:complexType>
|
115 |
+
<xsd:sequence>
|
116 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
|
117 |
+
</xsd:sequence>
|
118 |
+
</xsd:complexType>
|
119 |
+
</xsd:element>
|
120 |
+
<xsd:element name="storeConfigResponseParam">
|
121 |
+
<xsd:complexType>
|
122 |
+
<xsd:sequence>
|
123 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:storeConfigEntityArray" />
|
124 |
+
</xsd:sequence>
|
125 |
+
</xsd:complexType>
|
126 |
+
</xsd:element>
|
127 |
+
<xsd:element name="editSalesOrderAddressRequestParam">
|
128 |
+
<xsd:complexType>
|
129 |
+
<xsd:sequence>
|
130 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
|
131 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="orderIncrementId" type="xsd:string" />
|
132 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="orderData" type="typens:salesOrderAddressUpdateEntity"/>
|
133 |
+
</xsd:sequence>
|
134 |
+
</xsd:complexType>
|
135 |
+
</xsd:element>
|
136 |
+
<xsd:element name="editSalesOrderAddressResponseParam">
|
137 |
+
<xsd:complexType>
|
138 |
+
<xsd:sequence>
|
139 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="result" type="xsd:boolean" />
|
140 |
+
</xsd:sequence>
|
141 |
+
</xsd:complexType>
|
142 |
+
</xsd:element>
|
143 |
+
<xsd:element name="catalogProductRelationRequestParam">
|
144 |
+
<xsd:complexType>
|
145 |
+
<xsd:sequence>
|
146 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
|
147 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="productId" type="xsd:string" />
|
148 |
+
</xsd:sequence>
|
149 |
+
</xsd:complexType>
|
150 |
+
</xsd:element>
|
151 |
+
<xsd:element name="catalogProductRelationResponseParam">
|
152 |
+
<xsd:complexType>
|
153 |
+
<xsd:sequence>
|
154 |
+
<xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:catalogProductRelationEntityArray"/>
|
155 |
+
</xsd:sequence>
|
156 |
+
</xsd:complexType>
|
157 |
+
</xsd:element>
|
158 |
+
</xsd:schema>
|
159 |
+
</wsdl:types>
|
160 |
+
|
161 |
+
<wsdl:message name="storeConfigRequest">
|
162 |
+
<wsdl:part name="parameters" element="typens:storeConfigRequestParam" />
|
163 |
+
</wsdl:message>
|
164 |
+
<wsdl:message name="storeConfigResponse">
|
165 |
+
<wsdl:part name="parameters" element="typens:storeConfigResponseParam" />
|
166 |
+
</wsdl:message>
|
167 |
+
<wsdl:message name="editSalesOrderAddressRequest">
|
168 |
+
<wsdl:part name="parameters" element="typens:editSalesOrderAddressRequestParam" />
|
169 |
+
</wsdl:message>
|
170 |
+
<wsdl:message name="editSalesOrderAddressResponse">
|
171 |
+
<wsdl:part name="parameters" element="typens:editSalesOrderAddressResponseParam" />
|
172 |
+
</wsdl:message>
|
173 |
+
<wsdl:message name="catalogProductRelationRequest">
|
174 |
+
<wsdl:part name="parameters" element="typens:catalogProductRelationRequestParam" />
|
175 |
+
</wsdl:message>
|
176 |
+
<wsdl:message name="catalogProductRelationResponse">
|
177 |
+
<wsdl:part name="parameters" element="typens:catalogProductRelationResponseParam" />
|
178 |
+
</wsdl:message>
|
179 |
+
|
180 |
+
<wsdl:portType name="{{var wsdl.handler}}PortType">
|
181 |
+
<wsdl:operation name="magentoStoreConfig">
|
182 |
+
<wsdl:documentation>Retrieve store configuration</wsdl:documentation>
|
183 |
+
<wsdl:input message="typens:storeConfigRequest" />
|
184 |
+
<wsdl:output message="typens:storeConfigResponse" />
|
185 |
+
</wsdl:operation>
|
186 |
+
</wsdl:portType>
|
187 |
+
<wsdl:portType name="{{var wsdl.handler}}PortType">
|
188 |
+
<wsdl:operation name="magentoOrderEditSalesOrderAddress">
|
189 |
+
<wsdl:documentation>Edit Sales Order Address</wsdl:documentation>
|
190 |
+
<wsdl:input message="typens:editSalesOrderAddressRequest" />
|
191 |
+
<wsdl:output message="typens:editSalesOrderAddressResponse" />
|
192 |
+
</wsdl:operation>
|
193 |
+
</wsdl:portType>
|
194 |
+
<wsdl:portType name="{{var wsdl.handler}}PortType">
|
195 |
+
<wsdl:operation name="magentoCatalogGetProductRelation">
|
196 |
+
<wsdl:documentation>Get Product Relation</wsdl:documentation>
|
197 |
+
<wsdl:input message="typens:catalogProductRelationRequest" />
|
198 |
+
<wsdl:output message="typens:catalogProductRelationResponse" />
|
199 |
+
</wsdl:operation>
|
200 |
+
</wsdl:portType>
|
201 |
+
|
202 |
+
<wsdl:binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
203 |
+
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
|
204 |
+
<wsdl:operation name="magentoStoreConfig">
|
205 |
+
<soap:operation soapAction="" />
|
206 |
+
<wsdl:input>
|
207 |
+
<soap:body use="literal" />
|
208 |
+
</wsdl:input>
|
209 |
+
<wsdl:output>
|
210 |
+
<soap:body use="literal" />
|
211 |
+
</wsdl:output>
|
212 |
+
</wsdl:operation>
|
213 |
+
</wsdl:binding>
|
214 |
+
<wsdl:binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
215 |
+
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
|
216 |
+
<wsdl:operation name="magentoOrderEditSalesOrderAddress">
|
217 |
+
<soap:operation soapAction="" />
|
218 |
+
<wsdl:input>
|
219 |
+
<soap:body use="literal" />
|
220 |
+
</wsdl:input>
|
221 |
+
<wsdl:output>
|
222 |
+
<soap:body use="literal" />
|
223 |
+
</wsdl:output>
|
224 |
+
</wsdl:operation>
|
225 |
+
</wsdl:binding>
|
226 |
+
<wsdl:binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
227 |
+
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
|
228 |
+
<wsdl:operation name="magentoCatalogGetProductRelation">
|
229 |
+
<soap:operation soapAction="" />
|
230 |
+
<wsdl:input>
|
231 |
+
<soap:body use="literal" />
|
232 |
+
</wsdl:input>
|
233 |
+
<wsdl:output>
|
234 |
+
<soap:body use="literal" />
|
235 |
+
</wsdl:output>
|
236 |
+
</wsdl:operation>
|
237 |
+
</wsdl:binding>
|
238 |
+
|
239 |
+
<wsdl:service name="{{var wsdl.name}}Service">
|
240 |
+
<wsdl:port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
|
241 |
+
<soap:address location="{{var wsdl.url}}" />
|
242 |
+
</wsdl:port>
|
243 |
+
</wsdl:service>
|
244 |
+
</wsdl:definitions>
|
app/etc/modules/OFBiz_Magentoext.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<OFBiz_Magentoext>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</OFBiz_Magentoext>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>HotWax_Commerce_Connect</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="https://www.apache.org/licenses/LICENSE-2.0">OSL (Open Software License)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Complete ERP extension for Magento delivers an end-to-end digital commerce solution that manages the entire order-to-cash cycle.</summary>
|
10 |
+
<description>HotWax Commerce Connect bridges the gap between Magento and HotWax Commerce to complete the entire order to cash cycle. HotWax Commerce Connect allows the complex business functions necessary for successful e-commerce transactions to be harmoniously completed across two powerful systems, maximizing the capabilities of both systems and providing you with the power and agility to respond to market trends and drive digital commerce.
|
11 |
+

|
12 |
+
Key Features:
|
13 |
+

|
14 |
+
Order Management
|
15 |
+
Create, edit, or cancel orders created in Magento or from other channels in HotWax Commerce’s central, easy to use order management system.
|
16 |
+

|
17 |
+
Inventory Management
|
18 |
+
Manage inventory in multiple locations and sync with your Magento store. Create POs for incoming inventory, receive inventory, and transfer inventory between locations.
|
19 |
+

|
20 |
+
Fulfillment
|
21 |
+
Pick one or more orders based on multiple criteria. Pack shipments in one or multiple packages. Create shipments with multiple carriers.
|
22 |
+

|
23 |
+
Manage Returns
|
24 |
+
Track RMAs through each step of the process from initiation, to receipt of the goods, to replacement or refund.
|
25 |
+

|
26 |
+
Financial Management
|
27 |
+
Create invoices, view payments, and run basic financial statements in HotWax Commerce.
|
28 |
+

|
29 |
+
Business Intelligence
|
30 |
+
HotWax Commerce provides analytical data and reports to give you the information to make smart business decisions.</description>
|
31 |
+
<notes>This is the first public release of the HotWax Commerce Connect Extension and is compatible with both Magento Enterprise and Community versions. This plug-in supports HotWax Commerce 6.0 and later as well as OFBiz 13.07 and later.</notes>
|
32 |
+
<authors><author><name>HotWax Systems</name><user>hotwaxcommerce</user><email>hotwax-commerce-connect@hotwaxsystems.com</email></author></authors>
|
33 |
+
<date>2015-04-14</date>
|
34 |
+
<time>05:45:23</time>
|
35 |
+
<contents><target name="magecommunity"><dir name="OFBiz"><dir name="Magentoext"><dir name="Model"><dir name="Magento"><dir name="Catalog"><dir name="Api"><file name="V2.php" hash="1babbd6a1e06cd1318cdb63bba20444c"/></dir><file name="Api.php" hash="8a0fcaccab1fe0a454de3efc9a89ecd2"/></dir><dir name="Order"><dir name="Api"><file name="V2.php" hash="1f3c5b68d94c3d752591eff201f81b2e"/></dir><file name="Api.php" hash="2e747731b8bbf7ce0090f54e8d8fdf7d"/></dir><dir name="Store"><dir name="Api"><file name="V2.php" hash="c6d7dee3e1d4ffab3738b1e728420738"/></dir><file name="Api.php" hash="fb9c61958df9224907453043ec8f0d64"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="d2235c4021b56980019a0367fe6ed34e"/><file name="config.xml" hash="e0160ec8338156a670a7843f01e8d205"/><file name="wsdl.xml" hash="6c369ba8c555277e7de8f180913a2e06"/><file name="wsi.xml" hash="d314c46d63efba6f854a7ee0dec09f0f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OFBiz_Magentoext.xml" hash="d6c07e66195deb01460a2e840372ecbc"/></dir></target></contents>
|
36 |
+
<compatible/>
|
37 |
+
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
38 |
+
</package>
|