Try our conversational search powered by Generative AI!

EPiServer Webservice PageStoreService

Vote:
 

I am new to EPiServer. I want to get content of the page (page build in EPiServer). I used PageStoreService Webservice, but I am unable to get Credential object for this service. My code is like:

PageStoreService pageContent = new PageStoreService();                

 pageContent.Credentials = new NetworkCredential("xxx", "xxx");

 LanguageSelector selector = new LanguageSelector("en-US");

 RawPage page = new RawPage();

 page = pageContent.GetPage(new EPiServer.Core.PageReference(423),
                                    selector, EPiServer.Security.AccessLevel.Read);

 any idea?

#55254
Nov 23, 2011 18:03
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.