wcf - .net 3.5 client and .net 4.0 routing service - wcf

is it possible for a .net 3.5 application to communicate smoothly with .net 4.0 routing wcf service?
should i get in to any problems when trying to perform this operation?
can i work with the simple channel factory?

Depends what you mean by communicate.
The application will be able to call the service over WCF.
It will not be able to call the dll directly, the dll runs in an application pool and the application pool is tied to a specific version of the framework.

Related

Invoking Windows Workflow Service using HttpClient?

I have Windows Workflow Service developed in 4.6.2.
Is it possible to Invoke Window Workflow Service using HttpClient?
I have client application in .Net Core, and we cannot create WF service proxy in .Net Core application. (It's not supported currently)
However .net core has HttpClient class and I would like to know if can use HttpClient to invoke methods of Windows Workflow Service?
There is a VS extension for generating your proxy https://blogs.msdn.microsoft.com/webdev/2016/06/26/wcf-connected-service-for-net-core-1-0-0-and-asp-net-core-1-0-0-is-now-available/

How to Use the WCF Service developed in .Net 4.0 in the Application developed in 2.0 or lower version?

I came across with this situation. I have one already developed Application in 2.0, Now in this application i want to use one WCF Service that is developed in 4.0. How can i do this?
I tried the following
1. Regular Method Add the Service Reference and then use that. It didn't work for me.
2. I googled it and i got one more method, using svcutil.exe, but i dont have svcutil.exe with 2.0.
Waiting for the response.
Thanks in advance.
Windows Communication Foundation (WCF) was first introduced to the .NET Framework as part of .NET 3.0. It's not available with .NET 2.0.
If the WCF service exposes a SOAP endpoint then you may be able to use it through the Web Service Extensions (WSE) that were published for old versions of Visual Studio. See here: http://www.microsoft.com/download/en/details.aspx?id=10854 for details.
If you want to use a service written in .Net 4 with a .Net 2.0 project, you should be able to use basic http binding. That should allow it to interop with a client that knows nothing about WCF. It's similar to using an old school .asmx web service.

consuming WCF service in .net 2.0 windows application

I'm new in WCF service and I need to consume the WCF service from my client for my current .net 2.0 windows app. I successfully added the WCF service as web reference in my .net 2.0 application but when using the web method of the service it took long time to execute the method and in the end my application is not responding. Base on the request in fiddler, the request has been timed out. My client provides me a user name and password but I don't know where to use it. Base on the wcf web service wsdl of my client, it uses WSHttpBinding.
I also created a sample .net 4.0 windows application and added the service as reference but still cannot use the web method. I check also the request in fiddler and gives me a response error "The request for security token could not be satisfied because authentication failed.".
Please help. I need to consume the WCF service using my existing .net 2.0 application.
Thank you very much in advance!
If you want to consume your WCF service from .NET 2.0 via adding web reference you must use BasicHttpBinding - that is only backward compatible build-in binding (except custom defined binding) with ASMX based client.
Your exception in case of .NET 4.0 test complains about security token - WsHttpBinding uses Windows security by default. It is hard to diagnose the problem further because you didn't provide enough information.

Is is possible for a Compact Framework 2.0 App to consume a WCF Web service

We are in the process of creating a new WCF web service (WCF service that has an basicHttpBinding Endpoint) to carry out some of our business logic.
The web application connects not problem at all, however our legacy Compact framework application doesn't seem to see the service at all.
Are we on to a loser here and should we just revert to ASMX web service (the Compact framework cannot be upgraded) or is there a way around this?
Yes you can but you need to treat it as a soap service not a WCF service with all the .net 3.5 goodness. Start up your web service and create web service reference in your .net 2.0 CF and use the auto generated code.

When I publish a WCF rest service in IIS the services do not work?

Im using WCF REST 4.0 meaning to say their is no .svc file.. So I have 3 different service classes in one service WCF Rest Application project. And I registered all these services in the Global.asax
What im trying to do is that I have a set of Business Functions from a lower framework e.g: .NET 1.0/2.0 where in i use datasets and not call basic add/update/delete entity function unlike in the newer releases. So I wanted to ask if this type of match would work in .Net 4.0 or is their any other reason for this?
Thank you
If your services work in Web Development server than they have to work in IIS. What version of IIS do you use? Remember that extensionless URLs are only supported in IIS 7.x. If you want to use them in older version you have to modify IIS configuration (check this thread). Also make sure that your IIS has properly registred .NET 4.0 and all realted ISAPI. If you installed .NET 4.0 after IIS it is best to use aspnet_regiis.exe from .NET 4.0 folder.