i want to post xml data in following format:
<?xml version="1.0" encoding="UTF-8"?>
<data>
<email>xyz@domain.com</email>
<password>xyz123</password>
</data>
and receive in following format from the webserver
<?xml version="1.0" encoding="UTF-8"?>
<user>
<user_id>12</user_id>
</user>
help is appreciate now i am trying to use NSUrlConnection and NSMutableRequest i can post data on name like form post,but i want to post just xml data. i have also tried to used ASIHTTPRequest . any code or link is highly appriciated.
and finally i used library from http://allseeing-i.com/ASIHTTPRequest/
and posted from following code:
and used delegate method to receive data or error.
Of course you can also use asynchronous request. Then you have to implement delegate.
Edit. you can also try this: