eulexnet / eulex.net Goto Github PK
View Code? Open in Web Editor NEWCross-platform .NET library to retrieve EU legal data from the EUR-Lex web site.
Home Page: https://eulex.net
License: MIT License
Cross-platform .NET library to retrieve EU legal data from the EUR-Lex web site.
Home Page: https://eulex.net
License: MIT License
If the expert query has an incorrect syntax, currently a System.AggregateException gets thrown to the calling code.
We should have a nicer exception with the error info from the server.
I am getting exception
EULex.SimpleSOAPClient.FaultException: 'A fault was returned by the server'
The code is as follows
using (var client = new Client(username, password))
{
var request = new SearchRequest
{
ExpertQuery = "TI ~ privacy",
SearchLanguage = Language.en,
PageSize = 10,
Page = 1
};
var response = await client.DoQueryAsync(request);
}
.net version 4.5.1
Hi! Thanks for this library, I'm hoping to use it to pull lists of Directives, Decisions, and Regulations from EULex... hope it works for those types of documents, I haven't tried it yet.
I wasn't able to find this on NuGet, so I thought I'd suggest that it be added there as a package. I'll just compile and use it locally, but having it available in a package manager will make it far easier to keep up with over time.
Can you create NuGet package with latest version of project?
Thanks!
.NET 7 has now been released, and it is only compatible with libraries compiled for .NET Standard 2.0+, .NET 6+, or .NET Framework 4.6.2+. This library only targets .NET 5, so it is now incompatible. Details:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/7.0/old-framework-support
I was able to upgrade the library to target .NET Standard 2.0, which is still compatible with .NET 5 and 6 (and various framework versions) but extends that support to .NET 7 as well, I'll send a PR.
See description of the change at:
https://eur-lex.europa.eu/content/help/data-reuse/webservice.html#XML-notice
Exception appears on this line of code
var response = await client.DoQueryAsync(request);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.