【发布时间】:2011-06-10 08:59:55
【问题描述】:
我在我的 IOS 应用程序中使用 ASIHTTPRequest 来调用 wsdl/SOAP Web 服务。我的客户使用安全模块(使用他的 ModSecurity / PHP 代码)。
我正在使用这个:
NSData *xmlData = // I construct the soap message witk soapui
NSURL *url = [NSURL URLWithString:@"https:myUrlWSDL"];
self.currentRequest = [ASIFormDataRequest requestWithURL:url];
[self.currentRequest appendPostData:xmlData];
[self.currentRequest setDelegate:self];
[self.currentRequest startAsynchronous];
但是服务器向我发送了 400 床请求。
请问,我怎样才能使用所有这些安全模式调用我的 wsdl/web 服务?调用 Web 服务所需的 http 标头是什么?谢谢你的回答
我已禁用安全模块。现在我有这个错误: WSDLSOAP-ERROR: Parsing WSDL: could not load from 'http://...?wsdl' : failed to load external entity "http://...?wsdl"
【问题讨论】:
标签: iphone web-services asihttprequest