Create web service dynamically

abhinay86

Member
Joined
Aug 20, 2009
Messages
7
Programming Experience
Beginner
Hi guys,

When ever i try to read the wsdl i get error "This stream doesnot support seek operations." at
Dim stream As System.IO.Stream = client.OpenRead("http://localhost:2394/WebSite26/Service.asmx?wsdl")
Is thre anything i am missing here?Can anyone please help me?

VB.NET:
Dim client As New System.Net.WebClient()
Dim stream As System.IO.Stream = client.OpenRead("http://localhost:2394/WebSite26/Service.asmx?wsdl")
' Get a WSDL file describing a service.
Dim description As ServiceDescription = ServiceDescription.Read(stream)

' Initialize a service description importer.
Dim importer As New ServiceDescriptionImporter()
importer.ProtocolName = "Soap12"
' Use SOAP 1.2.
importer.AddServiceDescription(description, Nothing, Nothing)

Thanks in Advance
 
Last edited:
Back
Top