• 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: Nested SOAP parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested SOAP parameters


  • Subject: Re: Nested SOAP parameters
  • From: Dave Hersey <email@hidden>
  • Date: Thu, 4 Oct 2007 12:06:06 -0400

I haven't looked at the SOAP stuff in a while, but have you tried storing the person
parameters in a separate dictionary, and then passing that dictionary as a parameter?


personDict = [NSDictionary dictionaryWithObjectsAndKeys:@"ivan", @"name", nil];
params = [NSDictionary dictionaryWithObjectsAndKeys: personDict, @"person", nil];


Conceptually, that will create params with the structure you're describing, so that's
how I'd expect it to work.


- d


On Oct 4, 2007, at 5:48 AM, Ivan C Myrvold 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?

Ivan
_______________________________________________

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


  • Follow-Ups:
    • Re: Nested SOAP parameters
      • From: Ivan C Myrvold <email@hidden>
References: 
 >Nested SOAP parameters (From: Ivan C Myrvold <email@hidden>)

  • Prev by Date: Question about NSURLRequest
  • Next by Date: Re: Question about NSURLRequest
  • Previous by thread: Nested SOAP parameters
  • Next by thread: Re: Nested SOAP parameters
  • Index(es):
    • Date
    • Thread