से Magento API को कैसे कॉल करें Magento में एक एपीआई है और ऐसा लगता है कि कुछ लोग इसे VB.NET के माध्यम से उपयोग कर रहे हैं लेकिन मैं इसे कई घंटों तक प्रयास करने के बाद काम नहीं कर सकता।वीबीएनईटी
मैं Magento पर 1.7.0.2 एपीआई के साथ काम कर रहे वीबी.NET ऐप को प्राप्त करने का प्रयास कर रहा हूं। मैं डब्ल्यूएस-आई अनुपालन वेब सेवा सेटिंग का उपयोग कर रहा हूं।
Error 1 Custom tool error: Unable to import WebService/Schema. Unable to import binding ‘Mage_Api_Model_Server_Wsi_HandlerBinding’ from namespace ‘urn:Magento’. The operation ‘catalogProductAttributeRemove’ on portType ‘Mage_Api_Model_Server_Wsi_HandlerPortType’ from namespace ‘urn:Magento’ had the following syntax error: The operation has no matching binding. Check if the operation, input and output names in the Binding section match with the corresponding names in the PortType section. d:\Documents\Visual Studio 2010\Projects\Mage\Mage\My Project\Settings.settings 1 1 Mage
यदि मैं इसे सेवा संदर्भ (वेब संदर्भ के बजाए) जोड़ने की कोशिश करता हूं तो मुझे त्रुटियों का एक अलग सेट मिलता है। बाध्यकारी wsdl आयात नहीं कर सकता:
wsdl आयात नहीं कर सकते बंदरगाह wsdl आयात नहीं कर सकता: portType
Error 5 Custom tool error: Failed to generate code for the service reference ‘ServiceReference1’. Please check other error and warning messages for details. d:\Documents\Visual Studio 2010\Projects\Mage\Mage\Service References\ServiceReference1\Reference.svcmap 1 1 Mage
Warning 3 Custom tool warning: Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace=’urn:Magento’]/wsdl:portType[@name=’Mage_Api_Model_Server_Wsi_HandlerPortType’] XPath to Error Source: //wsdl:definitions[@targetNamespace=’urn:Magento’]/wsdl:binding[@name=’Mage_Api_Model_Server_Wsi_HandlerBinding’] d:\Documents\Visual Studio 2010\Projects\Mage\Mage\Service References\ServiceReference1\Reference.svcmap 1 1 Mage
Warning 4 Custom tool warning: Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace=’urn:Magento’]/wsdl:binding[@name=’Mage_Api_Model_Server_Wsi_HandlerBinding’] XPath to Error Source: //wsdl:definitions[@targetNamespace=’urn:Magento’]/wsdl:service[@name=’MagentoService’]/wsdl:port[@name=’Mage_Api_Model_Server_Wsi_HandlerPort’] d:\Documents\Visual Studio 2010\Projects\Mage\Mage\Service References\ServiceReference1\Reference.svcmap 1 1 Mage
Warning 2 Custom tool warning: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter Error: Element message named catalogProductAttributeRemoveRequest from namespace urn:Magento is missing. XPath to Error Source: //wsdl:definitions[@targetNamespace=’urn:Magento’]/wsdl:portType[@name=’Mage_Api_Model_Server_Wsi_HandlerPortType’] d:\Documents\Visual Studio 2010\Projects\Mage\Mage\Service References\ServiceReference1\Reference.svcmap 1 1 Mage
कोई मुझे कैसे एक फोन करना और एक परिणाम प्राप्त करने के लिए पर बहुत स्पष्ट अनुदेश/कोड दे सकते हैं? मुझे प्रारंभिक कॉन्फ़िगरेशन सही भी नहीं लग रहा है। मैंने कुछ कोड डाउनलोड किए हैं जो दूसरों ने ऑनलाइन प्रदान किए हैं, लेकिन यदि काम नहीं करता है - शायद इसलिए कि यह पहले के संस्करण के लिए था।
क्या आप ब्राउज़र में वेब सेवा देख सकते हैं? – Kiddo
हाँ, मैं एक परीक्षण स्थल यहाँ है: http://testshop.tokyorealtime.com/api/v2_soap?wsdl=1 मुझे लगता है कि कुछ एपीआई एक्सएमएल, या कुछ और नेट के साथ थोड़ा असंगत के साथ गलत हो सकता है, फिर भी ऐसा लगता है कि अन्य लोग इसे काम करने में कामयाब रहे हैं। –