AIF - Return array of custom object

Hello,

I’m in an AX 2009 environment. We’ve a need to pass an array of a custom object to one of our partners.

I’ve created a custom AIF service to return a primitive type, and it works. I understand that non-primitive return requires Serialization and deserialization logic. I’m looking for a simple example to return an array of a custom object.

Thanks.

The class must implement AifXmlSerializable interface. An example is here: Creating Custom Dynamics AX Service.

Thanks for the response Martin. I’d previously looked at the link you sent. Didn’t quite hep me. What would be the return type from my X++ method?

That would be your custom serializable class representing the collection.