I've seen some posts on timeout errors but nothing I think that will help me. I have a custom web service running on a sharepoint server. It creates site collections and is being called through a nintex workflow. I recieve this error on my web service action.
Failed to invoke web service. Error returned from server: The operation has timed out
Although it says it failed to invoke the web service, the site collection is being created.
public string CreateSiteCollection(string urlroot, string urlname, string database, string primaryadmin, string secondadmin, string language, string description, string title, string template)
{
//Find language and template code
uint lang_code = get_lang_code(language);
string temp_code = get_temp_code(template);
try
{
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite site = new SPSite(webapp))
{
using (SPWeb web = site.OpenWeb())
{
HttpContext.Current = null;
site.AllowUnsafeUpdates = true;
web.AllowUnsafeUpdates = true;
var newSite = site.WebApplication.Sites.Add(siteurl, title, description, lang_code, temp_code, primaryadmin, null, null, secondadmin, null, null);
}
}
});
}
catch (Exception e)
{
return string.Format("Exception caught: {0}", e);
}
return "Site collection created";
} // End of CreateSiteColleciton
I just changed my web service action to not store the output in a variable and then it ran with no error, could something be wrong with returning the string?