Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi. I'm trying to enter an URL of xml-file in the service starting with: file: /// ... This is a local file, in other words. It gives an error: "URI does not specify a valid host name". Although I just copy the address of the local file opened in the browser. What's the problem? Need absolute url?
When you say local file, can the Thingworx server reach that location?
When you open it in a browser that means you are opening it client side.
Yes, I know that it's a client side. But what does the Thingworx server require to reach the file? Because, apparently, he can't reach him. And I don't really understand exactly this moment. That's why I'm asking.
If your Client side and Server side aren't the same box.
Then the Thingworx server is running on a whole different box with it's own domain and account.
You could log into that server and try executing the link on that box to see if it can reach the file or not.
At least this would cover the first requirement, can that box reach the file.
Thanks, I'll see, because now I don't have the opportunity. But, if it turns out that it can reach the file, then what else theoretically could be the problem? Or will it disappear?
Theoretically ... it should work :)
The other way would be to transfer or map the files into a Thingworx filerepository
Ok :)
I tried to transfer. It gives the same error.
What does that mean when you say, you tried to transfer?
Did you verify that the server has access to that link from the server itself?
I mean, that after transferring into repository TW gives the same error anyway.
Yes, the server has access.
If that works, you can run the GetFileListingWithLinks on the repository and use the Link information to do the download.