I want to call the CreateWorkspace method of the Meetings web service to create a subsite but I find no simple information on how to create the timeZoneInformation parameter in javascript which according to the WSDL is not optional.
there are examples showing how to do it in Visual Basic:
Dim tz As New mywss001.TimeZoneInf()
..
CreateWorkspaceResponse =
ws.CreateWorkspace(MeetingSubjectTextBox.Text, "MPS#0",
System.UInt32.Parse("1033"), tz)
but no examples of how to generate it in javascript.
According to microsoft the relevant SOAP request XML is:
<timeZoneInformation>
<bias>int</bias>
<standardDate>
<year>unsignedShort</year>
<month>unsignedShort</month>
<dayOfWeek>unsignedShort</dayOfWeek>
<day>unsignedShort</day>
<hour>unsignedShort</hour>
<minute>unsignedShort</minute>
<second>unsignedShort</second>
<milliseconds>unsignedShort</milliseconds>
</standardDate>
<standardBias>int</standardBias>
<daylightDate>
<year>unsignedShort</year>
<month>unsignedShort</month>
<dayOfWeek>unsignedShort</dayOfWeek>
<day>unsignedShort</day>
<hour>unsignedShort</hour>
<minute>unsignedShort</minute>
<second>unsignedShort</second>
<milliseconds>unsignedShort</milliseconds>
</daylightDate>
<daylightBias>int</daylightBias>
</timeZoneInformation>
Does anyone know how to do this in javascript or have an example of a real SOAP request which I could work back from?
Any ideas why calling this method from javascript might be ignoring the site template parameter??
– Mar 08 '10 at 12:34just to confirm - you CAN create subsites with the CreateWorkspace method of the Meetings webservice with any standard (STS#0) or custom site template (testtemplate.stp) - the timeZoneInformation is only important in meeting sites
– Mar 09 '10 at 08:58