cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Upload file in a WindChill document - OData REST API - RestSharp V110 issue

tchampier
10-Marble

Upload file in a WindChill document - OData REST API - RestSharp V110 issue

Hello,

 

Does somebody has moved from the NuGet RESTSharp 106 to 107 or higher (110 in my case)? They have change a lot of things and I'm not able now to complete the stage 2, to upload the file on Windchill server.

 

I've used Postman to create the different steps and it's working perfectly on Postman: I try to use the C# code provided by postman, but not able to reproduce the same in my program.

 

When I start the stage 2, it seems that the request is well executed but nothing is send to the server: the content info in return is empty:

{
    "contentInfos":[]
}

 

Should have a retun like that:

{
    "contentInfos": [
    {
       "streamId": 76030,
       "fileSize": 2,
       "encodedInfo": "76035%3A2%3A150329%3A76035"

    }]
}

 

Previously, with version 106 of the RestSharp, I've got no issue.

 

Thank you for your feedback and help.

0 REPLIES 0
Top Tags