• 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
Re: Call web service from iPhone [use soap]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Call web service from iPhone [use soap]


  • Subject: Re: Call web service from iPhone [use soap]
  • From: Sixten Otto <email@hidden>
  • Date: Thu, 9 Dec 2010 11:51:45 -0500

On Thu, Dec 9, 2010 at 6:20 AM, ico <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden

References: 
 >Call web service from iPhone [use soap] (From: ico <email@hidden>)

  • Prev by Date: IKImageView - image erase left overs
  • Next by Date: CALayers, GCD, CATransaction flush and CGContextFlush
  • Previous by thread: Call web service from iPhone [use soap]
  • Next by thread: CALayers, GCD, CATransaction flush and CGContextFlush
  • Index(es):
    • Date
    • Thread