Hard time with Webservice methods returning array
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