Server did not recognize the value of HTTP Header SOAPAction in iPhone?
<p>I am try to connect webservices to my code i got error as "Server did not recognize the value of HTTP Header SOAPAction"</p>

<p>NSString *soapMessage = [NSString stringWithFormat:
                             @"\n"
                             "\n"
                             "\n"
                             "\n"
                             "%@\n"
                             "\n"
                             "\n"
                             "\n", @"new"
                             ];
    NSLog(soapMessage);</p>

<pre><code>NSURL *url = [NSURL URLWithString:@"http://viium.com/WebService/HelloWorld.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://viium.com/Hello" forHTTPHeaderField:@"SOAPAction"];
[theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"];
[theRequest setHTTPMethod:@"POST"];
[theRequest setHTTPBody: [soapMessage dataUsingEncoding:NSUTF8StringEncoding]];
</code></pre>

<p>Please guide me what iam missing?</p>
