To create a web service proxy you can use wsdl.exe and vbc.exe using command
line, then set a reference to the resulting dll, or alternatively add a web
reference and let vs.net do it all for us.
Does the manual command line way offer any advantages over the other? Why
would a developer want to use command line to do that instead of the
automatic way? 3 1371
Two reasons that I can think of:
One reason is that Visual Studio is just a tool for creating .NET apps.
..NET apps can be developed with software other than Visual Studio (see:
Notepad, etc...). The .NET Framework SDK provides the tools needed to build
..NET apps to those that do not have/can't afford Visual Studio.
The other reason really boils down to how you want to use the web service.
If you are only going to use the service in one application, adding a Web
Reference through Visual Studio will create the proxy class and, when the
project is compiled, the proxy class will be compiled into the project's
assembly rather than to its own. However, if you need to use the web
service from multiple applications, it would probably make more sense to
generate the proxy class manually with WSDL.exe and compile it to its own
assembly that can be referenced where it's needed.
HTH
----------------
Dave Fancher http://www.davefancher.com
"Tim Zych" <no************ ***@nasdfasdfas dfasd.xxx> wrote in message
news:ur******** ********@TK2MSF TNGP09.phx.gbl. .. To create a web service proxy you can use wsdl.exe and vbc.exe using command line, then set a reference to the resulting dll, or alternatively add a web reference and let vs.net do it all for us.
Does the manual command line way offer any advantages over the other? Why would a developer want to use command line to do that instead of the automatic way?
good points. Thanks.
"Dave Fancher" <da**@remove.da vefancher.com> wrote in message
news:aq******** ************@co mcast.com... Two reasons that I can think of:
One reason is that Visual Studio is just a tool for creating .NET apps. .NET apps can be developed with software other than Visual Studio (see: Notepad, etc...). The .NET Framework SDK provides the tools needed to
build .NET apps to those that do not have/can't afford Visual Studio.
The other reason really boils down to how you want to use the web service. If you are only going to use the service in one application, adding a Web Reference through Visual Studio will create the proxy class and, when the project is compiled, the proxy class will be compiled into the project's assembly rather than to its own. However, if you need to use the web service from multiple applications, it would probably make more sense to generate the proxy class manually with WSDL.exe and compile it to its own assembly that can be referenced where it's needed.
HTH ---------------- Dave Fancher http://www.davefancher.com
"Tim Zych" <no************ ***@nasdfasdfas dfasd.xxx> wrote in message news:ur******** ********@TK2MSF TNGP09.phx.gbl. .. To create a web service proxy you can use wsdl.exe and vbc.exe using command line, then set a reference to the resulting dll, or alternatively add a web reference and let vs.net do it all for us.
Does the manual command line way offer any advantages over the other?
Why would a developer want to use command line to do that instead of the automatic way?
all vs does is run wsdl.exe for you. its just a convience, just as it run
the compilers and linkers for you.
-- bruce (sqlwork.com)
"Tim Zych" <no************ ***@nasdfasdfas dfasd.xxx> wrote in message
news:ur******** ********@TK2MSF TNGP09.phx.gbl. .. To create a web service proxy you can use wsdl.exe and vbc.exe using command line, then set a reference to the resulting dll, or alternatively add a web reference and let vs.net do it all for us.
Does the manual command line way offer any advantages over the other? Why would a developer want to use command line to do that instead of the automatic way? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jeff User |
last post by:
Here is what I have and what I would like to do:
I am building a web client application.
I add a web reference to some web service server to my project so that
now I can call the web service.
A proxy class is generated for me. This is nice. It works!
Now, the method that is generated in the proxy class has an attribute
preceding it that, among other things, contains the web address of the
web service and the particular method at that...
|
by: WATYF1 |
last post by:
Hello. I'm writing a VB.NET app to check email message counts for both
POP3 and IMAP4. I'm using TCPClient to connect, and a NetworkStream to
send simple commands. It's a very simple bit of code, actually... the
problem is, if the user is behind a proxy, then the Connect method
fails (times out).
How do I get around this? I thought this would be a common issue and
that there would be plenty of code out there to demonstrate how to...
|
by: Jeff User |
last post by:
Here is what I have and what I would like to do:
I am building a web client application.
I add a web reference to some web service server to my project so that
now I can call the web service.
A proxy class is generated for me. This is nice. It works!
Now, the method that is generated in the proxy class has an attribute
preceding it that, among other things, contains the web address of the
web service and the particular method at that...
|
by: Wild Wind |
last post by:
Hello all,
I apologise in advance for the long windedness of
this post, but I feel that if I am going to get any
solution to this problem, it is important that I present
as much information that will be useful in diagnosing
the problem.
I have an application which calls a method of a web service
that we host remotely. I have deployed the application to a
|
by: Vladimir Rypacek |
last post by:
Hi,
I've got strange error on computer which is accessing web-service thrugh proxy.
Scenario 1
----------
- the web-service does not require authentication (Anonymous access is allowed)
- client works fine
Scenario 2
----------
| |
by: Atul |
last post by:
In my winform application, to access webmethod, we create a webservice
proxy object. For the first time, when winform application is started,
for creating proxy object(e.g. MyWebServiceProxy oProxy = new
MyWebServiceProxy() )it takes a long time(appr. 2 seconds), but for
the next time it happens in 0-10 milli-seconds.
For each proxy object for first time creation it takes looong time.
One reason I know is because of JIT compilation(MSIL...
|
by: Pomunk |
last post by:
In .Net, I attach my wsdl file as a web reference and allow it to generate
the proxy classes. In the wsdl, there are two xml requests that have
virtually identical parameters, on of which is optional in both requests.
When the proxy classes for them are created, however, in one proxy the
parameter is required to be passed in as a ref, while in the second, the
parameter is just an object. Does anyone know why it is making the first a
ref,...
|
by: =?Utf-8?B?Y2hyaXM=?= |
last post by:
I've been searching for days on subject matter regarding help with creating a
proxy (http) for my windows .net 2.0 application (vb.net).
I'm forced to use the older AxWebBrowser control since it offers a nice
header modification method. Does anybody know of a way to display the header
info. I.e. a navigate2 is launched, I now want to display the response and
request headers throughtout my page requests.
So I guess my real question is...
|
by: =?Utf-8?B?TWFyaw==?= |
last post by:
I'm researching what is the best way to create a generic WCF proxy wrapper
that has the following requirements:
1. Remove the System.ServiceModel config section requirement for clients. We
have our own configuration management that follows our application lifecycle
(development/system test/production). Also, most of the proxies we build are
for the middle-tier layer.
2. Create a wrapper to follow WCF Client best practices (proxy.close...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |