I am writing a simple application that communicates with an external server. The server currently supports yaml, xml and json.
, Motorola J2ME . , ( 2.5G 2004 ). , ( JSON YAML). , Hessian Google Protocol Buffers.
, , iPhone , , HTTP , HTTP If-Modified .. REST, HTTP.
, , .
iPhone OS 3.0, , REST SOAP iPhone, XML ( 8 iPhone-), SOAP, JSON ( SBJSON TouchJSON), YAML, ( Google) CSV PHP ( ).
http://github.com/akosma/iPhoneWebServicesClient
.
SlideShare , :
http://www.slideshare.net/akosma/web-services-3439269
, Binary Plists + REST + JSON XML + TBXML "" ( : + + ).
Github "" Excel, ( ). 3G Wi-Fi, .
, !
json-framework, JSON, .
, XML, plist, iphone. JSON , c libs. JSON XML .
XML - - .
, - - btw, REST .
, , :
http://www.servicestack.net/benchmarks/NorthwindDatabaseRowsSerialization.1000000-times.2010-02-06.html
, - .NET, , .
Marc protobuf-net :
, .
MonoTouch (, #/Mono iPhone) , Javascript- , , XML JSON, :
MonoTouch, , - iPhone: http://www.servicestack.net/monotouch/remote-info/
IF ++ iPhone, , yaml-cpp:
http://code.google.com/p/yaml-cpp/
, . , XML - XQuery. , JSON . YAML.
YAML ( , ). , TouchJSON , , , .
JSON , XML PLIST, , .
pLists , . JSON, . NSDateFormatter , , .
Support for all three formats in Objective-C is supported. Just google for them. I would suggest writing a serializer that supports all three. Just make a request for the URL resource using .xml | .json | .yaml, and the server decided what to serialize based on this extension. Then you actually do not need to decide that you can switch to whatever you want. Making serializer compatible is very simple in most server-side implementations.
Source: https://habr.com/ru/post/1732266/More articles:Where do the build tools go in the source tree? - version-controlPyQt beginremoverows - pythonHow to draw a slightly diagonal gradient Fill in PHP? - phpThe problem with the generator T4 - t4How to get the target of a connection or Symlink with a standard user - c #Лучшая практика: как вставлять в несколько таблиц через бизнес-уровень и уровень данных? - designHide part of Flash animation in HTML - htmlChar to utf code in vbscript - vbscriptImplementing an API with a pluggable version of the backend in .NET (F #) - design-patternsDeploying asp.net using publishing files and .dll.compiled - asp.netAll Articles