Call web service from iPhone [use soap]
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.
the Objective C stub codes, they can be compiled but it does not work.
The web service I want to call is:
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