Have searched a lot but am unable to find an example for my query.
I have successfully integrated sudzc code into my project but am not able to figure out a way to pass arguments to the function:
// Returns id
/* Call api functionality */
[service call:self action:@selector(callHandler:) sessionId: @"" resourcePath: @"" args: @"???"];
Can someone please show me a way with an example if worked with sudzc.
Thanks in advance.
I figured it myself. There is not reference given by Sudzc themselves, as to how pass arguments to the functions. I also did extensive research on the internet, but you wont find any hint. So don't waste your time there.
The answer to this issue is to create the filter module yourself in the form of an NSString. In some posts, somebody mentioned that we need to pass an array. That's something that Sudzc people have not implemented yet and to be honest wasn't able to understand what they wanted us to implement ourselves.
From the site of Magento, I found a module of SOAP where it shows the structure of filter arguments.
http://www.magentocommerce.com/api/soap/sales/salesOrder/sales_order.list.html
At the bottom of the link, there is the structure for the soap request given, which I didn't find anywhere else. That gave me an idea. So I wrote the following functions for generating them:
Pass required arguments to these functions in this form:
So basically just prepare the structure of the request and pass it to the args: for filtering.