Error 500 Calling Rest Web Services iphone sdk
<p>I have two web services's url :    </p>

<ul>
<li><a href="http://abcd.com/rest/1/loginDetails/resetPassword?email=jitender.k@gmail.com" rel="nofollow">http://abcd.com/rest/1/loginDetails/resetPassword?email=jitender.k@gmail.com</a></li>
<li><a href="http://abcd.com/rest/1/search/nextProfileAttributeUsers?offset=30" rel="nofollow">http://abcd.com/rest/1/search/nextProfileAttributeUsers?offset=30</a></li>
</ul>

<p>I am following thse steps to call web service :   </p>

<p>I am making url from these string. </p>

<pre><code>+ Passing url to
+ NSMutableURLRequest * request   
+ [request setValue:[prefrences
valueForKey:@"Cookie"] forHTTPHeaderField:@"Cookie"]   
+ [request setHTTPMethod:@"GET"]   [request setHTTPBody:[jsonPostBody
dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES]];  
+ [request setValue:@"application/json"
forHTTPHeaderField:@"Content-Type"];   
+ [request setValue:postDataLengthString forHTTPHeaderField:@"Content-Length"];
+ [NSURLConnection connectionWithRequest:request delegate:self];
</code></pre>

<p>In this procedure First url is working fine for me but Second url giving error with status code 500.  </p>

<p>Please help me out. What problem is this web services are same and of same type. But one is working fine and another giving me error ?</p>
