如何从没有username
的网站验证password
和SSL certificate
?我想parse the response
。我不知道如何实现github网站中描述的SOAPEngine class
。
Github链接:https://github.com/priore/SOAPEngine
答案 0 :(得分:1)
验证尝试 - >
#import <SOAPEngine64/SOAPEngine.h>
SOAPEngine *soap = [[SOAPEngine alloc] init];
soap.userAgent = @"SOAPEngine";
// authorization
soap.authorizationMethod = SOAP_AUTH_BASIC; // basic auth
soap.username = @"my-username";
soap.password = @"my-password";
或
iOS Basic SOAP Authentication process
和Parser 查看How to work with SOAP web service and XML parsing in Swift?
然而,这在Swift中,但逻辑是一样的。