开发者

ASIHTTPRequest and web services secured

I am using ASIHTTPRequest in my IOS application to call a wsdl/SOAP web services. my clients use a security mod ( with his ModSecurity / a PHP code).

i am using this 开发者_如何学编程:

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];

But the server send to me the 400 bed request.

How i can, please, do to call my wsdl/web services with all this security mode ? what are the http headers required to call the web services ? thanks for your answers

i have disabled the secure module. now i have this error : WSDLSOAP-ERROR: Parsing WSDL: Couldn't load from 'http://...?wsdl' : failed to load external entity "http://...?wsdl"


That's how you use ASI to call a secure connection - you're doing everything correctly.

The problem must be in your code that creates the xmlData - what other error information can you get back from your clients server?

You might also need to add more headers to the request (though thats also something that your clients should be able to tell you) - e.g.

[request addRequestHeader:@"Referer" value:@"http://allseeing-i.com/"];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