Does Spring support SharePoint?
In my Spring Application, i would like to SAVE data in ShaePoint.
In another (java) application of ours, we are using CAML to read/update the data in SharePoint.
Do you think I should use the same(CAML) or does Spring provides any APIs which makes my job easy.
Thank You :)
EDIT: Its SharePoint 2003 and WSS 2.0
Using your Java application you should be able to send XML to the SharePoint webservices. Check this link for the WSS 3.0 web services SDK: WSS 3.0 Webservices SDK (MSDN)
AFAIK SharePoint should also support HTTP GET/POST for reading/writing data. However, in my own experience, reading/saving data from Java to SharePoint usually involves problem at the authentication level. In fact SharePoint usually uses NTLM authentication, which is hard to implement in Java. I did some experiments in the past using HttpClient and implementing NTML authentication as described here, which requires jCIFS.
Another quicker, but dirtier, option is the following. Since SharePoint ultimately stores files on the file system, just expose that path as a Windows UNC Path, and make it available from the machine where your Java application runs. Then, Java can just open a File on the UNC Path in the usual way, and everything is transparent for you application (A UNC Path will look something like \\machine-name\path\to\store). This is not very elegant, and possibly not very secure.
Here is the download link for WSS 2.0 WSS 2.0 SDK Download
Related
Hello stackoverflow'ers
we are currently faced with the task to support Single Sign On in our Java based web service.
The setup is like this: Linux server running Apache as a proxy -> Jetty -> Java web service.
All of this in a Windows Domain with Windows workstations as clients accessing the web service through their browser (mainly IE, some firefox).
The SSO will go through the Windows AD DC utilizing Kerberos through SPNEGO.
From what I have gathered it would be possible to implement the SSO either step of the way, in Apache, in Jetty or in the Java Code itself.
What I haven't been able to figure out so far is which approach makes the most sense in the given environment.
We obviously need to access the REMOTE_USER one way or another later on to perform further authorization in our application, but this is the only real requirement we have.
So what are the actual pro's and con's of implementing the SSO / SPNEGO on the Apache level vs. the Jetty level vs. in our own software - if there are any ?
Any help would be greatly appreciated!
Enjoy your day,
Tom
https://github.com/michael-o/mod_spnego/ for Apache Web Server and you are done.
I'm planning to setup an Enterprise application where the Java standalone client can upload and download .doc and .odt documents from an application server (WildFly). I'm evaluating different solutions such as:
Using a Servlet as bridge to upload documents and download using an HttpConnection.
Using a REST Web service to upload and download the document
Using an EJB and passing the document as argument and returning the document from the EJB call
I think all of the above solutions should somehow work, but which is more fit for a Desktop application, which also needs some level of authentication during the communication?
Thanks
I agree all of the above solutions should work, however instead of using plain Servlets, why not using HttpClient libraries from Apache which make fairly simple to upload and download files ? There is even a library written on the top of HttpClient which is named Awake file which is opensource and allows secure upload and download of documents from Java Desktop applications and Android clients as well.
Hope it helps
I'm looking for a way to write a Java application interacting with an MS Project Server 2010. I've read that a web API exists for MS Project Server, but could find no documentation on it. All the examples I've found so far use some C# library hiding all the API calls.
I'll be thankful for your advice on what tech to use to make this interaction possible.
There is no Java API for Project Server.
Project Server API is based on SOAP web services, but it uses non-standard data structure .NET DataSets to exchange data with clients. And actually the only problem - there is no implementation of the DataSets for Java.
The most common solution is to write a proxy web service using .NET which converts the DataSets to something supported by Java and write a Java client which works with the proxy.
We are currently working on a project which includes Mobile Apps and a front-end website. The backend server has already been built and running as Java Application under Tomat, which support all the APIs.
I am wondering, if a front-end website could be built under same domain or across domain, and calling the same APIs from the backend server? like what Mobile App does?
By the way, all the front-end does not need to communicate with database, the data will be retrieved through server APIs.
I only done mobile apps, and a web greener, if there is anything misunderstanding, please comment, thanks:)
Update
Is it possible to use WordPress or Drupal to build this front-end website? or should I built myself with pure html?
I am wondering, if a front-end website could be built under same domain or across domain, and calling the same APIs from the backend server? like what Mobile App does?
Short answer: Yes.
Slightly longer answer:
Provided that the front-end web pages don't include or generate any URLs that refer to the backend site, there should be no cross-site issues. If possible, this is the architecture you should aim for.
If you do need the front-end web pages to include backend URLs1, then there are ways to deal with this ... is the user's web browser supports the relevant technologies; e.g. CORS.
1 - ... and the browser needs to be able to resolve / fetch them.
If the backend is exposed as webservices, a front end webapp can call those services via ajax if they are in the same domain. If they are cross domain, it gets a little trickier because of the Same Origin Policy (there are techniques like JSONP and CORS to help with that).
We have Oracle Hyperion Master Data Management (aka Data Relationship Management) installed along with it's Web Service API, which is essentially an EAR file deployed on WebLogic. A built-in server side security policy has been attached to this web service. We have a .NET client which needs to speak to this Web Service endpoint, but we are not really sure how to set the client side security policy as defined by Oracle.
Versions used - DRM: 11.1.2.1; WebLogic: 10.3.4
I'm looking for pointers (& sample code if possible) on how we can achieve this.
Thanks.
I got the solution for this from http://download.oracle.com/docs/cd/E17904_01/web.1111/e16098.pdf. Section 5 in that document speaks of how to export the certificate from WLS and import the same into the .NET client app along w/ other config as specified in the document. Hope this helps.