Nested SOAP parameters
Michael Dautermann
publicity2005 at adhocconference.com
Fri Oct 5 11:15:38 PDT 2007
On Oct 4, 2007, at 12:00 PM, macosx-dev-request at omnigroup.com wrote:
>
> How do I make nested SOAP parameters in Cocoa?
>
> If I want to send a parameter like
>
> <name>ivan</name>
>
> I can simply set
> WSMethodInvocationSetParameters(soapCall, (CFDictionaryRef)params,
> nil);
> where
> params = [NSDictionary dictionaryWithObjectsAndKeys:@"ivan", @"name",
> nil);
>
> But what if I have a parameter like:
>
> <person>
> <name>ivan</name>
> </person>
>
> How do I pass that to WSMethodInvocationSetParameters?
How about
params = [ NSDictionary dictionaryWithObject: [ NSDictionary
dictionaryWithObject: @"ivan" forKey: @"name" ] forKey: @"person" ];
????
More information about the MacOSX-dev
mailing list