数据服务器到iPhone和后面

时间:2022-10-24 20:43:57

Web services -> core data -> controller -> view and then reverse...

Web服务 - >核心数据 - >控制器 - >查看然后反向...

Sound right?

Or is there a better way, one that avoids the complexity of SOAP? Additionally can core Data recognize XML coming from SOAP?

还是有更好的方法,避免SOAP的复杂性?此外,核心数据可以识别来自SOAP的XML吗?

Thanks // :)

谢谢 // :)

1 个解决方案

#1


There are several good REST libraries that work on the iPhone if you want to avoid SOAP.

如果你想避免使用SOAP,有几个好的REST库可以在iPhone上运行。

HTTPRiot - http://labratrevenge.com/httpriot/

HTTPRiot - http://labratrevenge.com/httpriot/

ASIHTTPRequest - http://allseeing-i.com/ASIHTTPRequest/

ASIHTTPRequest - http://allseeing-i.com/ASIHTTPRequest/

ObjectiveResource - http://iphoneonrails.com/

ObjectiveResource - http://iphoneonrails.com/

I've used the first and last and between those two, I really like HTTPRiot - really easy to use, doesn't get in your way and converts both XML and JSON responses into NSArrays and NSDictionaries.

我已经使用了第一个和最后一个,在这两个之间,我真的很喜欢HTTPRiot - 非常容易使用,不会妨碍你将XML和JSON响应转换成NSArrays和NSDictionaries。

Core Data doesn't have any relation to Web services natively but you can easily populate managed objects from the data you receive from one of the above libraries.

Core Data本身与Web服务没有任何关系,但您可以从上述库中的某个库中轻松填充托管对象。

#1


There are several good REST libraries that work on the iPhone if you want to avoid SOAP.

如果你想避免使用SOAP,有几个好的REST库可以在iPhone上运行。

HTTPRiot - http://labratrevenge.com/httpriot/

HTTPRiot - http://labratrevenge.com/httpriot/

ASIHTTPRequest - http://allseeing-i.com/ASIHTTPRequest/

ASIHTTPRequest - http://allseeing-i.com/ASIHTTPRequest/

ObjectiveResource - http://iphoneonrails.com/

ObjectiveResource - http://iphoneonrails.com/

I've used the first and last and between those two, I really like HTTPRiot - really easy to use, doesn't get in your way and converts both XML and JSON responses into NSArrays and NSDictionaries.

我已经使用了第一个和最后一个,在这两个之间,我真的很喜欢HTTPRiot - 非常容易使用,不会妨碍你将XML和JSON响应转换成NSArrays和NSDictionaries。

Core Data doesn't have any relation to Web services natively but you can easily populate managed objects from the data you receive from one of the above libraries.

Core Data本身与Web服务没有任何关系,但您可以从上述库中的某个库中轻松填充托管对象。