From Rackspace Email & Apps API
Jump to: navigation, search

A customer recommended the following article as being helpful for System.Net.WebException errors:

Option Explicit

Dim soapClient
set soapclient = CreateObject("MSSOAP.SoapClient")

soapclient.ClientProperty("ServerHTTPRequest") = True
soapclient.mssoapinit "",
"excedentsoap", "UtilsSoapPort"

Dim retval

'this is the username and password you use to log in to our site
Dim AdminUsername, AdminPassword

AdminUsername = "adminUser"
AdminPassword = "adminPassword"

Dim emailAddr
Dim HostName 'the hostname of the email domain
Dim UserID 'userid (id before the @ symbol in the email address)
Dim sesID

HostName = ""
UserID = "someguy"

'*************function call checkuserexists****************
retval = soapclient.LoginUserWebMail(AdminUsername, AdminPassword, HostName, UserID, sesID)

Response.Write retval
Response.Write "
" & sesID
Response.Redirect ""&SesID

Set soapclient = nothing