On Thu, Dec 9, 2010 at 6:20 AM, ico <jche...@gmail.com> wrote:

> 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.
>

You say that it doesn't work. In what way? You're not seeing a request come
in to the server? You're not getting the result you expected? Your program
is crashing?


> NSLog(@"Header:\n%@", calcRes.headers);
> NSLog(@"Body:\n%@", calcRes.bodyParts);
>
> The result is:
>
> *Header:*
>
> *(null)*
>
> *Body:*
>
> *(*
>
> *    "<CalcService_AddIntegerResponse: 0x4b2f0d0>"*
>
> *)*
>

Knowing nothing about this service, or wsdl2objc, but having some experience
with SOAP services (and calling them from non-.NET languages), this seems
perfectly reasonable to me. You called the service, you got back a response,
and it has no headers, and a single response element in the body. The name
of the class for the instance in that bodyParts array matches what I'd
expect from the name of the service.

Of course, you'd need to examine that CalcService_AddIntegerResponse to see
whether the service really returned what you expected. But I'm not sure that
I see what the problem is.

Sixten
_______________________________________________

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

Reply via email to