1

In my web application running with SDL Web 8.1.1 I want to know wheter XPM is enabled for the Content Delivery environment. Do the Content Interaction Libraries expose a method to query if the Content Delivery environment has XPM capabilities?

I checked the SDL Web 8 Content Delivery API (Java) documentation in but that does not seem to document anything related.

1

Yes - it's possible to query the service for this. Unfortunately, as you say, the documentation is sketchy, so there's an amount of reverse-engineering to do.

Assuming that you have already obtained a token, you can check on the PreviewWebService capability like this:

Invoke-RestMethod -Method Get -Headers @{Authorization=$Authorization} `
    -Uri http://localhost:8082/discovery.svc/Environment/PreviewWebServiceCapability

(Of course, that's Powershell - YMMV in Java)

If you want to have more of a dig around, it's interesting to start with querying http://localhost:8082/discovery.svc/$metadata

4
  • @peter-kjaer is currently working on a PowerShell module with support for automatically querying the capabilities of a given environment.
    – Dominic Cronin
    Aug 5 '16 at 7:14
  • Thanks Dominic, I guess the answer is that CIL does not support this, but we can query the CD discovery service directly.
    – Jan H
    Aug 5 '16 at 13:13
  • The fact that I do not know of CIL support for this is not evidence that it does not exist.
    – Dominic Cronin
    Aug 5 '16 at 13:53
  • That's why I said "I guess". I am not sure either. ;)
    – Jan H
    Aug 5 '16 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.