Unchase.Odata.Connectedservice
Unchase.Odata.Connectedservice copied to clipboard
Failed to access the metadata document!
i got this error when i was tried to connect SAP OData Service Metadata link:
Failed to access the metadata document. The OData service requires authentication for accessing it. Please download the metadata, store it into a local file, and set the value of “MetadataDocumentUri” in the .odata.config file to the file path. After that, run custom tool again to generate the OData Client code.
Screenshots


Hi, @karimabd84
Can you save the metadata from the Url to xml-file and try to generate code with it?
Hi @unchase , I did it! but that's the same problem.
Did you try to generate code from xml-file without credentials?
Same error!
Step1:

Step 2:

Did you try to generate code from xml-file without credentials?
I generated the metadata in xml file and i tried to generate the proxy from the xml file but it's not possible without credentials. Can you help me?
Hi @unchase, i found the problem! There is an error in the plugin:
- open the file Unchase.OData.ConnectedService.Templates
- go to method GetEdmxStreamFromUri
- the HttpWebRequest, that you created, ist without credentials.
- That's the problem bescause my OData Service needs every time credentials (from a xml file or drect from the url).
- When can you create a new release?