This tutorial was contributed by Dave (AKA Clarke76) on the Forums.
WebSite: http://viium.com
-Main project on site is eDuo. A .Net app that connects to OWA Exchange and forwards to IMAP account. Free program for those who can’t use Active Sync
Â
Important Links:
[WebService] http://viium.com/WebService/HelloWorld.asmx
http://developer.apple.com/documentation/Cocoa/Conceptual/XMLParsing/XMLParsing.html
http://www.w3schools.com/soap/default.asp
-After creating our XML data / SOAPÂ request, we create a URLRequest. We add HTTP Header values, those values you read from the WebService.
-We set the HTTP Method to POST
-We set out HTTP Body to the xml file we created
-We then create our connection, using the request we just setup.
Â
Â
-Once the connection is setup and delegate is set to self, we need to setup out connection delegate methods.
-The first method just makes sure it can make a connection. If it can, we make sure we have no data in our Data set so we clear it.
-Second method is called when re receive any data. If we do receive data, we just append it to our data set.
-Third Method handles any errors and releases our data and connection if an error occurs.
-Fourth Method: We take the data and create a string for Logging reasons, then release the string.
-We check to make sure an instance of xmlParser does not exist, if it does we release it.
-Create a new instance of xmlParser, set the delegate to self, want to resolve external entities, and start our parsing.
-release our connection and Data
Â
Â
Now we need to our our delegate methods for NSXMLParser
First method we are check the start of elements. If our element equals “HelloResult” we set our BOOL to true. Â Second method records any data between an element if our BOOL is set to true. Â Third method checks for our closing element. Once found sets our greeting, releases our MutableString, and set our BOOL back to false.
Â
If you have any questions or comments, please leave them in the comments of this post. Â You can download the sample code here.
-
Dan
-
iDeveloper
-
http://paulodelgado.com Paulo
-
Mark
-
http://quickiphonesolutions.blogspot.com sindhu tiwari
-
http://www.madmaq,com maqish
-
zebrum
-
lakshmikanthreddy
-
http://qrios.de remei
-
Alice
-
Arash
-
Steven
-
http://www.designsapling.com Jeremy White
-
http://hugelawn.com Uffe Koch
-
http://www.designsapling.com Jeremy White
-
rubennm
-
rubennm
-
rubennm
-
Pablo
-
Rajiv
-
james
-
Andreas
-
Andreas
-
John
-
sindhu tiwari
-
JG
-
Laurent
-
my
-
http://ashwanik.blogspot.com Ashwani
-
http://www.iphoneclub.nl/forum/f8/applicaties/f58/ontwikkelen-voor-de-iphone-sdk/25537-wsdl-iphone.html#post280034 WSDL .. iphone ? – iPhone Forum – alles over de Apple iPhone en iPhone 3G
-
http://ashwanik.maqsoftware.com ashwani
-
Sambha
-
http://thecoleorton.com Cole
-
David
-
David
-
mu73
-
http://itpblog.efuller.net/?p=737 ParaSite | Uploading
-
John
-
http://none NeedSomeAdvice
-
Niketa
-
for PHP guys to use the same feature
-
for PHP guys to use the same feature
-
AVG
-
Jwizzman
-
http://www.multiflavours.com/?p=424 Web Services Tutorial
-
http://www.naturhotel.it Christian Wohlgesinn
-
http://urbasek.cz Jiri
-
James
-
John
-
Damien
-
Khawar
-
http://blog.alkimake.com/2009/09/json-rpc-bridge-to-xml-web-services-and-usage-in-objective-c-in-iphone/ JSON-RPC Bridge to XML Web Services and usage in Objective-C in iPhone | Alkim Gozen
-
http://archanagella252@gmail.com archana g
-
http://gbif.org mgmbow
-
http://NA wanner
-
http://grabalife.com Kris
-
John
-
ashish
-
Shreedevi
-
http://bjharringtoniii@hotmail.com Bobby
-
aaron
-
Amit
-
http://sous-vetements.sexshop-soldes.com/ Khe
-
Leo
-
Bhramar
-
http://none Copyright issues
-
Aditya
-
Gendarme
-
Heijtink
-
http://www.idea.co.th/ Idea Digital
-
http://www.octagonpicnictables.com/ outside benches
-
http://www.soulcast.com/ipadnewssvcip/rss Hortensia Batterton
-
Hitesh Savalia
-
Lee Mann
-
John
-
http://www.iphoneclub.nl/forum/f8/applicaties/f58/ontwikkelen-voor-de-iphone-sdk/58446-uitableview-soap.html#post443545 UITableview + SOAP – iPhone Forum – alles over de Apple iPhone, iPhone 3G en iPhone 3GS
-
esko918
-
shishir mishra
-
shishir mishra
-
lxLionHartxl
-
phongnt
-
phongnt
-
fixbug
-
Angad Soni
-
http://www.permeative.com Abhilash
-
Dilip
-
http://www.addonsolutions.com Mayur Shah
-
NeilB
-
Tobias Becker
-
priyanka P S
-
priyanka P S
-
Abhi
-
Jon
-
kuldeepsidhu
-
sam
-
Wang
-
Wang
-
http://developerquestion.com/tutorial-about-web-service/ Tutorial about web service | DeveloperQuestion.com
-
Ahmad kayyali
-
saleel
-
saleel
-
saleel
-
richyaxe
-
richyaxe
-
Mahendra Raut
-
Mahendra Raut
-
richyaxe
-
saleel
-
Prasad
-
mike
-
http://www.cygnismedia.com/ Create iPhone App
-
http://www.worldoftrade.com/ Rolex Parts
-
http://www.ensisinfo.com MaheshBabu
-
http://www.ensisinfo.com MaheshBabu
-
Roy Glunt
-
http://www.worldoftrade.com/ Ring Jewelry
-
Pete
-
Joe
-
Joe
-
http://www.carteenee.com/ รถยนต์มืà¸à¸ªà¸à¸‡
-
Eman Hosny
-
khushi
-
Alish
-
Siddam1986
-
sahil
-
Sarokhatch
-
Sarokhatch
-
emrickenoch
-
Pedro
-
Alexsmayfield
-
Alexsmayfield
-
Stickytroll
-
Daney
-
Oudy1st
-
Husain
-
iremk
-
Bizzareshishir
-
ekrem aksoy
-
ekrem aksoy
-
Randeep Singh
-
Gangeshvar




Workout of the Day