title: How to call the Magento API from VB.NET
body: <p>Magento has an API and it seems some people are using it via VB.NET but I cannot get it to work after trying for many hours.</p>
  
  <p>I’m on Magento 1.7.0.2 
  Trying to get a VB.NET app working with the API. 
  I’m using the WS-I compliant web service setting.</p>
  
  <blockquote>
    <p>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</p>
  </blockquote>
  
  <p>if I try to add it as a Service Reference (instead of a Web Reference) I get a different set of errors.</p>
  
  <p>Cannot import wsdl:binding 
  Cannot import wsdl:port 
  Cannot import wsdl:portType</p>
  
  <blockquote>
    <p>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</p>
    
    <p>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</p>
    
    <p>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</p>
    
    <p>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</p>
  </blockquote>
  
  <p>Can someone give me very explicit instruction/code on how to make a call and get a result? I can't even seem to get the initial configuration correct. I've downloaded some code others have provided online, but if doesn't work--probably because it was for a earlier version.</p>