473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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



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
Nov 23 '05 #1
2 1573
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.AppSett ings ("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 :

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


Nov 23 '05 #2
Dilip Krishnan wrote:
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.AppSett ings
("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 :

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


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]
Nov 23 '05 #3

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

Similar topics

8
by: Programatix | last post by:
Hi, I'm working on a project which includes XML WebServices and Windows Form application. The Windows Form application will call the XML WebServices to retrieve data from database. The data...
14
by: John A Grandy | last post by:
has anyone successfully used HttpWebRequest or WebClient class to simulate submission of a simple HTML form? for example: a very simple plain-vanilla form with a textbox and a button. when the...
0
by: RJN | last post by:
Hi all I'm calling a shared method in the class. This error appears in production though I'm not able to reproduce. Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type...
0
by: RJN | last post by:
Hi Sorry for posting again. I'm calling a shared method in the class. The following error is found in production though I'm not able to reproduce. ...
1
by: Steve.Goodman | last post by:
Appologies if this has already been asked, but after scanning the web and this news group I could find no decent solution. We have a windows App that calls a webservice, using this bit of basic...
8
by: Paul Craig | last post by:
Hi, I am currently able to open forms given a string variable using the following code: Dim strForm As String = "Form1" Dim theForm As Form theForm =...
1
by: Angelo | last post by:
Ok, I am utilizing the threadpool class to manage a number of threads. Priority is not important to me and neither is if the threads are background or foreground threads so I opted for the...
4
by: Hakan ÖRNEK | last post by:
Hi, I have two dll's like First.dll and Second.dll compiled by vb.net, a object in first.dll and, b object in Second.dll. I need hold cross referances; a.breferance=b and b.areferance=a I...
0
by: Corey66 via DotNetMonster.com | last post by:
Hello! I' ve written a Application, in which I could import all contacts from Outlook into my programme and it works fine, but I use the reference from Outlook 10! My Problem is, that my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.