This is the first walkthrough for the WCF Express Interop Bindings extension for Visual Studio 2010. By the end of this walk thru you shall have created and deployed a WCF service that connects to an Oracle WebLogic client.

    Installation:

  1. Download the Visual Studio Extension file from here.
  2. Double click on the extension and chose install
  3. The extension is supported on Visual Studio 2010 Standard and greater.
  4. If you had Visual Studio 2010 open, close it and re-open it.
  5. You can verify the installation by checking your Extension Manager in the tools menu.

    Once installation is complete, It adds two new projects to your New Project Dialog:

    image

    The two new projects, Express Interoperable WCF Service Application (and Library), launch a wizard that take the user through few questions before creating an interoperable WCF service from scratch. You will use this WCF Service to directly connect to a Java client on either IBM, Oracle or Apache servers.

  • Choose an application project and type a name.

    Screen #1: Interoperability Platform:

Simply choose the platform you wish to connect to. Currently the latest versions of all stacks are supported.

  • For now choose Oracle WebLogic.

clip_image001[1]

Screen #2: Main Settings:

Given that we are operating under the best settings discovered during WS-I testing and other efforts that Microsoft underwent during its interop testing. The choice of WS-* feature to enable becomes a single click. This extension assumes the settings of the whitepaper for Oracle and IBM, and leverages the WCF settings we know best work with all four platforms.

clip_image002[1]

Screen #3: Advanced Settings:

This optional screen provides the developer with a chance to enable MTOM, which is required for large binary file transfer over SOAP, and to further refine the selection of security algorithm that meets the organizations needs.

  • Choose MTOM if you intend to transfer large files

clip_image003[1]

Screen #4: Certificate Selection:

No more fiddling with specifying  a certificate! choose a certificate from any of your local stores

clip_image004[1]

  • Click Finish, and wait while the project is created, the dynamic generated Express binding is created and attached to the newly created WCF service is created and configured with the settings you chose.

The output of this wizard is a ready to run WCF Service, that is already configured with all the settings that you would have taken days to figure out if you are new to this. The same settings can be recycled across projects, and further extended by simply inhering the class that contains these settings.

  • Note that the config file now contains a mention of the new bindings:

<bindings>
      <webLogicBinding>
        <binding name="interopBinding" messageEncoding="Mtom">
          <security mode="UserNameOverCertificate" establishSecurityContext="true" algorithmSuite="Basic256Sha256Rsa15" />
          <reliableSession enabled="true" />
        </binding>
      </webLogicBinding>
    </bindings>
    <extensions>
      <bindingExtensions>
        <add name="webLogicBinding" type="Microsoft.ServiceModel.Interop.WebLogic.Configuration.WebLogicBindingCollectionElement, Microsoft.ServiceModel.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4fc38efee625237e" />
      </bindingExtensions>
    </extensions>

 

What you have now is a WCF service configured with the settings you need to connect to a weblogic server, without having to write  a single line of code!

We hope you take this new bindings and enjoy the reduction in time, effort and configuration needed to connect .NET and Java services on premise and on the cloud.  Our future plans are dependent on your feedback. Please drop me a line at Abu.Obeida@microsoft.com.

Thanks,

 

Abu Obeida Bakhach

Interoperability Program manager

Developer Platform Evangelism

Last edited Jun 13, 2011 at 9:21 PM by abub, version 2

Comments

hernanceron Sep 9, 2012 at 9:53 PM 
Do you have any tutorial using Websphere?

blaise Sep 29, 2011 at 12:18 PM 
Great tools! Hope to have a longer tutorial in this.

ADubb Jul 14, 2011 at 7:47 PM 
Thanks!!