how to use anyType objects

50 views
Skip to first unread message

Gevorg Petrosyan

unread,
Sep 6, 2012, 2:07:38 AM9/6/12
to wsdl2obj...@googlegroups.com
I think wsdl2obj can't parse anytype object?
Somebody faced with this problem?

Gevorg Petrosyan

unread,
Sep 6, 2012, 2:27:37 AM9/6/12
to wsdl2obj...@googlegroups.com
for example
<a:anyType i:type="a:ArrayOfanyType">
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">5</a:anyType>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">My Task test 1 - Step for In Progress</a:anyType>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Administrator</a:anyType>
<a:anyType i:nil="true"/>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Medium</a:anyType>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Completed</a:anyType>
<a:anyType i:type="b:dateTime" xmlns:b="http://www.w3.org/2001/XMLSchema">2012-08-31T12:23:42.2502239Z</a:anyType>
<a:anyType i:type="b:decimal" xmlns:b="http://www.w3.org/2001/XMLSchema">0</a:anyType>
<a:anyType i:type="b:dateTime" xmlns:b="http://www.w3.org/2001/XMLSchema">2012-08-30T06:57:32.2848918Z</a:anyType>
</a:anyType>
<a:anyType i:type="a:ArrayOfanyType">
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">4</a:anyType>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">My Task test 1 - Start</a:anyType>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Administrator</a:anyType>
<a:anyType i:nil="true"/>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Medium</a:anyType>
<a:anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Completed</a:anyType>
<a:anyType i:type="b:dateTime" xmlns:b="http://www.w3.org/2001/XMLSchema">2012-08-31T12:23:40.2152239Z</a:anyType>
<a:anyType i:type="b:decimal" xmlns:b="http://www.w3.org/2001/XMLSchema">0</a:anyType>
<a:anyType i:type="b:dateTime" xmlns:b="http://www.w3.org/2001/XMLSchema">2012-08-30T06:57:08.4559686Z</a:anyType>
</a:anyType>
for this xml
- (void)getArray:(tns2_ArrayOfanyType *)array
{
    for(int i = 0; i < array.anyType.count; ++i) {
        tns2_ArrayOfanyType *tns2_anyTypes = [array.anyType objectAtIndex:i];
        NSLog(@"tns2_anyTypes %@", tns2_anyTypes.anyType);
    }
}
Log I get
2012-09-06 10:02:03.357 ComindwareTest[958:f803] tns2_anyTypes (
    ""
)
2012-09-06 10:02:03.357 ComindwareTest[958:f803] tns2_anyTypes (
    ""
)
Reply all
Reply to author
Forward
0 new messages