USBoolean problem

153 views
Skip to first unread message

Radu Paise

unread,
Apr 13, 2011, 6:12:22 PM4/13/11
to WSDL2ObjC Discussion Group
Hi,
I have a boolean attribute strict. It shoult be strict="true" or
strict="false". However I get:
<tns5:name strict="&amp;amp;lt;USBoolean: 0x10054eff0&amp;amp;gt;">

I tried
request.name.strict = [[USBoolean new] autorelease];
request.name.strict.boolValue = YES;


and
request.name.strict = [[[USBoolean alloc] initWithBool:YES]
autorelease];

Does anyone know how to fix it?
Thanks in advance,
Radu

Shahar Hadas

unread,
Apr 28, 2012, 6:55:13 PM4/28/12
to wsdl2obj...@googlegroups.com
I had the exact same issue.

I've fixed it by editing USAddtions.m in the USBoolean implementation:

- (NSString *)description
{
    return [self stringValue];
}

don't know why it wasn't there in the 1st place.

AbuTalha Salim

unread,
Mar 16, 2014, 9:05:37 AM3/16/14
to wsdl2obj...@googlegroups.com
Thank You, you suggestion fixed the same problem for me too.
Reply all
Reply to author
Forward
0 new messages