Creating Area Dynamically (by code) in the SPS
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Creating Area Dynamically (by code) in the SPS

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Saed Zaidan
Guest





Posted: Wed Dec 29, 2004 7:47 pm    Post subject: Creating Area Dynamically (by code) in the SPS Reply with quote

I want to create Area in the SPS dynamically, i mean by using the Object
model for the SPS, i tried to use the AreaService.asmx WebService but when i
want to access the methods in side this web service there was a permission
problem. SO please if there is anyway to create the Area without using this
WebService.
Thanks indeed.
Saed Zaidan
Back to top
Don Gertz
Guest





Posted: Thu Dec 30, 2004 12:01 am    Post subject: RE: Creating Area Dynamically (by code) in the SPS Reply with quote

You can use the AddArea method of the AreaCollection class.

"Saed Zaidan" wrote:

Quote:
I want to create Area in the SPS dynamically, i mean by using the Object
model for the SPS, i tried to use the AreaService.asmx WebService but when i
want to access the methods in side this web service there was a permission
problem. SO please if there is anyway to create the Area without using this
WebService.
Thanks indeed.
Saed Zaidan
Back to top
CSF
Guest





Posted: Thu Dec 30, 2004 1:17 am    Post subject: RE: Creating Area Dynamically (by code) in the SPS Reply with quote

I found it was easier to create a Windows Application than use the webservice.

topologyManager = new TopologyManager();
uri = new Uri("http://yourwebsite");
sites = topologyManager.PortalSites;
portalContext = PortalApplication.GetContext(sites[uri]);
System.GUID parentGuid =
AreaManager.GetSystemAreaGuid(portalContext,SystemArea.Home);

You can get to SPWeb and Lists and seems to have more objects in the windows
app.

"Saed Zaidan" wrote:

Quote:
I want to create Area in the SPS dynamically, i mean by using the Object
model for the SPS, i tried to use the AreaService.asmx WebService but when i
want to access the methods in side this web service there was a permission
problem. SO please if there is anyway to create the Area without using this
WebService.
Thanks indeed.
Saed Zaidan
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB