AnsweredAssumed Answered

Call web service Sites.asmx CreateWeb method

Question asked by bofort on Mar 30, 2017
Latest reply on Mar 30, 2017 by mlauer

Hello,

 

Can someone explain me how to use this method?

 

My request message:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:CreateWeb>
<m:url>https://url/{WorkflowVariable:title}</m:url>
<m:title>{ItemProperty:Title}</m:title>
<m:description>
</m:description>
<m:templateName>{WorkflowVariable:template}</m:templateName>
<m:language>English</m:language>
<m:locale>
</m:locale>
<m:collationLocale>
</m:collationLocale>
<m:uniquePermissions>true</m:uniquePermissions>
<m:anonymous>false</m:anonymous>
<m:presence>true</m:presence>
</m:CreateWeb>
</soap:Body>
</soap:Envelope>

 

Result:

The remote server returned an error: (500) Internal Server Error.

 

And I don't know, what I do wrong...

Outcomes