开发者

How to smoothly move WSE web services on Windows 2003 server to the Windows 2008 server?

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 service开发者_StackOverflow社区s 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