InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

New Options for .NET-Java Web Services Interoperability

Posted by Boris Lublinsky on Mar 25, 2008

Sections
Architecture & Design,
Development,
Enterprise Architecture
Topics
Interop ,
.NET ,
Java ,
Java plus .NET Integration ,
SOA
Tags
JMS ,
Apache Axis ,
WCF ,
Websphere ,
Microsoft

When it comes to web services interoperability between .NET and Java, the choice used to be limited to SOAP over HTTP. This became even more limited with introduction of .NET 3.0 because only BasicHTTP binding in .NET provides direct interoperability with Java Web Services.

Two new options recently became available in this area – WebSphere MQ (WMQ) and ActiveMQ transports can now be used for building interoperable web services between Java and .NET. Moreover, reliable messaging for .NET is now extended. In addition to MSMQ, both WMQ and Active MQ can now be used as reliable transport for .NET Web Services.

The WMQ solution is based on the Custom Channel for IBM WMQ for Windows Communication Foundation available from IBM’s AlphaWorks, with a new version posted on March 14th. This product enables WMQ to be used as a custom channel within the Windows Communication Foundation (WCF) framework (as available in the .NET Framework 3), in the same manner as the built-in channels offered by Microsoft.

Messages are formatted according to the SOAP over JMS implementation available in WMQ v6.0, enabling applications to communicate both with services hosted by WCF or by the WebSphere SOAP over JMS service infrastructure, including WebSphere application server and CICS.

The current implementation is intended as a proof-of-concept to help better understand the product requirements in this area (and is not suitable for use in a production environment). The plans for productizing this implementation are not yet finalized.

The custom channel is built using the extensibility framework provided within the Windows Communication Foundation, which allows it to be integrated and used within the framework in the same way as the built-in transports offered by Microsoft. Service applications can be configured to use the new custom channel in the normal way, with client application being generated using standard tools such as the Microsoft Service Metadata Utility Tool (Svcutil.exe). Service metadata descriptions can either be published directly from a running service (provided it is exposed via an additional HTTP endpoint) or using WSDL (Web Service Description Language).

The current implementation supports the core messaging functions with the following restrictions:

  • Support for only one client per service instance for Duplex channel shape.
  • Duplex channel is an extension to the SOAP/JMS implementation provided by WebSphere MQ v6 and as such is only for use between WCF services and clients.
  • Core messaging features only (i.e. no support for more advanced functionality such as transactionality or security)
  • Interop with SOAP/JMS services hosted by the existing SOAP/JMS environment in WMQ v6 (using either the .NET or Java/Axis listeners) is restricted to one-way operations.
  • Interop with SOAP/JMS services hosted by the SOAP/JMS environment in CICS or WebSphere Application Server does not support mixing one-way and request/reply operations within a single contract, a separate contract must be created for each channel shape.

The Active MQ solution is based on the Axis provider for JMS (in Java) and the “pluggable protocol” feature (in .NET). As such it is not packaged as a true .NET custom channel requires more custom programming.

Neither solution is fully productized, but both provide a good base for experimentation with alternative web services interoperability transports.

  • This article is part of a featured topic series on SOA
Interop with .NET 3.5 by Arnon Rotem-Gal-Oz Posted
Re: Interop with .NET 3.5 by Christian Schneider Posted
Re: Interop with .NET 3.5 by Stefan Tilkov Posted
Re: Interop with .NET 3.5 by Vitaly Shelest Posted
  1. Back to top

    Interop with .NET 3.5

    by Arnon Rotem-Gal-Oz

    Actually, it is now much easier to interop between .NET and Java as .NET supports RESTful services
    and you can use http, atom etc which are ubiquitous (you can take a look at a short post I made on the WCF REST options)

    Arnon

  2. Back to top

    Re: Interop with .NET 3.5

    by Christian Schneider

    Simply connecting .Net and Java with Webservices is no big deal. When using http it works out of the box. What this article talks about is using a message oriented middleware to do the connection. This has many advantages over http. For example you can have clustering for free by simply listening with two instances on the same queue. Another advantage is location transparency. When you use http you always have the server name in your url. So when you move your service from one server to another you have to adjust the url in the clients. When using a queue you can simply start an instance of the service on any machine and the clients can connect to it.

  3. Back to top

    Re: Interop with .NET 3.5

    by Stefan Tilkov

    Of course nothing stops you from introducing one level of redirection in the HTTP case, too - either via a registry or through a simple "service document" containing links to the actual resources (or endpoints, if you prefer).

  4. Back to top

    Re: Interop with .NET 3.5

    by Vitaly Shelest

    Such articles that describe .NET/Java (SOA, JMS, MSMQ, WEB, SOAP,etc.) interoperability should be titled as ".NET/J2EE ineroperability". This is a very specific case of .NET/Java interperability that has very huge overhead.

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.