473,756 Members | 9,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to override address location in WSDL ports

I have the same question as andreas.w.h.k asked on 1/5.

Our configuration is as follows:

The client must use the URL https://clustername.xyz.com/webservice.asmx to
access this web service.

clustername.xyz .com resolves to a virtual IP address on a hardware load
balancer which is listening for requests on port 443.

When the load balancer receives the request, it forwards it to any one of
the nodes in the cluster on port 8086.

The generated WSDL therefore looks like this:

<wsdl:service name="webservic e">
<wsdl:port name="webservic eSoap" binding="tns:we bserviceSoap">
<soap:address location="http://clustername.xyz .com:8086/webservice.asmx "
/>
</wsdl:port>
<wsdl:port name="webservic eSoap12" binding="tns:we bserviceSoap12" >
<soap12:addre ss
location="http://clustername.xyz .com:8086/webservice.asmx " />
</wsdl:port>
<wsdl:port name="webservic eHttpGet" binding="tns:we bserviceHttpGet ">
<http:address location="http://clustername.xyz .com:8086/webservice.asmx "
/>
</wsdl:port>
<wsdl:port name="webservic eHttpPost" binding="tns:we bserviceHttpPos t">
<http:address location="http://clustername.xyz .com:8086/webservice.asmx "
/>
</wsdl:port>
</wsdl:service>

While we can make it work, it is far from idiot proof. For example, leaving
the "?wsdl" off the URL when adding a web reference in Visual Studio 2005
results in the message "Unable to download the following files from
http://clustername.xyz .com:8086/webservice.asmx ?wsdl" because
http://clustername.xyz.com:8086 resolves to the load balancer's IP address
and the load balancer is not listening on port 8086, nor will it accept
unencrypted requests.

The most significant problem is that generated test harness is also useless
because although it lists the services and even allows you to click and enter
parameters, clicking the Invoke button posts back to a URL that can not be
reached.

It is unfortunate that System.Web.Serv ices.WebService does not expose an
instance of System.Web.Serv ices.Descriptio n since it looks like
Description.Soa pAddressBinding .Location is exactly what we need to override.

Does anyone have any ideas?

Thank you.

Gavin M



Jan 21 '06 #1
3 20077
Can't you just assign the WebService.Url property?
--
Dale Preston
MCAD C#
MCSE, MCDBA
"GavinM" wrote:
I have the same question as andreas.w.h.k asked on 1/5.

Our configuration is as follows:

The client must use the URL https://clustername.xyz.com/webservice.asmx to
access this web service.

clustername.xyz .com resolves to a virtual IP address on a hardware load
balancer which is listening for requests on port 443.

When the load balancer receives the request, it forwards it to any one of
the nodes in the cluster on port 8086.

The generated WSDL therefore looks like this:

<wsdl:service name="webservic e">
<wsdl:port name="webservic eSoap" binding="tns:we bserviceSoap">
<soap:address location="http://clustername.xyz .com:8086/webservice.asmx "
/>
</wsdl:port>
<wsdl:port name="webservic eSoap12" binding="tns:we bserviceSoap12" >
<soap12:addre ss
location="http://clustername.xyz .com:8086/webservice.asmx " />
</wsdl:port>
<wsdl:port name="webservic eHttpGet" binding="tns:we bserviceHttpGet ">
<http:address location="http://clustername.xyz .com:8086/webservice.asmx "
/>
</wsdl:port>
<wsdl:port name="webservic eHttpPost" binding="tns:we bserviceHttpPos t">
<http:address location="http://clustername.xyz .com:8086/webservice.asmx "
/>
</wsdl:port>
</wsdl:service>

While we can make it work, it is far from idiot proof. For example, leaving
the "?wsdl" off the URL when adding a web reference in Visual Studio 2005
results in the message "Unable to download the following files from
http://clustername.xyz .com:8086/webservice.asmx ?wsdl" because
http://clustername.xyz.com:8086 resolves to the load balancer's IP address
and the load balancer is not listening on port 8086, nor will it accept
unencrypted requests.

The most significant problem is that generated test harness is also useless
because although it lists the services and even allows you to click and enter
parameters, clicking the Invoke button posts back to a URL that can not be
reached.

It is unfortunate that System.Web.Serv ices.WebService does not expose an
instance of System.Web.Serv ices.Descriptio n since it looks like
Description.Soa pAddressBinding .Location is exactly what we need to override.

