Latest 0.0.9
Homepage https://github.com/lyc59621/JDragonSoap
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking, Reachability
Authors

一个基于AFNetworking的网络请求

badge-pod badge-languages badge-platforms badge-mit

更新日志:基于AFNetworking 3.1 支持非校验Https请求

NSURLConnection 替换为NSURLSession

setup

user pod


pod 'JDragonSoap','~> 0.0.9'

如何使用

[JDragonSoap shareInstance].urlHost [email protected]"";
[JDragonSoap shareInstance].parameter = @{};

/**
*  检测网络状态
*/
[JDragonSoap netWorkStateReachability:^(int netConnetState) {

NSLog(@"网络状态==%d",netConnetState);
}];

/**
*  Get 请求
*
*  @param returnValue block
*
*  @return 数据请求结果
*/
[JDragonSoap soapGetRequestWith:^(id returnValue) {

NSLog(@"Get=======%@",returnValue);

}];

[JDragonSoap soapGetRequestWith:^(id returnValue) {

[SVProgressHUD dismiss];
NSLog(@"get=======%@",returnValue);

} errorBlock:^(id errorCode) {

NSLog(@"error=======%@",errorCode);

}];
[JDragonSoap shareInstance].urlHost [email protected]"";
[JDragonSoap shareInstance].parameter = @{};

/**
*  Post 请求
*
*  @param returnValue block
*
*  @return 数据请求结果
*/
[JDragonSoap soapPostRequestWith:^(id resultValue) {

NSLog(@"Post=======%@",resultValue);

}];

[JDragonSoap soapPostRequestWith:^(id resultValue) {

[SVProgressHUD  dismiss];
NSLog(@"post=======%@",resultValue);

} errorBlock:^(id errorCode) {

NSLog(@"error=======%@",errorCode);

}];

other

详细请看demo

Latest podspec

{
    "name": "JDragonSoap",
    "version": "0.0.9",
    "summary": "u4e00u4e2au6781u5176u7b80u5355u7684u7f51u7edcu8bf7u6c42",
    "description": "u57fau4e8eAFNetWorkingu5f00u53d1u7684u7f51u7edcu8bf7u6c42",
    "homepage": "https://github.com/lyc59621/JDragonSoap",
    "license": "MIT",
    "authors": {
        "u59dcu9526u9f99": "[email protected]"
    },
    "social_media_url": "https://twitter.com/lyc59621",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lyc59621/JDragonSoap.git",
        "tag": "0.0.9"
    },
    "source_files": "JDragonSoap/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": [
            "~> 3.1.0"
        ],
        "Reachability": [
            "~> 3.2"
        ]
    }
}

Pin It on Pinterest

Share This