Page 1 of 1

OkmMail Service problem

PostPosted:Mon Nov 08, 2010 2:18 pm
by Viral Raithatha
Code: Select all
OKMMail.mail obj = new MetroDMSWebAPI.OKMMail.mail();           
            OKMMail.OKMMailService obj1;

            OKMRepository.OKMRepositoryService okmRepositoryService;
            try
            {
                obj.bcc = new string[] { "abc@abc.com" };
                obj.cc = new string[] { "xyz@xyz.com" };
                obj.content = "Hi this is my first mail and this is the contact of mail.";
                obj.from = "pqr@pqr.com";
                obj.path = "/okm:mail/viral/";
                obj.receivedDate = DateTime.Now;
                obj.sentDate = DateTime.Now;
                obj.size = 10;
                obj.subject = "subject";
                obj.to = new string[] { "lmn@lmn.com" };

                obj1 = new MetroDMSWebAPI.OKMMail.OKMMailService();
                obj1.create(txtToken.Text, obj);                
            }
            catch (Exception ex)
            {
                lblError.Text = ex.Message;
            }
This code give me error " failed to resolve path relative to node /okm:mail/viral: empty path". Can you help me?

Re: OkmMail Service problem

PostPosted:Fri Nov 12, 2010 5:25 am
by Viral Raithatha
Please reply to my question, I am waiting for this,
If anyone dose not get my question then let me know. I will explain it.

Thank you
Viral Raithatha

Re: OkmMail Service problem

PostPosted:Fri Nov 12, 2010 7:39 am
by jllort
have you take a look in our source code how we importing mails to OpenKM ? Take a look at OpenKMOUtlookAddin module in trunk

try removing the last "/" I don't remember if must be put or not. And you've got privileges with the user you're connecting to accessing that node.

Put all stacktrace error