2

We have an existing .NET web service that we'd like to reuse when we port our .net project to iOS. I've seen wsdl2objc but I'm still having a hard time figuring out how to use the generated files.

could someone share some detailed step by step direction how to do this?

Bahamut
  • 1,929
  • 8
  • 29
  • 51
  • 1
    Did you try the [usage instructions](http://code.google.com/p/wsdl2objc/wiki/UsageInstructions) on the wsdl2objc site? If so, where did you have difficulties? – highlycaffeinated Aug 12 '11 at 16:27
  • 2
    u can make your service restful, then you wont need the wsdl – Daniel Aug 12 '11 at 17:05
  • on build, there were a few errors that came up. let me try redoing the whole steps again. – Bahamut Aug 14 '11 at 05:58
  • 1
    Please ignore everyone telling you to rewrite your whole stack to be buzzword compliant. Wsdl isn't the nicest thing around, but it does work. – SingleNegationElimination Aug 14 '11 at 17:43
  • TokenMacGuy: "but it does work" in general (ofcoz) or "but it boes work WITH IOS"? if the second, would you please link some resources? – boj Aug 17 '11 at 14:22
  • @boj: wsdl and ios does work according to the posts on wsdl2objc project in github. it's just that i'm new to iOS development, Xcode and Objective-C altogether. – Bahamut Aug 18 '11 at 06:26

1 Answers1

2

Try to switch to JSON:

JSON works well with .NET (JSON service in 60 seconds, How do I return clean JSON from a WCF Service?) and iOS too (JSON and iOS).

You'll find step-by-step tutorial in the second article.

Community
  • 1
  • 1
boj
  • 10,935
  • 5
  • 38
  • 57
  • the web service uses SOAP so how do I return JSON from that? we could probably convert it to a RESTful service but we'd like to reuse the current service as it is since existing modules are using it. – Bahamut Aug 25 '11 at 09:30
  • create new web service that call the WCF ?? I also face the same problem, my web developer build WCF but ios developer dislike to use it, he say, why we don't use simple HTTP Get/Post method to pass the input parameter ..... – iXcoder Sep 09 '11 at 20:55