Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: SPServices CreateWeb

Hi,
I'm using CreateWeb in the content editor web part
i saw the other post about CreateWeb and had made the change according to that post
but i got some different problem.
Here is code:

       $().SPServices({
       operation:"CreateWeb",
       url:siteUrl,
       title:siteTitle,
       description:siteDesc,
       templateName:"TestTemplate.stp",
       language:1033,
       languageSpecified:true,
       locale:1033,
       localeSpecified:true,
       collationLocale:1033,
       collationLocaleSpecified:true,
       uniquePermissions:false,
       uniquePermissionsSpecified:false,
       anonymous:false,
       anonymousSpecified:false,
       presence:false,
       presenceSpecified:false,
       async:false,
       completefunc:function (xData, Status){
       alert(xData.responseText);
       console.log(xData.responseText)       }   
        
       });
i got this warning from xdata.responseText:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">soap:ClientServer did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sharepoint/soap/CreateWeb. />
</soap:Fault>
</soap:Body>
</soap:Envelope>

and site is not created
please help.

Viewing all articles
Browse latest Browse all 6517

Trending Articles