KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

Bug in Serialize Header Method? #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a Soap header which is not a nested dictionary

What is the expected output? What do you see instead?
crash

What version of the product are you using? On what operating system?
OSX Lion

I believe the last line of the 

+(NSString*)serializeHeader:(NSDictionary*)headers forKey:(NSString*)key {  

Method should be this:
    return [NSString stringWithFormat:@"<%@>%@</%@>", key, [Soap serialize: value], key];
Instead of This:
    return [NSString stringWithFormat:@"<%@>%@</%@>", key, [Soap serialize: [value objectForKey: key]], key];

Original issue reported on code.google.com by michael....@gmail.com on 10 Jan 2012 at 12:43