CMS external upload of files - java

I am looking for a java based CMS that exposes an API for external file upload.
So for instance I have a Tomcat server with a running CMS. I also have a (standalone) client that needs to add content to the CMS automatically (without user interference).
I already looked into Liferay (using Jackrabbit) but there is no way to upload documents/files from a client.
Does anyone know of a java CMS where this is possible ?
Thanks!
Coenos

If you are ready to take time in coding then you could make use of Liferay webservices to create a client yourself. Liferay exposes its core api as web service, using which you can do most of the things. To see the list of services that Liferay exposes check this url
http://localhost:8080/tunnel-web/axis
Replace localhost:8080 with yours.
To know more about this check out this wiki link
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Web+services+-+Manage+Users,+Organizations,+User+Groups,+and+Roles+via+SOAP

Related

File upload using SOAP

I am trying to create a web application which will allow the user to upload a file. The file will be encrypted and transferred to a web service via SOAP. The web service will carry out simple operations such as 'storeFileToCloud(byte[])' and 'downloadFile(string)'.
So far, using Google App Engine, I have created the web services, however, I'm not sure how to encode the file using SOAP. I've also created the form for the user to upload his/her file, but I'm stuck on what to do after this. Any tips or guides will be extremely helpful.
The tools I'm using include Java, Google App Engine and Eclipse Indigo.
JAX-RPC uses xsd:base64Binary. See the JAX-RPC Spec, chapter 10. You could probably do worse than copying them. Be aware that the size of the data will expand by about 33%.

How to display Glassfish data using Java?

I want to create JSF page which displays Glassfish connections. The web page will be hosted on the server. How I can get this information from Glassfish?
Best wishes
Why not use a 3rd party JMX monitoring tool instead of building your own tool to monitor performance? The Performance Monitor comment above is valid for GlassFish 2.x, but not GlassFish 3.x (Performance Monitor is not available for GlassFish 3.x). If you are using GlassFish 3.x, read on.
Otherwise, the monitoring data you want is available via the RESTful Monitoring API. Here are some resources you can utilize to help you.
http://engineeringnotebook.org/building-a-glassfish-monitoring-client-using-rest/
http://blogs.steeplesoft.com/2010/08/glassfish-administration-the-rest-of-the-story/
http://docs.oracle.com/cd/E18930_01/html/821-2416/gjipx.html#scrolltoc
Also, the RESTful API will render in HTML, JSON, and XML. So, you can begin by perusing the monitoring tree by pointing your browser to http://localhost:4848/monitoring/domain, and the RESTful monitoring will render in HTML.
Also note that you will have to enable monitoring to get to the data you want. The admin guide will show you how to enable monitoring.
Hope this helps.

Developing a web page which invokes web services through CXF

I have already generated the files using wsdl2Java and created the proxy client in JAVA.I am using Apache CXF framework and using Maven as Build Management tool. I can run the JAVA application and consume the service using JAVA. There is no problem with JAVA implementation.
The need is I need to invoke and request the same web service from PHP or JSP file and display the result in PHP or JSP file. I would like to use the present JAVA code. I don't know how to invoke the JAVA code from PHP or JSP page.
Please help me with the solutions.
You have created a web service, so your design should be centered around that. For Java programs (including JSP's) you can use the generated client classes to access the web service. For PHP I would recommend using one of the many SOAP client libraries to process and consume your WSDL. You might want to take a look at wsdl2php, NuSoap, or SoapClient.

Web server java library?

I m looking for a simple java library which would let me make a java web server and share some files. Is there any libraries which would let me achieve this?
Use jetty - the lightweight web server and servlet container.
There is a host of different web servers which all can do what you want (provided it just is allowing users to download files).
A good, small library with a simple-to-get-started method, is the Acme Laboratory Java pages.
http://acme.com/java/software/Acme.Serve.Serve.html
serves the current directory without any fuzz.
You can directly use an Apache WebServer setup for this.

Java Web Service for .NET 2.0 Client on Linux (Fedora)

I'm tasked with creating a Java Web Service for a .NET 2.0 client to consume.
What would your suggestions for the implementation be?
The solution doesn't need to be very heavyweight (don't need a full Java EE container I believe) but what do you think is the best solution for this? I have thought about using Glassfish v2 with JAX-WS annotations (#WebService), and JAXB XML Bindings(e.g. #XmlElement), which I assume the .NET client would be able to consume?
Has anyone tried this scenario?
Would Glassfish be overkill though, since I'm merely using the Web Service as a mechanism for .NET on Windows to communicate to the Linux box, the underlying application is extremely small.
Any suggestions are more than welcome :)
Thanks,
James
P.S. Other notes - would you use Axis/CXF instead of Glassfish? Would you use a servlet container such as Tomcat? etc.
I have used Axis2 and it works.
I had the same problem of making Data Exposing API (Web Service in my case) in Java.
I made the web service using Axis2 and Spring (to access database) and the WSDL created via Axis2 was easily consumed via ASP.NET Application via its Add Web Service Dialog Box and the corresponding Proxy Classes were created easily.

Categories