473,698 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WSDL: customize wsdl:port\soap: address\@locati on

JT
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
wsdl:service\ws dl:port\soap:ad dress\@location value contains the port number
8080 even though I'm using the DNS name of the servers:
http://my.server.com:8080/MyWebService/WS.asmx, which is wrong since
my.server.com is already pointing to port 8080.

Is there a way to customize this from the code through attributes, or modify
this through some configuration?

Help!

Thanks.
Apr 5 '06 #1
1 3320
you can create the wsdl document in advance using the wsdl tool and then
remove the port numbers from it.
--
GuyBar
"JT" wrote:
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
wsdl:service\ws dl:port\soap:ad dress\@location value contains the port number
8080 even though I'm using the DNS name of the servers:
http://my.server.com:8080/MyWebService/WS.asmx, which is wrong since
my.server.com is already pointing to port 8080.

Is there a way to customize this from the code through attributes, or modify
this through some configuration?

Help!

Thanks.

Apr 11 '06 #2

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

Similar topics

1
4323
by: PMCG | last post by:
Hi Is it possible to decorate web service parameters with attributes that can add documentation elements to the complex type for a web method in WSDL, something similar to what the WebMethodAttribute provides for the method itself. For something lik public int XCoOrdinate public int YCoOrdinate [WebMethodAttribute(Description="Do some work") public void DoWork(Point input
2
10993
by: raymond | last post by:
Hi, Is it possible to create a proxy client class or a web service method by VS.NET without using wsdl? My stupid client is using a xml schema (.xsd) to describe all their web service methods (and my webmethods) by Java (Apache toolkit) instead of using WSDL. What should I do? Thanks a lot! Raymond
1
9898
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or more operations were skipped. Warnings were encountered. Review generated source comments for more details.
0
1685
by: Elhanan | last post by:
hi.. i have a small Web Service which is consumed by dotnet application the webservice is located in 2 places. the first is my local tomcat, and the second is in websphere server. problems is that if i generate a proxy from the wsdl in websphere, i can't get the databean if refer the proxy's url my tomcat's (i simply recive null). this is my tomcats's wsdl:
4
3475
by: Duffman | last post by:
Hello, I am working with dynamically created WSDL's and I need to change the transaction urls from http to https in the WSDL without redirecting customers to a different location. (I'm using vs 2003) I was able to find helpful information about the soapExtensionReflector that works great for the Soap calls http://forums.asp.net/thread/1160212.aspx But I need the same sort of fix for the Post and Get transactions and there doesn't...
4
2644
by: johns1111 | last post by:
The WSDL reflects the full inheritance structure of my program, how can I flatten the WSDL file? e.g. if I have a class A with properties PA1 and PA2 and a class B which in the C# code inherits from A and properties PB1 and PB2, then the WSDL for a web service containing a method that returns be contains complexType B with extension base A. I want to suppress that to hide the inheritance structure of the classes, also the client of the...
9
11931
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: CODEGEN: The operation binding 'getAvaluos' from namespace 'urn:m15.AvaluosPortType' was ignored. The combination of style=rpc with use=literal is not supported.
5
4975
by: Nick K. | last post by:
I use wsdl.exe to generate client code to call a web service. The actual web service is generated with the BizTalk Web Services Publishing Wizard. I'm not sure this is particular to the BizTalk code but the calls to web methods pass parameters by ref so that I have to call it like: XmlDocument doc = new XmlDocument(); doc.LoadXml(message);
0
988
by: dalong | last post by:
Hi All, is there a way to change WSDL file generated by .NET 2.0 for web services, when i click on "Service Description"? (https://localhost/MyService/MyService.asmx?WSDL) I want to add a comment to the top of generated WSDL after <?xml version="1.0" encoding="utf-8" ?> and before <wsdl: definitions xmlns: soap="http://schemas.xmlsoap.org/wsdl/soap/" ...
1
8884
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
8855
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...
1
6515
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
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
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
4611
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3034
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
2319
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1992
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.