Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by lamy

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...