Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Webservice pagereference

Vote:
 
I'm trying to use the episerver webservice, but I can't get any data. I've set it up according to the techincal reference, with basic authentication. Here's the code I use. WS.DataFactoryService proxy = new Basetool.EPiServer.WS.DataFactoryService(); proxy.Credentials = new NetworkCredential("ntfsuser", "password", ""); proxy.PreAuthenticate = true; PageReference pr = new PageReference(); pr.ID = 28; pr.LoadRawPageData = true; RawPage[] pages = proxy.GetChildren(pr); This doesn't return anything, but it doesn't throw any errors.
#12461
Dec 01, 2005 18:04
Vote:
 
Try setting the PageReferences' property RemoteSite to the name of your remote site as named in your admin. Frank :D
#14299
Dec 04, 2005 19:15
Vote:
 
I've tried setting it to both "Name of your website" and "Address to your website" but nothing happens. Do you have to config something in admin for webservices to work?
#14300
Dec 05, 2005 11:57
Vote:
 
There are some Technical Note about how to set up the WebServices's and Content Mirroring. /HAXEN
#14301
Dec 05, 2005 21:26
Vote:
 
First, make sure you've set up the web service correct on the remote site. Try to access http://REMOTESITENAME/webservices/datafactoryservice.asmx in your browser, using the specified username and password. For troubleshooting, see Tech Notes. When this is done, make sure you've set up the Remote Sites setup in admin on both the remote episerver site and the local episerver site. You should be able to ping (the link in the admin tool page) from your local site to your remote site. If this fails, try to generate a new to use between the sites. For troubleshooting, see Tech Notes. Frank :)
#14302
Dec 06, 2005 9:07
Vote:
 
The first part works fine, and I have, as said, set it up according to the Tech ref. Do I need to set up "Remote sites" even if I am not to transfer data between to episerver installations? I just want to use the webservice to get data out to another application.
#14303
Dec 06, 2005 10:40
Vote:
 
Are you trying to use the web services from a non-episerver application? If so, I haven't tested this.
#14304
Dec 07, 2005 22:17
Vote:
 
That is what I'm trying to do.
#14305
Dec 08, 2005 12:02
Vote:
 
I don't think this is possible, since the EPiServer assemblies you've referenced to, don't know the context they're in. Maybe someone from EP should comment on this. Frank :)
#14306
Dec 09, 2005 9:30
Vote:
 
Hello It is absolutly possible to consume the webservice from a non EPiServer application. The problem in this case, which was found out through EPiServer support, was that the user didn't have read rights on the pages. That's why no pages was returned from the GetChildren call.
#14307
Dec 13, 2005 16:43
Vote:
 
Did you solve the problem?
#14308
Dec 14, 2005 7:05
Vote:
 
Problem solved. I was accessing through the webservice. pages that didn't allow anonymous access, and where the NTFS-account used by the webservice had no rights either. Solved it by adding read-access for the pages to the webservice NTFS-user.
#14309
Dec 14, 2005 13:00
* 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.