Here, we have example source-code for ASP.net, which can generate the XML correctly, the previous example looks like:


using (MARestApi api = new MARestApi("http://<<client>>.c.kulea.marketing/xml/rest.xml"))

{

         Guid g = (Guid)Session["anykey"];

        MACommand[] commands = {

                  new MACommand("download", new Dictionary<string,string>() {

                          { "filename", "test.txt" }

                          }),

                   new MACommand("crm", new Dictionary<string,string>() {

                          { "email", "email@example.com" },

                          { "forename", "John" },

                          { "surname", "Smith" }

                          }),

        };

        api.Post("www.example.com", g.ToString(), commands);

}