Does anyone have any ideas?

Thank you.

Gavin M


Jan 22 '06 #2
We are currently doing that (on the client), as a work around. Being able to
override the address provided in the WSDL is helpful, but my question is how
do I correct the WSDL?

If it were possible to specify this.Url = ... in the constructor of the
service (on the server) that would be great. However, unless I am missing
something, there is no such property.

Gavin M

"Dale" wrote:
Can't you just assign the WebService.Url property?
--
Dale Preston
MCAD C#
MCSE, MCDBA

Jan 23 '06 #3
GavinM wrote:
We are currently doing that (on the client), as a work around. Being able to
override the address provided in the WSDL is helpful, but my question is how
do I correct the WSDL?

If it were possible to specify this.Url = ... in the constructor of the
service (on the server) that would be great. However, unless I am missing
something, there is no such property.


I am having the same problem. When our web service is installed, the
generated WSDL is incorrect, so users can't get the correct URLs.

I know that the generated address can't be exact, but surely it would
have been more sensible to work out the service URLs from the request URL?

Rik
Feb 10 '06 #4

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

Similar topics

24
8697
by: Generic Usenet Account | last post by:
Does anyone have an opinion on how IDL and WSDL compare to each other? Are they equally powerful in their "expressive power"? Sometimes it appears to me that IDL is a little easier for humans to follow. Also, it appears to be more compact. Are IDL and WSDL equally powerful in expressing complex data types, and describing inheritance and association relationships? What would be the most compelling reasons to choose one over the other?
1
2210
by: Sacha Faust | last post by:
I have an abstract class, RuleResponse, and then create a new class base on it, RuleResponseSequence, and override the ++ operater. If I try to cast a RuleResponse as a RuleResponseSequence and try to use the ++ operator the compiler tells me "The left-hand size of an assignment must be a variable, property or indexer". I don't understand why I get that. Here is the line that doesn't compile (m_rule.Response is a RuleResponse instance):
0
1358
by: Mauricio Arroyo | last post by:
Hi, I used the excellent article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service08202002.asp from Scott Seely to have a webservice interface defined in a separated wsdl file. It works just fine, but when I try to navigate to the wsdl from Visual Studio I get a message "No Ports or Methods were found on this page.". I'm still able to add the web reference and every thing works fine. (if I point to...
0
3469
by: bryce_li | last post by:
Hello I am looking for the best architectural pattern in using the SOAP:address location: Hardcode the real endpoint or use localhost (in our company on an Intranet site) >From what I can see there are two patterns: 1. Code the endpoint to the WSDL Sample:
0
1535
by: Oscar Thornell | last post by:
Hi, I have a web service (.NET 1.1) that is deployed into a heavily fortified area with a lot of different network segments/proxies/firewalls... The server(Win 2003) in itself is not protected and the web service is accessed using normal HTTP. However requests orginiating from other segments are only allowed if they are made through HTTPS. With a call to https://someaddress/someapp/someservice.asmx?wsdl the ASP.NET
4
6316
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> Anderas
1
3327
by: JT | last post by:
Hi, We have 2 servers having the same web site running on port 8080. These two servers are load balanced and have DNS name, e.g. my.server.com. Now on both of these two servers, we put the same web services, e.g. MyWebService\WS.asmx, so the URL to the web service looks like: http://my.server.com/MyWebService/WS.asmx Now here's the problem. When I try to view the WSDL via http://my.server.com/MyWebService/WS.asmx?WSDL, the
0
1838
by: vihrao | last post by:
I am designing wsdl that uses multiple schemas. I can do this in two ways: 1) use multiple schema imports in one wsdl or 2) use multiple schema imports in to one common schema and then import a single common schema in the wsdl. The issue is complicated because I have several wsdls with several common and unique schemas. As an example serviceA_Ports.wsdl imports a commonServiceTypes.Xml, commonFaultTypes.xml, and serviceA.xml ...
4
3421
by: WebDev2 | last post by:
I have a web service created via Visual Web Developer Express Edition on a IIS Server with .NET 2.0 installed. The test page displays just fine when the URL of the .asmx page is entered into a browser i.e. "http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx" The WSDL displayed when accessing the .asmx via http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx?wsdl file has the wrong address location. It displays ...
0
9303
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
9117
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
9679
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
9676
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
8542
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
4955
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
5156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3651
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
2
3141
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.