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

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

RedirectDownload URL from Windchill OData Fails to Download File

PB_12513058
2-Explorer

RedirectDownload URL from Windchill OData Fails to Download File

Hi Community,

I'm working on a ThingWorx 9.6 system integrated with Windchill (using WindchillAuth). I'm trying to download file content from Windchill using the URL I get from an OData response, but I’m running into an issue.

 

From the Windchill OData service, I receive a URL like this: https://<windchill-host>/Windchill/servlet/WindchillAuthGW/wt.fv.master.RedirectDownload/redirectDownload/20147_910-92%20CACAO%20MASSA%20PLANT.zip?u8&redirect=true&ContentHolder=wt.doc.WTDocument:3xxx462&HttpOperationItem=wt.content.ApplicationData:45xxxxx52&forceDownload=true

  • I want to download this file from Windchill into ThingWorx (or serve it in a Mashup).

  • I'm using WindchillAuth in the Integration Connector, and other OData calls are working fine.

 

When I try to download this file using the above URL (either through the connector or directly), it fails. same happens with 2dthumbnial also 
When I paste the same URL in a browser (while logged into Windchill from other tab), it works and downloads the file.



 

 

3 REPLIES 3

just adding more details 

in my odata service i am using below strings 

$select =  Number,Name,Version,State,PrimaryContent,Representations

$expand = PrimaryContent,Representations
end point = DocMgmt/Documents GET

do i need to add something else in my query parameters to get the content 

@PB_12513058 First of all you should check Windchill/Apache HTTP andIntegration Runtime logs and look for this request to find root cause why it failed. 

 

As for the query parameters to get the content, find this REST Api in Windchill REST Services tester UI and pass the same parameters you passing in ThingWorx to see if that works or you need to add something else.

Hi @PB_12513058 

 

Was the response provided by Marek helpful?  If so, please mark it as the Accepted Solution for the benefit of others in the community.  If you still need assistance, please let us know what questions you have.

 

Regards.

 

--Sharon

Announcements


Top Tags