We recently upgraded an application that that contained web services using the WSE 2.0 to .NET 3.5. When we converted the project in Visual Studio 2008, It did not mention anything about the removing and/or modifying the WSE 2.0 namespaces. Here is the basic architecture of the web services in the .NET 1.1 project.
Web Service Source Code:
[WebService(Namespace="http://tempuri.org")]
public class MyWebService : BaseWebService
{
//Do some stuff
}
BaseWebService Source Code:
using Microsoft.Web.Services2;
using Microsoft.Web.Services2.Security;
using Microsoft.Web.Services2.Security.Tokens;
namespace MyNameSpace
{
public class BaseWebService : System.Web.Services.WebService
{
public BaseWebService()
{
if(RequestSoapContext.Current == null)
throw new ApplicationExcpetion("Only SOAP requests are permitted.");
}
}
}
During the conversion, the BaseWebService.cs class was excluded from the project and the WSE2.0 namespaces were removed from the class.
Have anyone else experiences any issues with trying to upgrade a web service from .NET 1.1 using the WSE to .NET 3.5?
This is related to the previous question I had regarding a client consuming the upgraded web service: