XE2 FireMonkey - connect to a web service in an iOS application

I created an XE2 FireMonkey application that needs to run on an iPad. I am familiar with exporting to Xcode and recompiling on a Mac. It all works fine.

However, the problem is when I want to connect to an existing web service. Using WSDL Import, I can create the necessary file, and the functionality of my web service works as expected. This only works in a Windows environment, but since the file created by WSDL Import uses "InvokeRegistry", which is Windows specific.

How can I connect to a web service in FireMonkey in a way that compiles on Xcode and works in iOS?

+4
source share
3 answers

XE5 has significant improvements, and now the ability to transfer data is easily handled through DataSnap. Using the DataSnap server, you can easily link to existing web services, so the problems that I originally solved are now resolved.

0
source

The Web Service Toolkit from Free Pascal is one option. According to this forum post , iOS can be used as a target platform .

The toolkit includes the WSDL Importer Wizard, also available as a command-line tool ("ws_helper").

"Web Service Toolkit" is a web services package for FPC, Lazarus and Delphi; The "Web Service Toolkit" is intended to facilitate Web services consumption and user creation of FPC, Lazarus and Delphi.

+1
source

It seems that in iOS mobile applications you cannot connect data without various forms of β€œhacking”. There is currently no standard way to support XE2 to support this.

See: http://edn.embarcadero.com/article/41729

0
source

Source: https://habr.com/ru/post/1399766/


All Articles