4

I have created an XE2 FireMonkey application which needs to run on an iPad. I am familiar with exporting to XCode and recompiling on the Mac machine. This all works quite fine.

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

How can I connect to a web service in FireMonkey in a way which will compile on XCode and work in an iOS environment?

Brendan
  • 1,237
  • 1
  • 16
  • 34
  • This question might give some ideas : [can-i-call-a-web-service-from-firemonkey-for-ios](http://stackoverflow.com/questions/7718115/can-i-call-a-web-service-from-firemonkey-for-ios). – LU RD Mar 05 '12 at 16:56

3 Answers3

1

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

The toolkit includes a WSDL importer wizard, also available as command line tool ("ws_helper").

"Web Service Toolkit” is a web services package for FPC, Lazarus and Delphi; “Web Service Toolkit” is meant to ease web services consumption and creation by FPC, Lazarus and Delphi users.

mjn
  • 36,362
  • 28
  • 176
  • 378
  • Thanks, I have downloaded an dinstalled Lazarus as well as the WST. The WSDL importer is giving me "namespace errors" though when importing my WSDL file. Will update this post once I have solved the issue. – Brendan Mar 07 '12 at 09:05
0

XE5 has major improvements and data connectivity is now easily handled via DataSnap. One can easily reference existing web services via a DataSnap server, so the issues I originally had are now solved.

Brendan
  • 1,237
  • 1
  • 16
  • 34
0

It seems that one cannot have data connectivity in mobile iOS applications without various forms of "hacking" code. There is currently no standard way with the XE2 framework to support this.

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

Brendan
  • 1,237
  • 1
  • 16
  • 34