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. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com