I am trying to develop an api, I would like to put up a website similar to apache common lang's.
Is there any open source website can use for this just like wordpress?
Apache Common Lang use maven-site-plugin.
If you project use maven, check out this: http://maven.apache.org/plugins/maven-site-plugin/
Related
I’m developing my datasource plugin based on simple-json. I want to use the library angular-ivh-treeview, but I do not understand how to use it in the plugin. Can someone help me?
To use an external JavaScript lib in a plugin, you have to include it in the plugin code. JavaScript libraries in node_modules are only used at build time and are not included in the output.
To take an example, here is the Plotly panel plugin that includes the Plotly lib in a subdirectory named lib:
https://github.com/NatelEnergy/grafana-plotly-panel/tree/master/src/lib
and then uses it here:
https://github.com/NatelEnergy/grafana-plotly-panel/blob/master/src/module.js#L8
Another example - the GeoLoop plugin that includes the mapboxgl library:
https://github.com/CitiLogics/citilogics-geoloop-panel/blob/master/src/geoloop.js#L3
I create a Editor gwt project, which works fine.
Now I want to connect the editor's data to a db, so I use a 3rd party database helper tool for that.
I added the db tool jar into my gwt project, no complaint. I also wrote the db related codes using this tool.
But I just can't run my gwt project in the web page.
The error info in gwt console for my web browser is can't find the source/.xml for the db helper tool, at least something like that.
How can I manage this?
Thanks
You have to use the DB-Tool on the server-side of the code and retrieve the data to the client via an RPC!
See: https://developers.google.com/web-toolkit/doc/latest/tutorial/RPC
I can't seem to find a idiomatic way to access FTP files from a Scala library.
Are there any mature libraries for this in Scala, or whould the prefered way be, to use the Java libraries for instance the Apache FTP client?
Thanks in advance.
There doesn't seem to be a dedicated Scala library.
The only scala project managing FTP access is Scalanet, but:
it hasn't been updated since 2009
it simply encapsulates the org.apache.commons.net.ftp classes from the Apache Commons Net™ library (as seen in the FTP.scala class)
I wanted to know if a new project in eclipse we could import the jar Alfresco and used for example by creating just a jsp with a field of research that would seek a metadata ..?
Thank you.
I think you got it wrong. Alfresco is not library you import to your project. Alfresco is a complete Enterprise Content Management system. For more information visit http://wiki.alfresco.com/wiki/Main_Page
But I wish it was that simple.
I think this way to do it:
Install alfresco from scratch... as standalone project.
Then develop a webscript using the Alfresco Web Script API, that allows you to create a restful service. Your web script can preform lucene queries to search metadata.
Create your jsp form.
Then you can use Ajax to get data from your restful service.
Can anyone recommend a good (preferably open source) tool for creating WSDL files for some soap web services?
I've tried playing around with some of the eclipse plug ins available and was less than impressed with what I found.
As mentioned above, probably the easiest thing to do is use Apache CXF or Apache Axis2 to automatically generate your WSDL for you.
If you have downloaded the Java EE version of Eclipse, you should be able to create a Dynamic Web Project with the Axis2 facets. If you create a simple Java class in the project, you should be able to right-click on it, and choose Web Services->Create Web Service. That should automatically create an Axis2 service for you.
WSDL would then be available from some URL like: http://localhost/axis/{yourservice}?WSDL
One of the more interesting tools for bypassing all the associated headaches with WSDL is the XSLT script created by Arjen Poutsma (the lead developer of Spring Web Services):
http://blog.springframework.com/arjen/archives/2006/07/27/xslt-that-transforms-from-xsd-to-wsdl/
Basically it allows you to develop simple schemas that correspond to your desired operations (i.e. <BuyItem> and <BuyItemResponse>) and then generate all the associated WSDL crap from the XSD. I highly recommend it if you are interested in 'contract-first' web-services but the idea of using a WSDL as the starting point for that contract makes you feel green.
I am tired of generating massive amounts of files on the filesystem just to transport over SOAP. Now I use Apache CXF for both WS producers and consumers and let it handle the WSDL/stubs generation dynamically.
Depends on which language you're working in, but if you're active in Java then I'd recommend looking at Apache CXF. It's a pretty solid framework for publishing java code as a SOAP web service. It also includes a tool for directly generating WSDL files: java2wsdl
Nice tool can be found as SAAS solution at www.cofiq.com. Its strong point is the datamodel repository from which WSDL and REST JSON can be generated and impact analysis on datamodel changes.