.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Why would you expose WF directly over WCF?

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :Windows Application
Hi,I am a newcomer to WF.  I never used WF in 3.0/3.5 and I've only played with WF 4.0 for about a day.  I am designing a system where workflow will be integral to its behaviour.Typically when I design a service I have a seperate layer for the service with its own set of contracts (Request/Response message contracts + the actual service representations of domain members), part of the responsibility of the service is to translate the service contracts into implementation (domain) objects and then call through to the implementation layer to perform the specific operation, with inversion of control handling the retrieval of the transformation objects and deciding the implementation to call.  I like this approach because it de-couples the implementation from the service and in true enterprise fashion if I were to have different services for different clients any changes made to the service would not necessarily impact the implementation, and vice' versa.Ok, so with WF I have two options.  The first option which is the one I am leaning towards at the moment is to continue with this pattern, and just inside the implementation invoke the WF.  The second option is to take something that WF supports out of the box and expose my WF's over WCF.  But what are the benefits?  Saving some development plumbing effort at the expense of coupling?What is cons

View Complete Post

More Related Resource Links

Using jQuery to directly call ASP.NET AJAX page methods

Here I am looking to explain how to call page methods using jQuery. Using jQuery to directly call ASP.NET AJAX page methods

Data 2.0: Expose And Consume Data in A Web Services World


The goal of the ADO.NET Data Services Framework is to create a simple REST-based framework for exposing and consuming data-centric services easily.

Elisa Flasko and Mike Flasko

MSDN Magazine August 2008

Attack Surface: Mitigate Security Risks by Minimizing the Code You Expose to Untrusted Users


In this article, Microsoft security expert Michael Howard discusses the cardinal rules of attack surface reduction. His rules - reduce the amount of code executing by default, reduce the volume of code that is accessible to untrusted users by default, and limit the damage if the code is exploited - are explained along with the techniques to apply the rules to your code.

Michael Howard

MSDN Magazine November 2004

C++ and ATL: Use ATL Server Classes to Expose Your Unmanaged C++ Code as an XML Web Service


Throughout this issue, you'll read all about the promise of Web Services and how the .NET Framework enables Web Service development. Many people will also be building their Web Services atop C++ code and frameworks like ATL Server, particularly when performance is paramount. In this article, the authors show how fully functional Web Services are built using ATL Server and Visual Studio .NET. Beginning with unmanaged C++ classes, they add ATL attributes that make the code work over HTTP.

Kirk Fertitta and Chris Sells

MSDN Magazine December 2002

C#: XML Comments Let You Build Documentation Directly From Your Visual Studio .NET Source Files


C# allows developers to embed XML comments into their source files-a useful facility, especially when more than one programmer is working on the same code. The C# parser can expand these XML tags to provide additional information and export them to an external document for further processing. This article shows how to use XML comments and explains the relevant tags. The author demonstrates how to set up your project to export your XML comments into convenient documentation for the benefit of other developers. He also shows how to use comments to generate help files.

J. Andrew Schafer

MSDN Magazine June 2002

Office XP: Build a Custom DLL to Expose Your Objects and Services Through Smart Tag Technology


Smart Tags is a new technology delivered with Office XP that makes it easy for users to complete common tasks on familiar and relevant data regardless of the application they are using. Microsoft provides tools to make it easy to roll out simple Smart Tag applications using XML as a backbone. The Smart Tag SDK provides the detail needed to build a COM automation server for Smart Tags in Visual Basic or Visual C++. This article brings the reader through the SDK to outline the process of building a Smart Tag DLL using the tag recognizer and the action provider to create customized user experiences.

Paul Sanna

MSDN Magazine January 2002

SOAP Toolkit 2.0: New Definition Languages Expose Your COM Objects to SOAP Clients


In SOAP Toolkit 2.0, the Services Description Language (SDL) has been replaced with the Web Services Description Language (WSDL) and the Web Services Meta Language (WSML). WSDL and WSML files describe the interfaces to a service and expose COM objects to SOAP clients. This article describes a custom tool, IDL2SDL, which takes an IDL file and produces WSDL and WSML files without waiting for a DLL or TLB file to be generated. Also shown is a customized development environment in which WSDL and WSML files automatically reflect the changes to IDL files.

Carlos C. Tapang

MSDN Magazine April 2001

Say Goodbye to Quirky APIs: Building a WMI Provider to Expose Your Object Info


Windows Management Instrumentation (WMI) is the Microsoft implementation of Web-Based Enterprise Management (WBEM), an industry standard for managing computers. WMI exposes system information in accordance with the Common Information Model (CIM), also an industry standard. You need a WMI provider to expose system information to WMI to manage applications and devices. This article offers an in-depth discussion of how to write WMI providers using the WMI provider framework, and how to optimize performance.

Kevin Hughes and David Wohlferd

MSDN Magazine May 2000

Uploading documents directly to record center libraries in MOSS


Hello all,

We have several pdf documents that are records and we want to maintain them in record center. These documents were not part of any collaboration sites. They are all in a shared folder. So there is no audit history and version history for these documents which is typical of any collaboration area documents.

The question I have is, will there be any disadvantages of directly uploading the document to record center library instead of setting up routing rules and submitting the document using OfficialFile.asmx.

