I want to send param’s in XML format to a web service from Objective C app without getting an response (I don’t need to handle with it). What is the best and fast way doing that?
Let’s say I have the next XML:
NSString *xmlParams=[NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?><R><Root><Grade>33</grade></Root></R>"];
And the address where to send the XML is : http://www.myServer.com\service.asmx
What is the implemention for sending xmlParams to that address?
I just answered a similar question, so I’ll just copy and paste some of that code here:
I would suggest adding a third party library to handle the network code. In this case I used MKNetworkKit.
The line of code that says “[engine enqueueOperation:op];” is the part that sends the request off to the server.
If you change you mind and do want or need to handle a response then add something like this before the “[engine enqueueOperation:op];”: