dynamic location address for .NET web service (in a hurry)

Started by
1 comment, last by Crispy 20 years, 10 months ago
Hi, this is a bit rushy... How can I define a dynamic target page for an XML file in a .NET web service. Eg: In the XML file I have:

<service name="AService">
    <port name="APort" binding="tns:ATns">
      <http:address location="http://us.imdb.com/Name&SomeName"/>

    </port>
I want to be able to ask the user for SomeName and add it dynamically. I'd really appreciate some quick help on this!

Never do anything that is a waste of time and be prepared to wage long tedious wars over this principle - Michael O'Connor

[edited by - crispy on June 4, 2003 7:20:16 AM]
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Advertisement
I''m assuming you''re refering to consuming a web service in .NET. If so then you can change the Url of the web service you''re consuming in the web proxy class.

  Dim googleWS as New Google.com.Google()  ''this overrides the default used as apart of discovery  googleWS.Url = "http://www.google.com/webservice/google.asmx" 


Hope this helps

Epolevne
Thanks! Can''t test it now, but looks just about what I was looking for.

PS: there''s and error in my original post: it should read WSDL instead of XML...

Never do anything that is a waste of time and be prepared to wage long tedious wars over this principle - Michael O''Connor

"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared

This topic is closed to new replies.

Advertisement