Custom REST Client for Documents4j Server

95 views
Skip to first unread message

dpesc...@gmail.com

unread,
May 4, 2016, 12:29:13 PM5/4/16
to documents4j
Hello Rafael,
in the last few days I have developed some code using your library, but I'm facing some problems with the environment in which my application is deployed.
In particular it's deployed under an old version of jboss 5.1. Under the same machine is installed microsoft word but trying to invoke a LocalConverter I've got some problem as reported here on StackOverflow.

Now I have changed the architecture of my application. I'd like to run a distinct standalone server and I'd like to call it using your RemoteServer class. In this case I've got some problems related with version of http-core and http-cliente used by jersey 2.6 that are newest compared to the version under jBoss, so I'm not able to use your RemoteConverter.

According to you should it be possible to write a custom REST client different from RemoteConverter that calls directly from URL the service of the standalone server? In this case what should I pass to the server to invoke this REST service and how to encrypt the input file?

Can you give me some information on this?

Thanks in advance!
Daniele

Rafael Winterhalter

unread,
May 5, 2016, 6:12:31 PM5/5/16
to dpesc...@gmail.com, documents4j
Hello,
I have answered your question on stack overflow. I would recommend you to shade the dependency to avoid versioning conflicts, not to reimplement it.

The documents4j server supports SSL/TLS for encryption. If you want to run a manual client, I would use a HTTPS connection for connecting. documents4j uses the Java security API for certificates and trust stores.

Best regards, Rafael

--
You received this message because you are subscribed to the Google Groups "documents4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to documents4j...@googlegroups.com.
To post to this group, send email to docum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/documents4j/c61cadab-3afc-447e-ba30-aee1d92fb03e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dpesc...@gmail.com

unread,
May 9, 2016, 6:05:02 AM5/9/16
to documents4j, dpesc...@gmail.com
Hello Rafael,
thanks a lot for your quick answer. 

I did not know maven shade plugin, it should be a great trick for my issue. Now I've developed a simple custom client for your standalone server, but I'm going to follow your suggestion and to use shaded artifacts including your client that's obviously more powerful of mine.

The following step I'm going to develop is to wrap you standalone server in a MS-Windows service after creating the Desktop folder.

Your lib works like a charm, great job!

Daniele
Reply all
Reply to author
Forward
0 new messages