473,748 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservice proxy generation in VS 2005

Hi,

In Visual Studio 2005 it appears that you don't have access to the proxy
class generated by the tool when you add a reference to a web service. This
is a problem for me since I have a web service which makes use of WSE 2. As
such I need the proxy class to be of type
Microsoft.Web.S ervices2.WebSer vicesClientProt ocol rather the usual base class
which means I need to edit the generated class. This was no problem in VS
2003 because I could just go into the Reference.cs file and make the change I
needed.

My work around at the moment is to copy and paste the generated proxy into a
separate class file and edit it and then delete the generated proxy. I think
this should work but it feels like a step backwards.

Is this just the way it is now or am I missing something simple?

thanks in advance,

Julian Jelfs.
Nov 23 '05 #1
2 2340
I was able to get around this behavior by using the wsdl.exe tool to
generate the proxy class. This is located in the SDK\v2.0\bin folder
under the install directory.

You can search the VS 2005 documentation for wsdl.exe to get details on
how it works.

-Glen

Nov 23 '05 #2
Thanks, I forgot about that, that will probably be a reasonable work around.
I'm surprised that MS didn't see that this change in behaviour would be quite
annoying for a lot of people. It's just going to make the process of updating
a web reference that little bit more difficult.

"gr****@lfsh.co m" wrote:
I was able to get around this behavior by using the wsdl.exe tool to
generate the proxy class. This is located in the SDK\v2.0\bin folder
under the install directory.

You can search the VS 2005 documentation for wsdl.exe to get details on
how it works.

-Glen

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
768
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a .NET Framework application, but just not on the .NET CF version. Can anyone suggest anything that might be wrong with the code? (I could post the app and webservice, but i was hoping that you might have noticed something from the supplied...
7
2927
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure out to create a "DataSet" as the return type from the webservice?
5
3798
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains about one of the object wanting to extend MarshalByRefObject object, and I get an error SDL1030. I can use the webservice in a C# project just fine but not the C++. Can anyone help me out with this?
0
1222
by: Karl Prosser | last post by:
i am having problems setting the 'credentials' to call a webservice.. i have the WSDL and successfully have created a proxy , and the right code to call the webservice, other than setting the credentials.. i am using vs 2005 with dotnet framework 2.0 according to their docs the webservice (made by a third party) expects authentication as below:
1
1179
by: vincent | last post by:
Hello, I'm webreferecing some webservice. I have one WebMethod returning "List<SomeClass>" I don't want "SomeClass" to be proxy generated on client side But i want to use the same "SomeClass" that i have on server side. I have seen one day an attribute to put on the WebMethod to specify the return type.
3
2262
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When I receive the object from the web service, I'm interested in storing that object in ViewState in the web application, but I receive the error below. I'm not shocked that the web application can't serialize the object as the attribute isn't...
0
1103
by: joymac | last post by:
How to create a proxy class for a webservice? I have a simple webservice ("Hello World") and I am trying to create a proxy class for this webservice using below command - wsdl /l:CS /protocol:HttpPost http://localhost/SampleWebService/ Service.asmx?wsdl On execution of this command, I get the warning messages saying "no classes were generated".
1
2467
by: =?Utf-8?B?d2R1ZGVr?= | last post by:
I have a web service hosting a WCF library, which works fine but produced a strange signature when interacting with vs 2005/2.0 clients. My method takes 3 strings and returns a bool as below. bool CanRun(string appName, string userName, string function); However the auto generated proxy in 2005 looks like this void CanRun(string appName, string userName, string function, out bool result, out bool resultSpecified);
5
2752
by: VictorG | last post by:
Hello, I am trying to secure a webservice using WSE 3.0 and the turnkey usernameForCertificateSecurity profile. I am passing a valid username token, and on the server I have overridden the Authenticate token call and it is being called. My ASP.NET service has a Login() method and it is being called during client application startup. Both the client and service have matching policy config files. Once authentication
0
8995
marktang
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...
0
8832
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,...
0
9378
jinu1996
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...
1
9331
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,...
0
9253
tracyyun
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...
0
8250
agi2029
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...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.