I have a sudzc service class generated from a WSDL that accepts an ArrayOfInt and ArrayOfString objects as parameters. The service method signature is this:
- (SoapRequest*) Search: (id <SoapDelegate>) handler filters: (NSMutableArray*) displayedAttributes: (NSMutableArray*) displayedAttributes;
My question is, how do I pass values into the parameters that expect NSMutableArrays?
In the above method signature, the "displayedAttributes" parameter is expecting an ArrayOfInt
object (which should be populated with several integers in an int tag, e.g., <int>1</int><int>2</int><int>3</int>
etc).
However none of these things which I've tried have worked:
- Directly passing an NSArray/NSMutableArray of (int) objects
- Directly passing an NSArray/NSMutableArray of NSNumber objects
- Passing an array of strings containing @"1", @"2", @"3" etc
- Passing an array of strings that already contain
@"<int>1</int>"
,@"<int>2</int>"
, etc - Constructing a
CXMLDocument
out of a string based on the integers
I'm sure this is somehow explained in the accompanying documentation in the download -- it's just not clear to me at the moment.