Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[closed] Are there are examples of a working C# REST client for creating work items?

Hello,

I am busy trying to create a working REST client in Visual Studio (C#) that creates work items but I am having trouble with getting it to work.  I can resolve the factory URL and create a work item to POST to the URL, but I can't get it to work.  The error I am currently facing is:

Data at the root level is invalid. Line 1, position 1.

Is there a working skeleton client or a tutorial somewhere that I can reference to see what I am doing wrong?

Thank you and best regards,

Andrew

0 votes

Comments

Does the same REST request work when you're using Java?

@paniola

Hello Piotr,
Thank you for the response!  I cannot get the REST request to work with Java due to authentication issues.  For some reason I always get an unauthorized error when trying to connect.  That's a whole separate issue that I need to find time to address...
Regards,
Andrew

So, how exactly does your request look like? It seems to me, based on the error message, that there is something wrong with the request, rather than with the C# language.

@paniola

Hello Piotr,
I found out the problem.  It was very stupid.  I was passing the factory URL incorrectly and so I kept getting an error.  I fixed it and solved.
Thank you for your availability!
Best regards,
Andrew


The question has been closed for the following reason: "Programming parsing error that was identified and resolved." by spriteburn Jan 21 '14, 5:45 a.m.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,951

Question asked: Jan 20 '14, 5:07 a.m.

Question was seen: 4,401 times

Last updated: Jan 21 '14, 5:45 a.m.

Confirmation Cancel Confirm