从 XML-RPC cocoa 框架读取解析后的响应
我尝试使用这个库 http://github.com/eczarny/xmlrpc 从xml-rpc 服务器。
连接正常,我可以在控制台中看到解析的对象显示,但即使我尝试了很多,我也不知道如何读取响应对象。
这是 NSLog(@"%@", [response object]);
的控制台结果(响应是 XMLRPCResponse
):
{
stations = {
0 = {
IdStation = 2;
Message = "everything ok!";
};
1 = {
IdStation = 1;
Message = "everything ok!";
};
};
}
我想列出所有电台并获取 id和消息,但我收不到。
I try to use this library http://github.com/eczarny/xmlrpc to retrieve information from an xml-rpc server.
The connection is ok and I can see the parsed object display in the console but I don't know how to read the response object even if I tried a lot.
Here is the console result of NSLog(@"%@", [response object]);
(response is a XMLRPCResponse
) :
{
stations = {
0 = {
IdStation = 2;
Message = "everything ok!";
};
1 = {
IdStation = 1;
Message = "everything ok!";
};
};
}
I want to list all stations and get id and message but I can't get it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊,我找到了解决方案。
内容如下:
希望对我这样的初学者有帮助!
约书亚,谢谢你试图帮助我。
Ah, I found the solution.
Here it is :
Hope it can help a beginner like me !
Joshua, thanks to tried to help me.