Setting Up bonjour / web services on iphone

Discussion in 'iOS Programming' started by AndyCodez, Jan 2, 2010.

  1. AndyCodez macrumors regular

    Aug 6, 2009
    I'm looking for information how to set up these services properly. I have the picture sharing browser and picture sharing mac os x apps they have helped. I can set up the service to be viewed by finder but when trying to connect to the service it just fails. I know I'm trying to figure this out properly and I need help. I'm looking to use afp and/or webdav type services.

    I've been looking all over to find a blog or tutorial on how to setup these connections properly. The 2 sample projects apple provides are useful but only display sending a particular file. What I need is a folder to be displayed from the iphone App and the user is able to drag and drop csv's into it when the user is connected to the service.

    Here is an example of something like what I'm looking for. I'm only doing this to get data into my application not as a file transfer app so to speak.

    Thanks for any help. There is not a whole lot on setting up these types of services. I really don't have much networking experience.

    Thanks, and happy new year!

    I'm about to give up :/ I've been banging my head against the wall for like 3 weeks now trying to figure this out :/
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008

    and this

    are not compatible.

    The only way you're going to implement those features is by getting source code from someone else. Writing afp support or webdav support is a hard task requiring network expertise.

    If this is really your goal:

    then you should give up on afp and webdav and instead use one of the available examples of an embedded web server that you can download. You should be able to integrate an existing embedded web server into your app.

  3. AndyCodez thread starter macrumors regular

    Aug 6, 2009
    Yeah I think you are right, I've spent so much time looking into these methods i mentioned and not really finding anything. I was just wondering how those applications I linked were created. Those developers must have had a lot more network experience.

    My next idea was to make a web application to broadcast the service to import the files from. I'll need to do more research but possibly creating a apple web application with javascript and using the objective c coding similar to picture sharing on Mac OS examples. But I am not sure if you can imbed objective C coding into javascript and still run on the pc.
  4. KoolStar macrumors demi-god


    Oct 16, 2006
    I personally use .net webservices with soap request to get server data.
  5. AndyCodez thread starter macrumors regular

    Aug 6, 2009
    Yeah I didn't really want to be running my own web services to get user data. I wanted them to be able to create a .csv file to pull in larger quantity of data rather than creating it all on the phone.
  6. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
  7. kage777 macrumors newbie

    Feb 24, 2008
    ok, i apologize beforehand because this is probably and incredibly stupid question, but...

    can you use a embedded web server on a closed network?(may not be the right term, by that I mean no internet access, only the computers and iphone over the same wifi network?)
  8. PhoneyDeveloper macrumors 68040


    Sep 2, 2008

    It works fine over WiFi. I've even used it with an ad hoc network created by a single Mac laptop.
  9. HawaiiMacAddict macrumors 6502a

    Dec 28, 2006
    On one of my Macs of course

    A new book, More iPhone 3 Development is out, with information on what I think you're trying to do. The first part of the book deals with Core Data, but after that they get into networking, Bonjour, etc... It's also on the Apress website.
  10. AndyCodez thread starter macrumors regular

    Aug 6, 2009
    Thanks for the recommendation! Sounds like a good book, I'll have to order it this weekend. I have one of their other books, and they seem like very good books.

Share This Page