FROM : Ivan C Myrvold
DATE : Wed Nov 07 18:04:29 2007
>
> Den 5. okt.. 2007 kl. 20:15 skrev Michael Dautermann:
>
>>
>> On Oct 4, 2007, at 12:00 PM, <email_removed> 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" ];
>>
>> ????
>
> This will result in:
>
> <person xsi:type="SOAP-ENC:Dictionary">
> <name xsi:type="xsd:string">ivan</name>
> </person>
>
> and I will get an error like:
>
> The specified type was not recognized: name='Dictionary'...
>
> Ivan
Is it no way to avoid getting SOAP-ENC: Dictionary?
Ivan
DATE : Wed Nov 07 18:04:29 2007
>
> Den 5. okt.. 2007 kl. 20:15 skrev Michael Dautermann:
>
>>
>> On Oct 4, 2007, at 12:00 PM, <email_removed> 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" ];
>>
>> ????
>
> This will result in:
>
> <person xsi:type="SOAP-ENC:Dictionary">
> <name xsi:type="xsd:string">ivan</name>
> </person>
>
> and I will get an error like:
>
> The specified type was not recognized: name='Dictionary'...
>
> Ivan
Is it no way to avoid getting SOAP-ENC: Dictionary?
Ivan
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

