Consuming Web Services from Windows Server 2003 **RESOLVED**
Hi,
I have some code that creates issues using the REST web services API. It runs fine on my workstation (Windows XP). The same code when executed on Windows 2003 server throws the following exception:
'--' is an unexpected token. The expected token is '>'. Line 81, position 5.
Is there any reason why this would not work on a Windows 2003 server?
Code Listing Below:
const string url = "http://geminiURL.com"; const string userName = "domain\user"; const string apiKey = "xxxxxxxxxx";
ServiceManager serviceManager = new ServiceManager(url, userName, string.Empty, apiKey, false);
IssueEN issue = new IssueEN();
issue.ProjectID = 30;
issue.IssueSummary = "IssueSummary";
issue.IssueLongDesc = "Issue Description";
issue.IssuePriority = 1;
issue.IssueResolution = 1;
issue.IssueSeverity = 1;
issue.IssueStatus = 1;
issue.IssueType = 1;
issue.RiskLevel = 1;
issue.ReportedBy = 1;
try
{
issue = serviceManager.IssuesService.CreateIssue(issue);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
yu217171
· 1 |
|
Monday, November 29, 2010, 8:21:53 PM |