-1

I'm trying to get a dynamic property using EPIServer Webservice. The only thing a see I can do is create new properties using

PageStoreService.RawProperty dynProperty = new PageStoreService.RawProperty();
dynProperty.IsDynamicProperty = true;

but I have no clue how I do to get a property. My question is this. What is the proper way to do

DynamicProperty dynProperty = DynamicProperty.Load(therootnode, "MyDynamicProp");

using EPIServer webservice? Thanks in advance!

Andreas
  • 2,336
  • 2
  • 28
  • 45

1 Answers1

1

Very similar to this question. You could roll your own service to obtain this information

[WebService(Namespace=http://yournamespace/")]
public class PageReferenceService : System.Web.Services.WebService
{ 
    [WebMethod()]
    public PageReference GetDynamicProperty(PageReference rootNode, string propertyName)
    {
        return DynamicProperty.Load(rootNode, propertyName);
    }  
}

(untested)

Community
  • 1
  • 1
tompipe
  • 949
  • 6
  • 8
  • Hi, It's similar because I asked two questions at the same time :) – Andreas Apr 25 '13 at 09:41
  • You could actually look at extending the PageStoreService so you wouldn't have the additional code to call two different services – tompipe Apr 25 '13 at 09:43