Iphone didReceiveAuthenticationChallenge method
<p>Actually, i m new for objective C.</p>

<p>I call webservice using NSURL. But that url consist XML argument.</p>

<p>example:</p>

<p><a href="http://166:8081/application/service/ipad/saveGrowthRemark?remarksXML=" rel="nofollow">http://166:8081/application/service/ipad/saveGrowthRemark?remarksXML=</a></p>

<pre><code> &lt;empId&gt;313009&lt;/empId&gt;     
 &lt;criteria&gt;PT&lt;/criteria&gt;     
 &lt;type&gt;Tamp;M&lt;/type&gt;     
 &lt;remarks&gt;Enter Rmarks&lt;/remarks&gt;     
 &lt;cluster&gt;ALL&lt;/cluster&gt;
</code></pre>

<p>This is the code I used to retreibe the XML</p>

<pre><code>-(void)createConnection{    
    NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
    NSURL *url=[NSURL URLWithString:_urlStr];
    [request setURL:url];
    connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
}
</code></pre>

<p>But this url does not called. Its return "bad URL" error.
what is the problem in this url.</p>
