Java To SharePoint Interface – Follow-up

Sorry its been a while since I blogged on this topic (or any topic for that matter).

As you saw in the previous post on this subject, it is possible to interface to SharePoint’s web service interface from a Java client. What I didn’t get into in that post was the extreme grief that you have to go through to parse the XML that comes back from SharePoint. In fact, SharePoint does some stuff with it’s web service implementation that Axis2 didn’t like at all.

The other key issue with this direct interface approach is that SharePoint occasionally puts CAML (SharePoints special XML language) into it’s SOAP responses. Well, Axis2 really doesn’t like that. This became so painful that we decided to look at alternatives.

Some of the alternatives were:

1. Be masochistic and continue with the pain (not preferred option as too time consuming and risky).

2. Look at alternate web service technologies (the option of using JDK 5 based implementations became an option as the client upgraded to J5). A basic prototype of a Java to SharePoint web service interface was tried, but we found this to be almost as painful as the Axis2 implementation.

3. Implement dedicated standards (WS) based custom web service interface in .NET on the SharePoint server, which talks directly to the SharePoint APIs. These custom web services provide dedicated APIs to do only what the client Java application requires (retrieving content from SharePoint).

 

I’m guessing that by now you have already guessed which option we chose? Correct, #3.

By using WCF to create standards based dedicated web services we could provide an interface that Java clients could talk to easily, we could limit these services to just the capabilities we needed and could handle any changes in the SharePoint APIs without affecting the Java client.

Problem solved and lessons learned.

 

Unfortunately, we never did get to proceed with this project, but next time I have to interface from SharePoint from a Java client, I’ll know how to do it the most effective way.

del.icio.us Tags:
Advertisements
  1. Any one got the sharepoint 2010 using java Client. Are any body working on this?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: