From b6410360ad4272c9ac6fdcaf8c30b807a1c6053e Mon Sep 17 00:00:00 2001 From: Remi Ebeling Date: Thu, 3 Nov 2022 16:21:19 +0100 Subject: [PATCH 1/3] I think The Parameter that is used to select the storeView must be named `store` This selects the correct storeView: ``` $result = $proxy->catalogCategoryInfo( (object)array( 'sessionId' => $sessionId->result, 'categoryId' => '123', 'store' => 2 ) ); ``` This is ignored: ``` $result = $proxy->catalogCategoryInfo( (object)array( 'sessionId' => $sessionId->result, 'categoryId' => '123', 'store' => 2 ) ); ``` --- .../api/soap/catalog/catalogCategory/catalog_category.info.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html b/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html index 0c04ad954c..ef000cd988 100644 --- a/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html +++ b/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html @@ -53,7 +53,7 @@
Method:
string - storeView + store Store view ID or code (optional) From 05656343bae876beb9286f8640bdad5c775b4367 Mon Sep 17 00:00:00 2001 From: Remi Ebeling Date: Fri, 4 Nov 2022 11:54:40 +0100 Subject: [PATCH 2/3] Add difference between wsdl and wsi definitions to docs --- .../catalogCategory/catalog_category.info.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html b/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html index ef000cd988..6061743bba 100644 --- a/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html +++ b/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html @@ -53,7 +53,7 @@
Method:
string - store + storeView Store view ID or code (optional) @@ -297,6 +297,21 @@
+
Filter by StoreView V2 (WS-I Compliance Mode)
+ +Attention: In WS-I Compliance Mode the parameter that is used to retrieve data for a specific storeView is named `store` instead of `storeView`. + +
+
+
$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl');
+
+$sessionId = $proxy->login((object)array('username' => 'apiUser', 'apiKey' => 'apiKey'));
+
+$result = $proxy->catalogCategoryInfo((object)array('sessionId' => $sessionId->result, 'categoryId' => '5', 'store' => '1' ));
+var_dump($result->result);
+
+
+
Response Example SOAP V1
From ab3429397989e5ab718cd21620657bd5c2b7fe8b Mon Sep 17 00:00:00 2001 From: Remi Ebeling Date: Fri, 4 Nov 2022 11:55:42 +0100 Subject: [PATCH 3/3] use htmlEntities --- .../api/soap/catalog/catalogCategory/catalog_category.info.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html b/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html index 6061743bba..bfe4533610 100644 --- a/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html +++ b/guides/m1x/api/soap/catalog/catalogCategory/catalog_category.info.html @@ -307,7 +307,7 @@
$sessionId = $proxy->login((object)array('username' => 'apiUser', 'apiKey' => 'apiKey')); -$result = $proxy->catalogCategoryInfo((object)array('sessionId' => $sessionId->result, 'categoryId' => '5', 'store' => '1' )); +$result = $proxy->catalogCategoryInfo((object)array('sessionId' => $sessionId->result, 'categoryId' => '5', 'store' => '1' )); var_dump($result->result);