First off, congrats to the authors of BlogEngine.NET for the job well-done. Good stuff!
I need to interact with blogengine.net its APIs using c#. I need to dynamically create a user, give rights to that user, able to edit the user, etc. I also need to be able to dynamically add posts and discussions to the blog in addition to being
able to change some settings like blog name and logo.
I see that we have an array of web services in the api dirctory. Nice! I got to work and I created a project in VS2008 and created a reference to UserServices.asmx. At the basic level, I tried to create a user using the "Add"
method and doesn't matter what I do I get authentication error ("Not Authorized") with "Success" being "False." Below is code nippet that I used. What am I doing wrong please? The instance of the blog engine
is brand-new so I'm using the default admin, admin for the user name and login.
Interesting enough, if I do a GET on the web services WITHOUT username and password, I was able to create a user. So I tried creating a user without supplying username and password but I got the same "Not Authorized" error.
Is there an "API document" with some code samples out there? If so, a link to it would be just awesome. Thank you in advance for any and all help.
static void Main(string args)
string  roles = new string;
org.mydomain.www.UserService ua = new blogAPI.org.mydomain.www.UserService();
ua.Credentials = new System.Net.NetworkCredential("admin", "admin");
org.mydomain.www.JsonResponse jres = ua.Add("newuser","newuserpassword","firstname.lastname@example.org",roles);