473,396 Members | 2,037 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.

Override the Send/Receive on a web Service Proxy

Can I override the send and receive methods on a web service proxy?

I want to use the default proxy classes generated when I add a reference to
a web service to create and read the SOAP messages when I call a method… but,
I would like to replace the send and receive with my own code so I could send
the Soap message to an EMS queue and get the response SOAP from another queue
instead of calling the web service.
Jul 4 '07 #1
1 1864
"Rui" <Ru*@discussions.microsoft.comwrote in message
news:61**********************************@microsof t.com...
Can I override the send and receive methods on a web service proxy?

I want to use the default proxy classes generated when I add a reference
to
a web service to create and read the SOAP messages when I call a method…
but,
I would like to replace the send and receive with my own code so I could
send
the Soap message to an EMS queue and get the response SOAP from another
queue
instead of calling the web service.
This is very complicated to do. Your proxy classes derive (ultimately) from
System.Web.Services.Protocols.WebClientProtocol. This class has a
GetWebRequest method. You could derive from this class (or one of its
descendants) and override this method to return a custom WebRequest object
of your own. You may also have to override GetWebResponse.

Of course, you'll also have to create your own custom WebRequest and
WebResponse classes. You'll also lose the ability to have WSDL.EXE and "Add
Web Reference" automatically generate your proxy classes, unless you go
through several more hoops.
--
John Saunders [MVP]

Jul 4 '07 #2

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

Similar topics

0
by: arti | last post by:
Hi all. I have a problem/question with XForms. I have 2 instnace in my document, instance1 and instance2. <xforms:instance xmlns="" id=instance1"> .... </xforms:instance> <xforms:instance...
5
by: Bill Hauver | last post by:
I am attempting to use a web service from my work pc which is behind a firewall. I have used wsdl.exe to create the web service reference class and added it to my project. (this seems to work...
2
by: Jeff_Lav | last post by:
I have a problem when the HTTP keep alive is set to true on a server. When a other server call a web service to that server (the one with the HTTP keep alive is at true) I receive randomly a...
0
by: John O'Neill | last post by:
Hi I would like some advice on how best to use web service proxy classes. Lets say I have a web service with 3 methods to GetCustomer, DeleteCustomer and UpdateCustomer. In my client code I...
0
by: tharika | last post by:
Hi, We have an ASP.NET web application hosted on a development server, that invokes web services hosted on an offshore server in India, both being on the same intranet domain. The default...
1
by: Julio Delgado | last post by:
Hi, Again sorry for my ignorance first time interfacing to a remote server that is not a web service but it uses SOAP protocol to talk through a particular TCP port. I need to develop a VB.NET...
2
by: rhea | last post by:
I'm a Web Services newbie and I'm hoping some more experienced developers can help me out. I've written a .NET 2.0 web service that takes an XML file as input. The SOAP envelope is pre-defined...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
0
by: imonline | last post by:
Hi, I have created a asp.net page which posts XML on the web service using .net 2.0. The page and the webservice was working fine but once I converted them to .net 3.5 I have been getting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
isladogs
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...

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.