Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

how to use a form of latebinding with webservices ??? and a .net client

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
M.Posseth - 08 Feb 2005 06:55 GMT
scenario :

I had a remoting server , now this remoting server needed the ability to
comunicate with a Delphi 5  client, so i got the advise to switch to
webservices

now i rebuilded the Cassini webserver , so i can deploy it and
everything works fine

However i have one problem , and this is with my own .Net clients cause
i do not know how i get them late binded to a webserver   ( on compile
time i never know where the server is )

i am able to do this with VB6 but i don`t know how to do it with VB.Net
:-(   as far as i know you must set a reference  in the development
stage with VB.Net however my app is beeing deployed so i never know what
the uri of the webservice is  ofcourse the interface is alway`s the same

can someone point me in the right direction ??

Michel
Dilip Krishnan - 08 Feb 2005 14:08 GMT
Hello M.Posseth,
  Instead of using add web reference try using the wsdl command like below

wsdl.exe /l:VB /out:proxy.vb http://localhost/service.asmx?wsdl /appsettingurlkey:myurl

This is generate code that would look like this...

theProxy.Url= System.Configuration.ConfigurationSettings.AppSettings ("myurl")

You would need to add a key to your client configuration file like this...

<appSettings>
  <add key="myurl" value="http://hostname/service.asmx" />
</appSettings>

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> scenario :
>
[quoted text clipped - 18 lines]
>
> Michel
M.Posseth - 08 Feb 2005 17:46 GMT
> Hello M.Posseth,
>   Instead of using add web reference try using the wsdl command like below
[quoted text clipped - 42 lines]
>>
>> Michel

Aha thanks Dilip

In the meanwhile i discovered that if you choose show all files in the
project tab you can also find there the proxy  class that .Net generates
behind the scenes with some slight tweaking ( like adding a property for
the URL ) this can be easily converted in a "late" binded proxy class
 ( already played with it )

i will investigate the class that the wsdl.exe tool generates also

thanks for your help

Michel [MCP]

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.