views:

2196

answers:

4

In SharePoint 2010, site templates (.stp files) are deprecated. Instead, solutions (.wsp files) are used to achieve the same effect, but also beyond that. Uploading .stp file and using it was straight forward in MOSS and WSS.

However, in SharePoint 2010, it is necessary to upload a solution and to activate it before using it. I need this functionality, and I also need it implemented through web services. Has anyone encountered something similar? Could anyone help? Thanks a lot.

A: 

I unsure why you need to deploy a solution file using WebService. You can easily create a WSP Solution using this tool WSPBuilder and you can use Solution Installer to install the solution to the SharePoint farm. You can download the SharePoint installer's code and see what API to use to upload the solution to sharepoint.

Kusek
The WSP solution deployment is an integral part of an application. One of the options of that application should allow user to deploy the solution to the given site collection, thus I am limited to the usage of web services, I think. To make things even more complicated, the application does not run on the server hosting the SharePoint.
Boris
A: 

OK, I've reached some people from the SharePoint design team at Microsoft and they have confirmed that there is no web service with a functionality to activate the solution. The upload of the solution should be done in a straight forward manner.

Boris
A: 

How Can I upload site template (.wsp) file to SharePoint 2010 through code (C#)? or Is there any command line statements for that?

Jagadish