Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to Change dynamically the <soap:address> in wsdl File

2 views
Skip to first unread message

WS_User

unread,
Jan 5, 2004, 10:44:56 AM1/5/04
to
Greeting All,
Below is the <SOAP:Addres> from the wsdl file, current
location is pointing to Dev Server, I am using a.Net
client. I am doing a webreference to the wsdl file !

How can i change Location to Production ? i mean is there
a way to change/specify the Location dynamically ?


<service name="MySrvcName">
- <port name="MySrvcNameSoap" binding="p:MySrvcNameSoap">
<soap:address
location="HTTP://myDev.mycom.COM:5058/XML/XMLAB00" />
</port>
</service>

Thanks

Jan Tielens

unread,
Jan 6, 2004, 2:29:19 AM1/6/04
to
1) You can set the location of the webservice at runtime (in your client
project) by using the URL property of the webservice class.

2) You can store the location of the webservice in a config file by setting
the URLBehavior property to Dynamic in the client project.

3) You can use a UDDI server to split the implementation of the webservice
from the location, allowing dynamic discovery and location services.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


"WS_User" <anon...@discussions.microsoft.com> wrote in message
news:08bc01c3d3a2$de28e2d0$a601...@phx.gbl...

John

unread,
Jan 17, 2004, 6:56:10 PM1/17/04
to
You probably don't need to worry this if your concern is only about SOAP Address of wedl. Since it is created by web service automatically if you develop your serive using vs.net, it will be changed automatically when you deploy it into different stages, say dev, qa and prod.

To verify this, set up another dev machine to migrate it from your dev to it. Let me know if it is not true.


Tau

unread,
Feb 23, 2004, 4:16:06 PM2/23/04
to

dyanamically changing server address is not a problem. the issue i run into is that when deployed to production environment, the protocol to access the web service is changed to https from http. BUT the soap:address generated by the web service is "http://prodsvr/mywebservice.asmx" instead of "https://prodsvr/mywebservice.asmx". how do i overwrite the soap:address programatically so that the client doesn't have any problem invoking it?

----- John wrote: -----

0 new messages