Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Requested store view not found
 
msayag
Jr. Member
 
Total Posts:  25
Joined:  2008-12-22
 

Hi everyone and happy new year,

I am trying to access Magento by Java, using webservice code that was generated by NetBeans.

When I try to run the following code I get an error: “Requested store view not found” at the call to category.tree

MagentoService service = new MagentoService_Impl();
Mage_Api_Model_Server_HandlerPortType handler service.getMage_Api_Model_Server_HandlerPort();
String sessionId handler.login("test_user""test_key");
System.out.println("sessionId:" sessionId);

Map treeInfo = new HashMap();
treeInfo.put("parentId"0);
treeInfo.put("storeView""default");
Object result handler.call(sessionId"category.tree"treeInfo);
System.out.println("result:" result);

What need I pass as the storeView? How can I find it?

Another thing:
parentId and storeView are defined as “optional”, however, if I remove any of them I get the error:

Using $this when not in object context
and if I remove both I get:
deserialization errorno deserializer is registered for (null{http://xml.apache.org/xml-soap}Map)

Please advise,

Moshe

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top