lamy Posted March 16, 2006 Posted March 16, 2006 (edited) this is how i would check it in 2003 <WebMethod()> _ Public Function Test() As String Dim sc As Microsoft.Web.Services.SoapContext = Microsoft.Web.Services.HttpSoapContext.RequestContext If sc Is Nothing Then _ Throw New System.Web.Services.Protocols.SoapException("Only SOAP requests are accepted", _ New System.Xml.XmlQualifiedName("NotSoapCall")) Return "This is a string" End Function in 2005 i would then import Microsoft.Web.Services3 so i could use SoapContext, but theres no HttpSoapContext that can be found anyone? Edited March 16, 2006 by lamy Quote slow down when you need to hurry, stop when you need to move on, look back when you need to forget, or you might slip and leave sanity
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.