【问题标题】:What is the magento url for posting SOAP request用于发布 SOAP 请求的 magento url 是什么
【发布时间】:2014-09-03 07:00:19
【问题描述】:

下面是我的代码

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” 再次 URL 然后我得到可用的 wsdl 服务列表,这与响应变量中的相同。

请帮忙, 谢谢。

【问题讨论】:

    标签: magento soap


    【解决方案1】:

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

    (来源:检查 wsdl:service 位置。url 写在 location-element 中)

    【讨论】:

      猜你喜欢
      • 2021-09-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多