Can i call a web service from FireMonkey for iOS?

喜夏-厌秋 提交于 2019-12-07 17:51:11

问题


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?


回答1:


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!




回答2:


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)...



来源:https://stackoverflow.com/questions/7718115/can-i-call-a-web-service-from-firemonkey-for-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!