| Author |
Message |
Saed Zaidan
Guest
|
Posted:
Wed Dec 29, 2004 7:47 pm Post subject:
Creating Area Dynamically (by code) in the SPS |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|