How to access a SOAP webservice from my iPhone app
<pre><code>I am new to iPhone application development and also this stackoverflow,if I made any mistakes sorry. I have some of the questions 
</code></pre>

<p>1) Do I need to install any other external framework into my application. I am using SDK Simulator 4.2</p>

<p>2) I have gone through some of the material which was posted here, I found some code and I made some modification to suits my application When I am requesting for a URL it is returning me NULL.</p>

<p>3) My task is to send a three parameters into database.</p>

<pre><code> NSString *post =[NSString stringWithFormat:@"?FirstName=%@?Surname=%@?IDNumber=%@?DOB=%@",namestring,surnamestring,cidstring,dobstring];

 NSData *postData = [post dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];

 NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];
NSLog(@"Post Length:",[postData length]); 

 NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; 

[request setURL:[NSURL URLWithString:@"http://www.esoft.co.za/MDS/Service1.asmx?op=InsertSuppliers"]];

 [request setHTTPMethod:@"GET"];

 [request setValue:postLength forHTTPHeaderField:@"Content-Length"];

 [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];

 [request setHTTPBody:postData];

 NSURLResponse *response;
NSError *err;    
NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;err];
NSLog(@"response data is: %@",[responseData length] );
 NSString *data = [[NSString alloc]initWithData:responseData encoding:NSUTF8StringEncoding];
 NSLog(@"Data: %@",data);
</code></pre>

<p>Thanks in Advance Guys...Please provide me any sample code or material..</p>
