使用soap java连接到magento api

使用soap java连接到magento api,java,magento,soap,Java,Magento,Soap,由于缺少magento-api.properties文件,使用soap的magento api无法工作,有人能帮忙吗 public class testConnection { public static void main(String[] args) throws AxisFault { String user = "rajeshvishnani"; String pass = "123456"; String host = "http

由于缺少magento-api.properties文件,使用soap的magento api无法工作,有人能帮忙吗

public class testConnection {
    public static void main(String[] args) throws AxisFault {
        String user = "rajeshvishnani";
        String pass = "123456";
        String host = "http://cypherincorporated.co.in/magento/index.php/api/soap?wsdl";

        SoapConfig soapConfig = new SoapConfig(user, pass, host);
        MagentoSoapClient magentoSoapClient = MagentoSoapClient.getInstance(soapConfig);        
        magentoSoapClient.setConfig(soapConfig);

    }
}

Exception in thread "main" java.lang.IllegalArgumentException: could not load [magento-api.properties] as a classloader resource
    at com.google.code.magja.utils.PropertyLoader.loadProperties(PropertyLoader.java:106)
    at com.google.code.magja.utils.PropertyLoader.loadProperties(PropertyLoader.java:123)
    at com.google.code.magja.soap.MagentoSoapClient.getInstance(MagentoSoapClient.java:69)
    at magentomanager.testConnection.main(testConnection.java:15)

尝试将url更改为
'http://yoursite.com/api/v2_soap/index?wsdl=1“。

请提供更多详情。 不确定java异常,但您可以尝试以下链接。

您的网站url中的magento是什么。?这是magento目录吗?请再解释一下你想做什么?