• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Call web service from iPhone [use soap]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Call web service from iPhone [use soap]


  • Subject: Call web service from iPhone [use soap]
  • From: ico <email@hidden>
  • Date: Thu, 9 Dec 2010 19:20:14 +0800

Hi all,

I want to develop an iPhone app which will consume a soap web service. 
I tried to use wsdl2objc (http://code.google.com/p/wsdl2objc/) to generate 
the Objective C stub codes, they can be compiled but it does not work.
The web service I want to call is: 

http://www.mathertel.de/AJAXEngine/S02_AJAXCoreSamples/CalcService.asmx?wsdl

The method I want to call is AddInteger.

Here is my codes:

[CalcService initialize];

CalcServiceSoapBinding *calcBinding = [CalcService CalcServiceSoapBinding];

CalcService_AddInteger *intPara = [[CalcService_AddInteger alloc] init];

intPara.number1 = [NSNumber numberWithInt:1];

intPara.number2 = [NSNumber numberWithInt:2];

CalcServiceSoapBindingResponse *calcRes = [calcBinding AddIntegerUsingParameters:intPara];

NSLog(@"Header:\n%@", calcRes.headers);

NSLog(@"Body:\n%@", calcRes.bodyParts);


The result is:

Header:

(null)

Body:

(

    "<CalcService_AddIntegerResponse: 0x4b2f0d0>"

)



Anyone has wsdl2objc managed? If wsdl2objc is not a good choice, any
suggestion will be appreciated.

btw, this is only a test program, the project I am working on is quite big.
There are a log of web services interface, if I don't use wsdl2objc, there
will be a huge workload for me. If this is the only choice, any good tutorial
available?

Thank you.

--
==========================
Life isn't about finding yourself.
Life is about creating yourself.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Call web service from iPhone [use soap]
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: Browser filtering
  • Next by Date: Re: Call web service from iPhone [use soap]
  • Previous by thread: Re: Browser filtering
  • Next by thread: Re: Call web service from iPhone [use soap]
  • Index(es):
    • Date
    • Thread