Subscribe ( )

iPhone Programming Tutorials


 

Forum

You must be logged in to post Login Register

Search 

example to access soap based web service

User Post

7:07 am
August 27, 2008


rawnaveen

iCoder

posts 9

1

hi ,

     i am trying to implement a web client on iphone which could access my SOAP based web service.

so anyone please give an example from scratch.

if soap is not supported please give an example for REST.

Thanks and regards ,

Naveen

11:42 am
August 27, 2008


Admin

brandontreb

posts 88

2

Im not sure if SOAP is supported. but I do know you can interface with web services via XML-RPC on the iPhone.  The Wordpress application uses this functionality.  I will have a tutorial on this in the coming months.

If debugging is the process of removing bugs, then programming must be the process of putting them in.
-Edsger Dijkstra

12:58 am
August 28, 2008


rawnaveen

iCoder

posts 9

3

Hi Brandon,

      Got to know that there are some private frame works in iphone simulator.

    So, is there CoreServices framework present that I can use to access SOAP based web services?

Thanks

11:16 am
October 9, 2008


iWiz

Noob

posts 1

4

rawnaveen said:

Hi Brandon,

      Got to know that there are some private frame works in iphone simulator.

    So, is there CoreServices framework present that I can use to access SOAP based web services?

Thanks


Hi Rawnaveen,

   Yes, you can consume SOAP services using a web client on the iPhone.  It is entirely javascript-oriented using the XMLHttpRequest object.  There are several libraries out there that will work and I'm currently doing it for an application that I'm writing for my current employer. 

   I found a library called soapclient.js that actually creates all the code to request and then return the XML for the soap request.  I was debating writing one myself, but this is a great shortcut and seems to be working fine at this point. 

   I'm using a setInterval call as well so that I can call the web service periodically while the web-app is running to update the local data store that I'm using on the iPhone (using SQLite for that).  Given that there are no remote connection to DB capabilities on the iPhone (at least not that I've found yet), this seemed like a good alternative.

   Hope that helps.

Search 

About the iCodeBlog forum

Most Users Ever Online:

44


Currently Online:

2 Guests

Forum Stats:

Groups: 2

Forums: 6

Topics: 419

Posts: 893

Membership:

There are 934 Members

There has been 1 Guest

There are 2 Admins

There is 1 Moderator

Top Posters:

bobcubsfan – 54

crazyiez – 30

Uhu – 17

AdeC – 17

Nick – 15

jitesh61 – 12

Administrators: Brandon (88 Posts), Collin (0 Posts)

Moderators: VertigoSol (26 Posts)



©   

  • Posted by on 6 Aug 2008 in Uncategorized
  •   |  
  •   |  
  •   |  
  • Comments Off

Comments are closed.