I have noticed that when we submit a document using Send To, Record Center's default router renames the file and makes it a unique file name by appending _uniqueId. In my case, all the files are uniquely named and I am not worried about file name clashes.

Is it advisable to directly upload the documents to record cente

Workflow doesn't complete when a task is updated directly from an infopath form.

I have an approval workflow that creates a task for a group to approve or reject an InfoPath form. But if a member of the group opens the form and updates the task from there, it doesn't complete the workflow. It only completes the workflow if they go to the actual task and update it from there. Does anyone know how to fix that?

How can I export the crystal report to PDF directly?


I am developing web application using csharp on visual studio 2008.I am able to generate  reports, but I want just to export or generate reports in pdf only. How can I achieve this?
The code I am using is below. But it is not working. Please help

     myClass = new Dbcon();

        this.conn = new System.Data.OracleClient.OracleConnection();
        this.conn.ConnectionString = "user id=HRddd;data source=XE;password=cfvvv";
        //Database Connection
        ConnectionInfo ConnInfo = new ConnectionInfo();
            ConnInfo.ServerName = "";
            ConnInfo.DatabaseName = "XE";
            ConnInfo.UserID = "HRddd";
            ConnInfo.Password = "cfvvv";
        // For Each  Logon  parameters
        foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo)
            cnInfo.ConnectionInfo = ConnInfo;


        //CrystalReportViewer1.ReportSource = oRpt;
        if (bool.Parse(myClass.table_exists("COUNTVIEWDE", conn).ToString()) == true)
            myClass.DbNonQuery("DROP VIEW COUNTVIEWDE", conn);
         sql = "CREATE VIEW COUNTVIEWDE AS " +

Basic Question on .NET CLR in SQL - Calling a function directly?

Hello, I have been reading up on CLR + SQL integration - My aim is to do an e-mail validation by calling RegEx functionality provided by the CLR.However from what I read and if I understand correct - I would need to create a .NET assembly and load it. I was wondering if there is an option to invoke .NET functions directly from SQL [e.g like create a function and access the .NET classes] . ?C# Fan! ananda84(at)gmail(dot)com

Expose DataTable from WCF service, all Generic lists convert to arrays

I added a method to a .Net 3.5 WCF web service that returns a DataTable.  Other methods in the web service return Generic lists and/or take Generic lists as parameters.  When I update my reference to the altered web service from my client application all generic lists used as parameters or return types from all methods in the web service are converted to arrays.  In my service reference settings I have selected "System.Collections.Generic.List."  Apparently this setting has no effect when a web service returns a DataTable? Is there any way to prevent this from occuring? Steps to reproduce: Create a web service with methods that return Generic lists and/or take Generic lists as parameters. In a client application reference the web service and select "System.Collections.Generic.List" as the collection type.  Verify that return types/parameter types are generic lists. Add a method to the web service that returns a DataTable.  In a client application update the service reference. Note that all Generic lists (either as return types or method parameters) have changed to arrays.  This occurs even though the collection type service reference setting remains as "System.Collections.Generic.List".  Tom Regan

Retrieve cube data directly from Relational database - is this possible?

I have a cube created in SSAS R2 2008. Now i would like to retrieve some data from this cube, using MDX language, and then to process it in Relational SQL database! Is this possible? I am new in SSAS, please help!  

Email (*. msg) open directly in SharePoint?

Hi, I have the following problem. In SharePoint are different types of files stored (*. docx, *. zip, ...). For all types of files automatically open the programs (Word 2010, 7-Zip). And now the problem. Mails in SharePoint (*. msg) will not open in Outlook. It can only download the file. Is there a possibility that the files are open *. msg directly in your mail program.

Transform a model's positions directly

Hi; I'm new to WPF, and I'm trying to understand the underlying architecture, so please correct me if I'm wrong: As far as I know, there are three possibilities to dynamically transform a GeometryModel3D during runtime: a) Set the model's Transform-property to a Transform3DGroup once, to which you add new / duplicate Transformations. b) Cast the model's Transform-property as a MatrixTransform3D and multiply its matrix with the Value-property of a Transformation (which i guess is pretty much case (a) ) c) Leave the Transform-property as a identity matrix and instead transform the model's Geometry.Positions property directly (provided you use a MeshGeometry3D) like such: int i; MeshGeometry3D mesh; mesh = (SomeModel.Geometry as MeshGeometry3D); for (i = 0; i < mesh.Positions.Count; i++) { mesh.Positions[i] = SomeTransform.Transform( mesh.Positions[i]); } On first glance, option (c) seems like the best (though not most intuitive) choice, especially when you need the actual positions of the model(s); for example to calculate hit-detection. Is there another way to easily access a model's current, transformed position(s)? And why does WPF transform a model's own space instead of just the actual coordinates? Kind regards, Frank

How to expose an enum type to a client via WCF if it isn't used as a param type in any service oper

Hi,   I want to 'expose' an enum type from my server via WCF so that my client can access it. This happens automagically if I use the enum as a parameter type within a service operation, however, what if the particular enum isn't part of any service operation?   In other words, I've defined serveral enums within my Server that are quite useful to my client (even though they don't appear in any of my paramter declarations for the service operations).   The only way I can get this to work is simply create dummy service operations that contains these enum's as arguments. The MEX page then exposes these types for my client to use, but this seems a bit naff.   Thanks   Paul.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend