Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > dataservice.asmx
 

dataservice.asmx

Hi,

Trying to modify the dataservice coding and no idea how to rebuild a web reference so that a newly created class which is able to access my own tables can be referred in data layer class.
Thk

TT
MigrationUser 1  Friday, May 09, 2003 7:50 AM
If your in Visual Studio, then the best thing is to delete the web reference and recreate a brand new one based on your service.  Otherwise, if you have the project set up perfectly, and the web reference is still intact (this is normally where I have an issue, when using the setup installer, the TaskVisionWS project won't load so I have to create a new one and copy all of the files in and then recreate the web reference to it) you can simply right-click on web references and the context-menu should give you the ability to update your proxy.

If you are outside of visual studio and you are doing a command line build you'll have to be more proactive and take a look at wsdl.exe and disco.exe.  I generally find wsdl.exe to be the tool of choice.  Simply:

1.  Go to http://website/project/service.asmx?WSDL and save the resulting file out to disk.
2.  Use WSDL.exe to create a proxy out of the file you saved out.  This is generally quick and painless.

You won't need to rebuild the proxy unless you actually add methods or change the method signatures so they return or take different parameters than what they do now.
MigrationUser 1  Monday, May 12, 2003 7:36 PM

You can use google to search for other answers

Custom Search

More Threads

• Terrarium 1.2... Are there going to be 'stones' in Terrarium?
• Help!
• Testing Methodology
• .NET Terrarium 1.0.25.300 Available
• Install Source Failure (Unknown Error 0x80005000)
• TaskVision VB.NET
• VerificationException?? why??
• Can I print to a RichTextBox using a StreamWriter?
• how to get the service "startup type" from an external windows application
• POLL: Windows vs. SQL Authentication