Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6002865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:02:22+00:00 2026-05-23T01:02:22+00:00

I am using ASIHTTPRequest in IOS. I have aloso a wsdl/soap web services. when

  • 0

I am using ASIHTTPRequest in IOS. I have aloso a wsdl/soap web services.
when i call my web serives, i got the error 400 bad request. i am using this code :

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

[[currentRequest requestHeaders] description];
NSLog(@"Headers %@",[currentRequest requestHeaders]);

The NSLog show to me : headers (null).

My first question, why is Headers is null ? is this normal ??

And in the console i have the 400 bad request.
In the delegate, i do :

- (void)requestFinished:(ASIHTTPRequest *)request
{
     NSLog(@"headers: %@", [self.currentRequest responseHeaders]);
}

and it show tho me the :

"Cache-Control" = "no-store, no-cache, must-revalidate, post-check=0, pre-check=0";
     Connection = close;
    "Content-Encoding" = gzip;
    "Content-Length" = 285;
    "Content-Type" = "text/xml; charset=utf-8";
    Date = "Fri, 10 Jun 2011 01:25:40 GMT";
    Expires = "Thu, 19 Nov 1981 08:52:00 GMT";
    Pragma = "no-cache";
    Server = Apache;
    "Set-Cookie" = "symfony=...4; path=/";
    Vary = "Accept-Encoding,User-Agent";
    "X-Powered-By" = "PHP/5.3.3";

My question is : why the 400 bad request error ? what is the problem in my request ? or perhaps the problem is in my soap ?

Thanks for your answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:02:23+00:00Added an answer on May 23, 2026 at 1:02 am

    As far as I can tell, when making a SOAP/WSDL request, you need to set some headers in your request

    Content-Type: text/xml
    Content-Length: length of your message in bytes
    SOAPAction: your SOAPAction goes here
    

    ASIHTTPRequest sets the content-length itself (not sure about content-type). You will have to add the SOAPAction header yourself though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ASIHTTPRequest in my IOS application to call a wsdl/SOAP web services.
We have an iOS Application that connects to a WebDav server using the ASIHTTPRequest
I am using ASIHTTPRequest for downloading file from server but its giving error Failed
I have a method (getAllTeams:) that initiates an HTTP request using the ASIHTTPRequest library.
I am using ASIHTTPRequest to fetch some data from a web service. I am
I have set up a sharedCache using ASIHttprequest and it is created from the
I have an iphone app using ASIHttpRequest. The server code is on heroku in
I am using ASIHTTPRequest to connect to a web service. I am not getting
I'm using ASIHTTPRequest in my iOS project. i would like to see all the
I'm using the ASIHTTPRequest lib in my iOS app to make RESTful requests to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.