Note that there are some explanatory texts on larger screens.

plurals
  1. PO"No Action header was found" error message while using SOAP webservice
    primarykey
    data
    text
    <p>Getting following error while consuming SOAP webservice in iOS App</p> <pre><code>"No Action header was found with namespace 'http://www.w3.org/2005/08/addressing' for the given message." </code></pre> <p>The same webservice working fine in SOAP UI Tool.</p> <p>Following is the request format </p> <pre><code>NSString *data = @"&lt;soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:tem=\"http://tempuri.org/\"&gt; &lt;soap:Header&gt;&lt;/soap:Header&gt; &lt;soap:Body&gt;&lt;tem:GetEvaluators&gt;&lt;/tem:GetEvaluators&gt;&lt;/soap:Body&gt; &lt;/soap:Envelope&gt;"; NSString *url = @"webservice url"; NSData *postData = [data dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES]; NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request setURL:[NSURL URLWithString:url]]; [request setHTTPMethod:@"POST"]; [request setValue:postLength forHTTPHeaderField:@"Content-Length"]; [request setHTTPBody:postData]; [request setTimeoutInterval:20.0]; [request setValue:@"application/soap+xml;charset=UTF-8" forHTTPHeaderField:@"Content-Type"]; [request setValue:@"http://tempuri.org/IATCService/GetEvaluators" forHTTPHeaderField:@"SOAPAction"]; NSData *urlData = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error]; </code></pre> <p>Complete error response received from webservice</p> <pre><code>&lt;s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt; &lt;s:Header&gt; &lt;a:Action s:mustUnderstand="1"&gt;http://www.w3.org/2005/08/addressing/fault&lt;/a:Action&gt; &lt;/s:Header&gt; &lt;s:Body&gt; &lt;s:Fault&gt; &lt;s:Code&gt; &lt;s:Value&gt;s:Sender&lt;/s:Value&gt; &lt;s:Subcode&gt; &lt;s:Value&gt;a:MessageAddressingHeaderRequired&lt;/s:Value&gt; &lt;/s:Subcode&gt; &lt;/s:Code&gt; &lt;s:Reason&gt; &lt;s:Text xml:lang="en-US"&gt;No Action header was found with namespace 'http://www.w3.org/2005/08/addressing' for the given message.&lt;/s:Text&gt; &lt;/s:Reason&gt; &lt;s:Detail&gt; &lt;a:ProblemHeaderQName&gt;a:Action&lt;/a:ProblemHeaderQName&gt; &lt;/s:Detail&gt; &lt;/s:Fault&gt; &lt;/s:Body&gt; </code></pre> <p> </p> <p>Any help really appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload