I've been scouring the web for information about how to actually authenticate and retrieve data from an onsite hosted Dynamics 2015 installation, so far its slow going. For initial experimentation I'm using a Chrome REST extension Postman to do this and having no success. The URL I'm using in Postman is of this form: (the denote place holders, obviously) http:// .com:5555/ /xrmservices/2011/organizationdata.svc I can manually use a browser to interactively connect using: .com:555/ /main.aspx# when I do the latter, I get prompted for a user/pwd, when supplied I get connected and see a start screen, all good. But when I use Postman and the first URL and when I've setup Basic Auth headers with user/pwd (as described here ) my requests fail "Unathorized: Access is denied". This is the same error I'll get if I try to login interactively and intentionally use a bad user/pwd. This is all very vague and I'm surprised there isn't some web article somewhere that gives more robust examples of this. I also looked at some third party tools (see the end of this article ) but when I download these I see no code, just some XML files and a bunch of weird file with HEX at the end of their names, no idea what to do with these tools and no sign of any documentation. Ultimately I need to craft some Java code that can issue REST-like authenticate, query, update operations and unless I can ascertain the exact steps (like with Postman etc) I'm going to be dealing with a great deal of uncertainty/guesswork here. Many thanks. PS: I'm a very experienced .Net designer/developer and could do this much more easily using .Net, however circumstances beyond my control, associated with a larger project here have compelled me to explore a Java/REST approach, and I have no idea whatsoever if a conventional REST/HTTP approach can even be used here, totally bewildered!
↧