Giter Site home page Giter Site logo

Comments (5)

gem81 avatar gem81 commented on June 11, 2024

as a result, functions are not created.

from unchase.odata.connectedservice.

unchase avatar unchase commented on June 11, 2024

Before code generation, did you check options "Use network credentials for connecting to the endpoint :" and/or "Use web-proxy for connecting to the endpoint :" along with "Use web-proxy credentials for connecting to the endpoint :"?
What generation method did you use: "Inner" or "SimpleOData"?

What endpoint did you use?

from unchase.odata.connectedservice.

gem81 avatar gem81 commented on June 11, 2024

Before code generation, did you check options "Use network credentials for connecting to the endpoint :" and/or "Use web-proxy for connecting to the endpoint :" along with "Use web-proxy credentials for connecting to the endpoint :"?

Use network credentials for connecting to the endpoint: checked
Proxy not checked

What generation method did you use: "Inner" or "SimpleOData"?
Both

What endpoint did you use?

"http://192.168.1.110/ut_kaskad/odata/standard.odata/"

If i try to import whith functions, its generate the same proxy class, but i see error exception
/Unchase.OData.ConnectedService/CodeGeneration/V3CodeGenDescriptor.cs
if (this.ServiceConfiguration.IncludeExtensionsT4File && this.ServiceConfiguration.GenerateFunctionImports)
{
try
{
if (EdmxReader.TryParse(XmlReader.Create(ServiceConfiguration.Endpoint), out var model, out var parseErrors))
functionMethods = FunctionImportsHelper.GetFunctionImportsCode(model, proxyClassName, ServiceConfiguration.Endpoint.Replace("$metadata", string.Empty), this.ServiceConfiguration.FunctionImportsGenerator);
else
{
foreach (var error in parseErrors)
await this.Context.Logger.WriteMessageAsync(LoggerMessageCategory.Warning, error.ErrorMessage);
}
}
catch (Exception ex)
{
await this.Context.Logger.WriteMessageAsync(LoggerMessageCategory.Error, $"Error: {ex.Message}.");
}
}

from unchase.odata.connectedservice.

gem81 avatar gem81 commented on June 11, 2024

It seems that at the time of generating functions, the context loses authorization, trying to make an additional request to the server.

from unchase.odata.connectedservice.

unchase avatar unchase commented on June 11, 2024

Fixed in last commit (v 0.3.14). Please, check the issue.

from unchase.odata.connectedservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.