A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

What is the correct way to consume a PageStoreService in EPiServer CMS 6 R2?

Vote:
 

I'm tying to consume a PageStoreService from a remote site but I'm having some issues. I've added the Service Reference in my VS project and I can connect and get data from a remote site. The drawback is that I have to use PageReference, RawPage etc. generated in the proxy-class. I'm guessing that I'm suppose to be able to use the types from EPiServer.Core etc.

Result when trying to use EPiServer.Core.PageReference:
cannot convert from 'EPiServer.Core.PageReference' to 'MyServiceReference.PageReference' 

Another issue is that I cannot use the PageData constructor that accepts RawPage since the type is wrong.

Someone with some knowledge on what is the correct to do this?

Stig

#63092
Nov 08, 2012 22:20
* 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.