发布SOAP请求的magento url是什么

时间:2014-09-03 07:00:19

标签: magento soap

以下是我的代码

WebClient wc = new WebClient();
using(var response = wc.OpenRead("http://templatebar.com/QA/performancetesting/enterprise1_10_0_2/magento/index.php/api/v2_soap?wsdl=1"))
{
    StreamReader sr = new StreamReader(response);
    string result = sr.ReadToEnd();
}
var loginRequest = string.Format(XElement.Load(AppDomain.CurrentDomain.BaseDirectory + @"XMLFiles\login.xml").ToString(),"apikey","apipassword");var loginRequest = string.Format(XElement.Load(AppDomain.CurrentDomain.BaseDirectory + @"XMLFiles\login.xml").ToString(),"admin","abcd.1234");
var response1 = wc.UploadString("", loginRequest);

我的问题是"地址"在UploadString函数中,以便登录请求获得所需的结果,即Magento Session id

如果我使用这个" http://templatebar.com/QA/performancetesting/enterprise1_10_0_2/magento/index.php/api/v2_soap?wsdl=1" 然后我再次获取可用的wsdl服务列表,这与响应变量中的相同。

请帮助, 感谢。

1 个答案:

答案 0 :(得分:0)

根据提供的wsdl,端点位置为:http://templatebar.com/QA/performancetesting/enterprise1_10_0_2/magento/index.php/api/v2_soap/index/

(来源:检查wsdl:服务位置。这个url写在location-element中)