Tag: magento

在Objective-C中调用Magento SOAP API时出错

我正在尝试在Objective-C iOS中使用Maginto SOAP API。 我可以调用loginAPI,并获得SessionID,但当我尝试调用其他API的相同的SessionID,那么它给我下面的错误。 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>5</faultcode><faultstring>Session expired. Try to relogin.</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> 我不明白为什么这个错误信息在那里。 如果有人知道解决scheme,那么请帮助我。 先谢谢你。 这是我的login代码 – -(void)make_call_to_maginto_api_login{ NSString *soapMessage = @" \ <SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns1=\"urn:Magento\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"> \ <SOAP-ENV:Body> \ <ns1:login> \ <apiUser xsi:type=\"xsd:string\">UserName</apiUser> \ <apiKey xsi:type=\"xsd:string\">Password</apiKey> \ </ns1:login> \ </SOAP-ENV:Body> \ </SOAP-ENV:Envelope>"; NSURL *url = [NSURL URLWithString:@"http://www.hostname.com/index.php/api/v2_soap/"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; […]

Magento无法login到我的帐户在IOS服务器上

我正在magento网站https://www.smkd.com/index.php上工作。 除了IOS服务器以外,每个浏览器都能正常工作。 当我点击我的帐户或login,并填写我的帐户的详细信息,然后redirect我在同一页面上,不允许我login。 我已经删除了所有的扩展名,但仍然有这个问题,无法login到我的帐户。 我正在使用ultimo主题。 你们能帮我解决这个问题吗?