CodeSnip: Virtual Web Services Through Pattern Matching
page 3 of 4
by Rajesh Toleti
Feedback
Average Rating: 
Views (Total / Last 10 Days): 15866/ 98

Step 2: Build a Proxy Class With the AboveWSDL File

Now we have to create a vb.net/c# file using the above WSDL file. Save the above WSDL files as Taryaservices.wsdl. Copy the WSDL file to the directory where you have your WSDL.exe; from the command prompt type the following to generate a vb.net file:

wsdl /l:vb Taryaservices.wsdl

Then it creates a vb.net file with name TaryaService.vb. This name is taken automatically from the WSDL service name. Now copy this file to the directory where you have the Visual Basic .NET Command Line Compiler (vbc.exe). Type the following from command prompt:

vbc / t:library /r:System.dll,System.Web.Services.dll,System.Xml.dll TaryaService.vb

 

Now that you have created a proxy class with name TaryaService.dll, copy this to your application /bin directory.

 


View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 1 and 7 and type the answer here:

User Comments

Title: great   
Name: Saif
Date: 4/10/2006 11:01:51 AM
Comment:
Thank you
Title: Good article   
Name: Chandan
Date: 12/13/2005 4:27:01 AM
Comment:
The article is good, and it gives a very good description about the virtual web service
Title: Great article   
Name: Kay Lee
Date: 11/29/2005 10:01:14 PM
Comment:
This is a great artice, and I like that you wrote it up. I just wanted point out that this capability may or may not become legally irritating. If the site you're leeching is considered a service for sale type of site, it can become a serious problem.

For the readers, please be discrete and courteous in regards to creating Virtual Web Services.
Title: Virtual Web Services Cannot Be Blocked   
Name: Deavon
Date: 11/29/2005 8:19:07 AM
Comment:
Steve Burch:

Unfortunately, there is no way to block a virtual web service; unless you block the content from the end user completely. Anything that can be represented by XML, HTML, RSS, or any other form of non-encrypted data storage can be reparsed and reused.

It is a similar concept to copy and pasting; and then reformatting with customized style sheets; except that, in the form of a VWS, that kind of functionality occurs automatically through compiled processing and parsing of the source file; to generate a SOAP file as the result.

Same data; different way of showing it.

Utilizing .NET's WSDL and Web Service architecture; it is easy to expose the data as a WSDL function; which is exactly what is occuring here.
Title: Nice one   
Name: H.
Date: 11/28/2005 2:43:29 AM
Comment:
Cool
Title: Virtual web service -- blocking?   
Name: steve burch
Date: 11/27/2005 5:35:01 PM
Comment:
you should show, if possible, how a web site can block someone from doing this.
Title: scan and read scriptedinfo   
Name: case
Date: 11/25/2005 1:54:18 AM
Comment:
How do you read a letter that's in scriped.
Title: Good Article   
Name: Pavan K
Date: 11/23/2005 5:44:54 AM
Comment:
Its a great article, as it gives complete insight into virtual web service. Its a highly recommended reading.

Product Spotlight
Product Spotlight 
Learn More
.NET Tools
asp.net shopping cart
asp.net chart control






Ads Powered by Lake Quincy Media
Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2008 ASPAlliance.com  |  Page Processed at 8/21/2008 7:18:58 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search