Reputation: 4751
We have WSE web services and now our customer wants all the services available on Windows Server 2008. But Win 2k8 does not support WSE.
What could be quicker and easier solution to this problem? Writing WCF services for each web service is going to be time consuming. Or does anyone on this forum knows solution to it too?
I know this is quite odd question but I want to hear from experts and this would be quite common difficulty people would have faced.
Upvotes: 0
Views: 401
Reputation: 161821
To a large extent, an ASMX or WSE web service looks like the following:
[WebService]
public class MyWebService : WebService
{
[WebMethod]
public ReturnType MyWebOperation(RequestType request)
{
// Some code here
}
}
The corresponding WCF service would be:
[ServiceContract]
public interface IMyWebService
{
[OperationContract]
ReturnType MyWebOperation(RequestType request);
}
public class MyWebService : IMyWebService
{
public ReturnType MyWebOperation(RequestType request)
{
// Same code here
}
}
That assumes, of course, that you don't do anything in the code that is specific to ASMX or WSE.
Upvotes: 1