Archived

This topic is now archived and is closed to further replies.

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

This topic is 5306 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites