• 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
Hard time with Webservice methods returning array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hard time with Webservice methods returning array


  • Subject: Hard time with Webservice methods returning array
  • From: Eric Giguere <email@hidden>
  • Date: Sat, 17 Apr 2010 12:49:20 -0400

Hi all

I've been testing the CoreServices with WebServices lately and had some issues with methods returning arrays.

We've setup a very simple Web Service with a method that returns an array of strings. My problem here is that when I get the results out of the NSDictionary returned by WSMethodInvocationInvoke call, I receive only the last string.

I've tried supplying a custom callback for it using WSMethodInvocationAddDeserializationOverride but nothing does, still only the last string finds its way in the result. I kind of understand why since both element returned have the same name (return) in the XML. We clearly see the 2 elements in the debug XML In.

Its rather usual to return multiple elements from a WS, so my question: How can I tell the Framework to insert all items returned in my results? Is it possible with this framework in the first place?

Thanks for the help.
Eric.




Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Prev by Date: Re: program termination after releasing self defined NSXMLParser class
  • Next by Date: Re: program termination after releasing self defined NSXMLParser class
  • Previous by thread: Re: Launch app with params as front process and wait?
  • Next by thread: Looking for examples of UIScrollView using Core Data
  • Index(es):
    • Date
    • Thread