• OkmMail Service problem

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #7027  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?
 #7065  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
 #7067  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.