473,782 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Alter target service url in SoapExtension

Hello,

I am trying to write a client side SoapExtension to change the target web
service url based on information from UDDI.
Does any one know how to do it? I tried to set the url in the
SoapHttpClientP rotocol (SOAPClientMess age.Client), but it did not do
anything.
I know you could change the target url in client proxy class, but change
client proxy code is NOT an option.

Thanks,
Paul
Nov 23 '05 #1
3 1716
Hi,

have you considered make your WebService a gateway? So, instead of
modifying the request from the client, accept it. Call the WS that was
needed based on your UDDI discovery and return the response to the
client?

Hope this helps,

Marvin Smit.
On Fri, 21 Oct 2005 11:35:06 -0700, "Paul"
<Pa**@discussio ns.microsoft.co m> wrote:
Hello,

I am trying to write a client side SoapExtension to change the target web
service url based on information from UDDI.
Does any one know how to do it? I tried to set the url in the
SoapHttpClient Protocol (SOAPClientMess age.Client), but it did not do
anything.
I know you could change the target url in client proxy class, but change
client proxy code is NOT an option.

Thanks,
Paul

Nov 23 '05 #2
Hello,

One of the requirement I have is to NOT change existing client application
(no source code modification). So the idea way is to implement a
SoapExtension to do the UDDI lookup and then forward the request to the new
target. Unfortunately I could not get it to work.

It seems the communication "socket" between client and service is already
opened when the soap extension gets called. So any changes to the url is
ignored. Is there a work around for this?

Thanks,
Paul
"Marvin Smit" wrote:
Hi,

have you considered make your WebService a gateway? So, instead of
modifying the request from the client, accept it. Call the WS that was
needed based on your UDDI discovery and return the response to the
client?

Hope this helps,

Marvin Smit.
On Fri, 21 Oct 2005 11:35:06 -0700, "Paul"
<Pa**@discussio ns.microsoft.co m> wrote:
Hello,

I am trying to write a client side SoapExtension to change the target web
service url based on information from UDDI.
Does any one know how to do it? I tried to set the url in the
SoapHttpClient Protocol (SOAPClientMess age.Client), but it did not do
anything.
I know you could change the target url in client proxy class, but change
client proxy code is NOT an option.

Thanks,
Paul

Nov 23 '05 #3
Hi,

Ahh, i thought you had control of the server recieving the call on the
original URL. Then you'de could do the "gateway" approach.

Modifying this on the client's stack (without the client noticing)
would be a serious security risc. (Who says you're the last to modify
the target URL?).

I have had no circumstance in which this functionality was required.

Marvin Smit.

On Tue, 25 Oct 2005 08:44:02 -0700, "Paul"
<Pa**@discussio ns.microsoft.co m> wrote:
Hello,

One of the requirement I have is to NOT change existing client application
(no source code modification). So the idea way is to implement a
SoapExtensio n to do the UDDI lookup and then forward the request to the new
target. Unfortunately I could not get it to work.

It seems the communication "socket" between client and service is already
opened when the soap extension gets called. So any changes to the url is
ignored. Is there a work around for this?

Thanks,
Paul
"Marvin Smit" wrote:
Hi,

have you considered make your WebService a gateway? So, instead of
modifying the request from the client, accept it. Call the WS that was
needed based on your UDDI discovery and return the response to the
client?

Hope this helps,

Marvin Smit.
On Fri, 21 Oct 2005 11:35:06 -0700, "Paul"
<Pa**@discussio ns.microsoft.co m> wrote:
>Hello,
>
>I am trying to write a client side SoapExtension to change the target web
>service url based on information from UDDI.
>Does any one know how to do it? I tried to set the url in the
>SoapHttpClient Protocol (SOAPClientMess age.Client), but it did not do
>anything.
>I know you could change the target url in client proxy class, but change
>client proxy code is NOT an option.
>
>Thanks,
>Paul

Nov 23 '05 #4

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

Similar topics

2
4426
by: v. Seydewitz | last post by:
Hello, I want to log the soap requests (and responses) in my C# webservice consumer. I have extended my class with the SoapExtension, but the debugger don't step into the overridden methods. The WSClient class is running as part of a console application as administrator. Why doesn't the debugger step into my methods? Here is my code. Thank You Joachim
3
3611
by: Trevor Pinkney | last post by:
Hi, Is it possible to reference a custom SoapExtension instance from within a WebMethod? I have a SoapExtension used by several web-services for generic logging. The SoapExtension logs the ServiceId, Soap Request, Start Time, End Time etc. to the database. I need to get the Id of the row the SoapExtension inserts into the database from within the Web Method. (The web method sends a
2
1538
by: Peter Norregaard | last post by:
Our customers have different names SLA’s / Service Level Agreements but use the same webservice. How do I handle that some users can be allowed to wait when the load is high while others can’t? One possible scenario could be to redirect VIPs to a more powerful webfarm than the one the common user uses. But is it a good solution and, in case it is, can I implement it using some of the standard features in .net (or perhaps .net v2)? ...
2
5608
by: lprisr | last post by:
Hi, I have double byte characters in the content that I am returning using Web Services. However, the encoding in the xml file returned by Web Services is utf-8 and I am unable to read the content, not even by changing browser encoding setting to the appropriate one. I implemented SoapExtension (called EncodingExtension) to rewrite the xml to change the encoding="utf-8" to encoding="windows-1252" in BeforeDeserialize SoapMessage...
1
2028
by: Anthony Yott | last post by:
Folks, I have a ASMX Web Service (.Net 2.0) and I'm NOT using WSE. I would like to retrieve the incoming SOAP envelope body (raw XML) inside one of my web method calls but I'm not sure how to do this. I need this information for auditing/tracking purposes. I would appreciate any suggestions, code samples or links. Thank you in advance, --
1
1644
by: AVL | last post by:
Hi, I a new bie to web services.. I've requirment wherein I need to build the xml response I know the method of my web service and I know it's return values.... I need to know the kind of xml response it builds when I call the method exposed by the web service... How can I view the xml response sent by a web service?
0
1737
by: thatsMaBoy | last post by:
Hi, I have a VB.NET 2003 web service client (EXE) that makes use of a SOAPExtension class. The client calls a web service that returns a SOAP message containing MIME encoded files. The SOAPExtension intecepts the SOAP message and extracts the MIME, before passing on the rest of the SOAP message to the client so it can process the remainder of the data within the SOAP message. My problem is that I have taken over the project from a...
2
1749
by: Ravikanth | last post by:
I created a web application in vs2003 which cosumes a web services. I used SoapExtensions to log the Request sent to server and Response received from server by adding a SoapExtension attribute to the web method in Reference.cs. This logic worked fine. But now I have a similar requirement and that has to be done vs2005. In vs2005 I created a Web Site project and added a web reference to the WSDL provided. But after adding the web...
5
1551
by: navyliu | last post by:
Hi everyone.I want to catch message before before it's send to the Web Service.Just like WSE 3.0 customer UserNameTokenManager does.If I can do this,I can implement some functions in my framework.For example,I can plug-in a customer security add-in in IIS. I'll appriciate it if you can provide some information. Best Regards. Navyliu
0
9479
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
10311
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10080
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
8967
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...
1
7492
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 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...
0
5378
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
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
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
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.