iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
refresh
V2EX  ›  iDev

有什么能用的ios调用web services开源库?找了几个,都不太合适

  •  
  •   refresh · Jun 20, 2013 · 3505 views
    This topic created in 4794 days ago, the information mentioned may be changed or developed.
    不想把时间花在这个上面了,麻烦有现成的库给推荐一下,感谢。
    stackoverflow上的最佳回答说:Try to switch to JSON
    吐槽一下,web services真是反人类,JSON多好。
    5 replies    1970-01-01 08:00:00 +08:00
    egen
        1
    egen  
       Jun 20, 2013
    我们用的是 wsdl2objc 用的不是很复杂,wsdl 是个大坑
    blogcool
        2
    blogcool  
       Jun 20, 2013
    现在后端都不用web services了。
    refresh
        3
    refresh  
    OP
       Jun 20, 2013
    @blogcool
    @egen

    现在是我无法控制啊,提供方非得要用Web Services,他们是用C#写的,我建议他们用JSON,他们说以后再说,其实Web Services改成JSON很容易啊,人都是不想改变,拒绝拥抱变化的。
    yibin001
        4
    yibin001  
       Jun 20, 2013
    webservice的确是反人类。。。。
    redf
        5
    redf  
       Jun 20, 2013
    NSError *error;
    TBXML * tbxml = [TBXML newTBXMLWithXMLString:responseString error:&error];

    TBXMLElement * retcode = [TBXML childElementNamed:@"retcode" parentElement:tbxml.rootXMLElement error:&error];
    TBXMLElement *userInfoSid = [TBXML childElementNamed:@"UserInfoSid" parentElement:tbxml.rootXMLElement error:&error];
    TBXMLElement *userInfoSdiId = [TBXML childElementNamed:@"webuser_sdi_id" parentElement:tbxml.rootXMLElement error:&error];

    userSid = [TBXML textForElement:userInfoSid];
    userSdiId = [TBXML textForElement:userInfoSdiId];

    [USER setValue:userSid forKey:@"userSid"];


    NSLog(@"%@", [TBXML textForElement:retcode]);

    我做过这方面,有问题可以联系我。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1259 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 83ms · UTC 17:26 · PVG 01:26 · LAX 10:26 · JFK 13:26
    ♥ Do have faith in what you're doing.