unchase / Unchase.Odata.Connectedservice

:scroll: A Visual Studio extension for connecting to OData services with generating client-side C# proxy-classes
Apache License 2.0
44 stars 13 forks source link

Update of Services causes problem when having more than one Endpoint #7

Closed slnetgit closed 5 years ago

slnetgit commented 5 years ago

If you have a Project with more than one ConnectedService it seems not to be possible to update the proxies after Generation so that the Right endpoint is taken for update. The wizard Always only suggests the last created Service. Also custom namespaces seem to be set to Default after reopening the visualstudio. With this fixed your addin would be extremely useful because it supports entering of user credentials which the Microsoft one does not.

KonstantinZikov commented 5 years ago

Got the same issue when tried to update the proxy. In my case there were two services.

slnetgit commented 5 years ago

I made some Corrections to some of the files and with the corrections it works for me for odatav3 and vs2017 /2019.

CorrectionsUnchase.zip

the Problem has been that the wizard had read the data only from the settingsfile instead of - when updating - from the config file. also there had been a Problem when finishing the wizard immediately without visiting the advanced page when updating the Service. I also added the check for untrusted certificate when connecting to ssl Service .

I did not test this for odatav4 or the extensions because i do not Need this functionality at the Moment

unchase commented 5 years ago

@slnetgit, thank you for your comments and help. Could you make your corrections in the form of a pull request, so that I do not have to make corrections manually.