soap response error
<p>I am doing soap request/response application. While building soap response, I am getting "Server did not recognize the value of HTTP Header SOAPAction".</p>

<p>What does that mean? And how to solve this?</p>

<p>Here is the code.</p>

<pre><code>NSString *soapMessage = [NSString stringWithFormat: @"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n"
                         "&lt;soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;\n"
                         "&lt;soap:Body&gt;\n"
                         "&lt;SignOn xmlns=\"http://10.12.50.99/CUTechWebservices/CuTechWebService.asmx\"&gt;\n"
                         "&lt;DeviceID&gt;4A6B740C-0B5B-5F8C-8694-1EC0196C1C67&lt;/DeviceID&gt;\n"
                         "&lt;UserID&gt;10827&lt;/UserID&gt;\n"
                         "&lt;CrID&gt;6&lt;/CrID&gt;\n"
                         "&lt;UserPin&gt;777777!&lt;/UserPin&gt;\n"
                         "&lt;/SignOn&gt;\n"
                         "&lt;/soap:Body&gt;\n"
                         "&lt;/soap:Envelope&gt;\n"];    
NSLog(@"%@",soapMessage);

//Soap request.
NSURL *url = [NSURL URLWithString:@"https://mobile.areafinancial.com/cutechservice/cutechwebservice.asmx"];
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];
NSString *msgLength = [NSString stringWithFormat:@"%d",[soapMessage length]];
[theRequest addValue:@"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[theRequest addValue:@"http://10.12.50.99/CUTechWebservices/CuTechWebService.asmx" forHTTPHeaderField:@"SOAPAction"];
[theRequest addValue:msgLength forHTTPHeaderField:@"Content-Length"];
[theRequest setHTTPMethod:@"POST"];
[theRequest setHTTPBody:[soapMessage dataUsingEncoding:NSUTF8StringEncoding]];
</code></pre>
