我可以从 iOS 版 FireMonkey 调用 Web 服务吗?
我是 iOS 新手,已经在 Delphi 中开发多年。
我不太了解 FPC,而且我发现很难弄清楚 iOS 上有哪些类可用。
是否有任何 FireMonkey 类用于调用 Web 服务和解析 xml?
I'm new to iOS, have been developing in Delphi for many years.
I don't know FPC well and i find it very hard to figure out which classes are available on iOS.
is there any FireMonkey classes for calling web services and parsing xml?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您可以调用 Web 服务 :)
不,这并不简单 :(
您需要直接访问 iOS 框架...
以下代码片段将有所帮助...
首先是一个如何通过 TCP 发送/接收数据的 pascal 示例
https://forums.embarcadero.com/thread.jspa?messageID=397346
其次,您需要使用相关标头来包装调用...
http://books.google.com.au/books?id=0nTYIL3-0yoC&pg=PT518&lpg=PT518&dq=beginning+ipad+development+webservices&source=bl&ots= cYniLvL8z2&s ig=Ci6HskHgMvUeIrjyUbDecd7fBCQ&hl=en&ei=0_KdTpzBB4nOrQfwzM29CQ&sa=X&oi=b ook_result&ct=结果&resnum=6&ved=0CEAQ6AEwBQ#v=onepage&q&f=true
这是一项相当大的工作,但它是可以完成的。祝你好运!
Yes you can call a webservice :)
No it is not simple :(
You need to access the iOS framework directly...
The following code fragments will help...
First a pascal example of how to send/receive data via TCP
https://forums.embarcadero.com/thread.jspa?messageID=397346
Secondly, you will need to wrap the call using the relevant headers. See...
http://books.google.com.au/books?id=0nTYIL3-0yoC&pg=PT518&lpg=PT518&dq=beginning+ipad+development+webservices&source=bl&ots=cYniLvL8z2&sig=Ci6HskHgMvUeIrjyUbDecd7fBCQ&hl=en&ei=0_KdTpzBB4nOrQfwzM29CQ&sa=X&oi=book_result&ct=result&resnum=6&ved=0CEAQ6AEwBQ#v=onepage&q&f=true
It is a fair bit of work, but it can be done. Good luck!
您还可以尝试使用 RealThinClient (RTC) SDK 来允许 Delphi XE2 FireMonkey iOS 客户端连接到 RTC SDK 服务器。不是 SOAP,但我已经设法在两层之间来回发送数据(以防万一您不必使用 SOAP,而只是寻找某种方法将 iOS 客户端连接到服务器)...
You can also try to use RealThinClient (RTC) SDK to allow your Delphi XE2 FireMonkey iOS client to connect to a RTC SDK server. Not SOAP, but I've managed to send data back and forth between the two layers (just in case you do not have to use SOAP, but are merely looking for some way to connect an iOS client to a server)...