Friday, April 20, 2007

ARGHHH cookies

So I finally found out that you need to create a CookieContainer if the server you are talking with uses cookies for authentication (which of course the piece of crap kronos server does) anyways I almost gave up but I'm glad I got it to work!!!!! This dude was very helpful http://blogs.msdn.com/dgorti/archive/2005/08/16/452347.aspx

Code snippet for sending XML to kronos

Dim outxml As New MSXML2.DOMDocument40
Dim inxml As New MSXML2.DOMDocument40
'Set Receiving page
Dim strURL As String = "http://seattle-kronos/wfc/XmlService"
Dim xmlHTTP As New MSXML2.ServerXMLHTTP40
'Set path of xml file to pass via HTTP
Dim xmlPath As String = "c:\test.xml"
outxml.load(xmlPath)

With xmlHTTP


Try
.open("POST", strURL, False)
.send(outxml)
inxml = xmlHTTP.responseXML
MsgBox(inxml.xml)
Catch ex As Exception
MsgBox(ex.ToString)
End Try

End With

Wednesday, April 04, 2007

Mail-enabled calendars are cool

So I just learned about Mail-enabled calendars. I think they are nifty. To set them up you fire up your exchange system manager, admin groups, domain, folder, public folders, right click on your desired public calendar, all tasks, mail enable. Now from your exchange client you can right click on this calendar and you have an exchange settings tab that you can see what email address you can send your requests to. So how to use: create an appointment as usual but also add an invitation to the newly mail enabled public calendar. This will automagically add it to that public calendar.