473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to Modify the Proxy Class for a 2005 Web Project

I have created a web reference in a 2005 web project and need to change out
the generated complex class with the business oject that we have already
created. In a library project there is a code file for the proxy class where
I can make the change. However, there is no such file in a Web Project as
this class is generated on the fly. So what I need to do is the following:

I have a business object Foo.
My Webservice has a method GetFoo() that returns MyNamespace.Foo.
In the Web Project I want to have my web reference to return
MyNamesapce.Foo, NOT the generated Foo.

I'm hoping I can make a change to the .wsdl file to get the GetFoo() method
to return my MyNamespace.Foo oject.

Thanks for your help,
Tyler

Feb 9 '06 #1
1 1412
Hi Tyler,

Welcome to the MSDN newsgroup.

As for the webservice client proxy generate through .net tool, in ASP.NET
web application, since it no longer expose the autogenerated source file,
it will prevent us from modifying it manually. What we can do so far is use
custom soapExtensionImporter to do some customizing on the wsdl or cilent
proxy generation process, however, so far I haven't found any means to
modify the method's referenced parameter type. It can only help add new
proxy class type or apply some custom attributes:

#How to: Customize the Generation of Service Descriptions and Proxy Classes

http://msdn2.microsoft.com/en-us/library/f9hatst6.aspx

You can have a look at the WSE's extensionImporter
type(Microsoft.Web.Services3.Description.WseExtens ionImporter) for
reference. Anyway, creating such a custom importer is a bit too hard.

So IMO, I'd suggest you create the webservice class in a separate class
library project so that you can maintain the generated source file. Or you
can also manually use the wsdl.exe to generate the proxy outside the
project(in commandline).

Hope this helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 10 '06 #2

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

Similar topics

5
by: Benne Smith | last post by:
Hi, I have three enviroments; a development, a testing and a production enviroment. I'm making a big application (.exe), which uses alot of different webservices. I don't use the webservices...
5
by: HenrySeque | last post by:
I have a webservice and I add a web reference from my web project. I want the proxy class to implements an Interface, but I didn't find the source code of the proxy class and I don't want to...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
1
by: Vi | last post by:
Hi, I'd like to invoke a web service from a Windows Forms client, without creating a web reference to the web service in the client project (VS.NET 2005). I created the proxy class using...
3
by: Francisco Garcia | last post by:
Hi! I have developed both a Web Service and a client application, and they work fine. All classes used in the Web Service interface are declared in an assembly named Entities, that is...
7
by: Pro1712 | last post by:
Hello, I need to write a simple proxy server. What I want to do is to use HttpListener to get requests from the browser, add some proxy information and some other stuff and send the request to...
3
by: Joseph Geretz | last post by:
System.InvalidOperationException: WebServiceBindingAttribute is required on proxy classes. My environment: Visual Studio 2005, targeting FX 2.0; I've developed a Web Service which uses DIME to...
2
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi I have a utility class, called MailHandler, that I wrote to read and operate on emails on an Exchange server using WebDAV. The WebDAV SQL statements are sent using an HttpWebRequest object....
4
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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,...

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.