473,408 Members | 1,738 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,408 software developers and data experts.

Dynamic web service

Nak
Hi there,

Is it possible to load a web service dynamically? i.e. If the web
service were to exist on a system with a non static IP address, an
application could download a "locator" file that contained details of it's
whereabouts, I have been looking at the "Discovery.DynamicDiscoveryDocument"
class but I think think this is what I am looking for is it? Thanks in
advance.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #1
15 2040
Cor
Nick,
I don't think so, because it is not the IP adress that you need but the DNS
name.
(Of course a DNS name is nothing else than a static ip adress).
A DNS name is as far as I know never dynamic.

I am quiet sure, but when I am wrong, don't shoot.
Cor
Nov 20 '05 #2
Thanks, Cor for your reply.

Nick, I'd like to add some further information.

The DynamicDiscoveryDocument type only supports the .NET Framework
infrastructure and is not intended to be used directly from your code. It
means that only the .NET Framework can load it. Please refer to the
following link for more information:

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebservicesdiscoverydynamicdiscoverydoc umentclasstopic.asp

I agree with Cor's post. You need a DNS name. Dynamic discovery does not
mean finding on dynamic IP addresses. Here are some articles for you to
refer to:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconenablingdiscoveryforwebservice.asp

http://msdn.microsoft.com/library/de...us/vbcon/html/
vbconlocatingwebservices.asp

http://msdn.microsoft.com/library/de...us/dnuddi/html
/runtimeuddi1.asp

http://msdn.microsoft.com/library/de...us/dnuddi/html
/runtimeuddi2.asp

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Nak" <a@a.com>
| Subject: Dynamic web service
| Date: Thu, 9 Oct 2003 10:28:41 +0100
| Lines: 19
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Ow**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: dsl213-218-228-203.as15444.net 213.218.228.203
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145262
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi there,
|
| Is it possible to load a web service dynamically? i.e. If the web
| service were to exist on a system with a non static IP address, an
| application could download a "locator" file that contained details of it's
| whereabouts, I have been looking at the
"Discovery.DynamicDiscoveryDocument"
| class but I think think this is what I am looking for is it? Thanks in
| advance.
|
| Nick.
|
| --
|
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| "No matter. Whatever the outcome, you are changed."
|
| Fergus - September 5th 2003
|
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
|
|
|

Nov 20 '05 #3
Nak
Hi Kevin,
The DynamicDiscoveryDocument type only supports the .NET Framework
infrastructure and is not intended to be used directly from your code. It
means that only the .NET Framework can load it. Please refer to the
following link for more information:


I was just hunting the framework that *sounded* like they could do as I
wanted.

Here is a quote from one page you sent a link to,

"A Web reference can use either a static URL or a dynamic URL"

That is exactly what I wanted, to use a dynamic address of the web
reference! Thanks loads.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #4
Nak
Hi Cor,
Nick,
I don't think so, because it is not the IP adress that you need but the DNS name.
(Of course a DNS name is nothing else than a static ip adress).
A DNS name is as far as I know never dynamic.

I am quiet sure, but when I am wrong, don't shoot.
Cor


You dont need a DNS name to use a web reference, you can use an ip address,
a DNS is simply a name instead of an IP address as you just rightly pointed
out,

http://0.0.0.0/mywebthing

The whole point is I want to host mine from home, and my IP address is
subject to change, so no matter where the applciation is used from it needs
to be able to obtain the new reference, which as Kevin just pointed out to
with one of the links he sent this can be achieved by changing the URL of
the proxy object. Excellent just what I needed!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #5
Cor
Hi Nick,
I knew why you was asking that, you had said some months ago that you had
not a fixed IP adres.
If the the solution from Kevin fits you, I am happy for you.

But I am very curious how your customers get that changing IP adres.

Tell me how you did it when it is ready ok?

Cor

PS. that what you wrote is the same as it is standard implementation in
VB.net in the development situation.
Localhost/webservice1
127.0.0.1/webservice1


Nov 20 '05 #6
Nak
Hi Cor,
Tell me how you did it when it is ready ok?


It is going to work very similarly to the way I have implemented version
checking and updating. An XML file is going to be stored on my free
website, the application is going to download the XML file and read the
properties within, as simple as that. The file is going to be updated every
time the the IP address of the server that my application is on changes,
simply by creating the XML locator file and uploading it via FTP, as simple
as that :-)

I am yet to implement this but the idea is very simple indeed and should
prove to be quite sturdy, that's providing my web site doesn't get hacked
:-o

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #7
why dont you look at something like www.dyndns.org and get yourself a domain name from somewhere
like www.godaddy.com? Then you can put in the actual domain, and the dyndns client will
automatically update their DNS records with your dynamic IP address anytime it changes.
"Nak" <a@a.com> wrote in message news:uJ*************@TK2MSFTNGP10.phx.gbl...
Hi Cor,
Tell me how you did it when it is ready ok?


It is going to work very similarly to the way I have implemented version
checking and updating. An XML file is going to be stored on my free
website, the application is going to download the XML file and read the
properties within, as simple as that. The file is going to be updated every
time the the IP address of the server that my application is on changes,
simply by creating the XML locator file and uploading it via FTP, as simple
as that :-)

I am yet to implement this but the idea is very simple indeed and should
prove to be quite sturdy, that's providing my web site doesn't get hacked
:-o

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #8
Nak
Hi there,
why dont you look at something like www.dyndns.org and get yourself a domain name from somewhere like www.godaddy.com? Then you can put in the actual domain, and the dyndns client will automatically update their DNS records with your dynamic IP address

anytime it changes.

Those are good ideas, but the main reason I want to do this all myself is
for cost and security reasons. I actually want to process credit card
transactions myself, rather than have some faceless company do it for me.
I'm also looking forward to the challenge of developing and selling
shareware all on my "tod", I have developed, now it's time to sell!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #9
Cor
Hi Nick,

I was thinking that you would do something like that.

Sounds not impossible.

An XML file, you only needs 12 bytes, but if an xml file is the easiest why
not.
(Not the One Handed Man, but the One Noded Xml file)

I dont know what about the advice from Rick, it sound nice.
But when you go look for it, keep in mind that DNS servers over the world
are slow, the worst needs half a week to update the DNS with the new IP
adresses. I did not say, it won't work, but keep an eye on that when you are
investigation that.
Cor
Nov 20 '05 #10
Hi Cor, Nick

Nick probably has the same scheme with his ISP as I do, which is a
two-hour cutoff. So every two hours the IP address is going to change.

Every time his system redials, he's going have it package his new IP
address up (in his One Noded Xml file) and post it to his fixed site. The
official DNS system won't need to be involved because, effectively, Nick's
fixed site will be his personal DNS, converting requests for updates into
requests to his home-based server.

Another way it could work, perhaps, is as a standard web page which simply
contains a redirection to Nick's home URL. In fact the whole web site could be
developed that way. Hmm. I think I might have to look into that.

Actually Nick, you wouldn't necessarily have to do any of it with a web
service as HttpRequest and Response might be sufficient on their own.

Lol, I'm just trying to confuse you with more options. ;-)

Regards,
Fergus
Nov 20 '05 #11
Nak
Hi Fergus,
Nick probably has the same scheme with his ISP as I do, which is a
two-hour cutoff. So every two hours the IP address is going to change.
I have no idea, but I am not aware of my IP address changing at all at the
moment. When I was with blueyonder my IP address didn't change once! My
own static IP address huh? But just to risky to build software around it,
hence taking the dynamic approach.

The same approach works very well for checking for updates of the software,
downloading a special XML update packet that includes details of the latest
version, new features, and a download location, very small and sweet, I like
XML.
Actually Nick, you wouldn't necessarily have to do any of it with a web service as HttpRequest and Response might be sufficient on their own.

Lol, I'm just trying to confuse you with more options. ;-)


LOL, It doesn't take much to confuse me mate! What do you mean exactly? I
have thought of the architecture for my system and have actually been able
to draw a diagram for the first time ever! YAY!, I like to refer to them as
"Bollocksograms", most of them mean absolutely nothing, but they look good!
But I'm all ears for new ideas as I am still sussing things out at the
moment, like where my administration privileges went earlier!!!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #12
Hi Nick,

Based on my understanding, the IP of the server running your web service
changes frequently. So you need your application to find the server
dynamically. Am I right?

If so, I don't think it can be achieved by a dynamic discovery of the web
service. Because dynamic discovery only discovers web services on the local
site. The application even cannot find the server when the IP of the server
changed.

Is the web service published on a intranet or the internet? If it is on the
intranet, just use the computer name to identify the server. If your web
service is published on the internet, I think you have to gain a domain
name for your web site. So that the applications an find the server
throught a URL from the internet.

Hope this helps...

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Nak" <a@a.com>
| References: <Ow**************@TK2MSFTNGP09.phx.gbl>
<ck**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Dynamic web service
| Date: Thu, 9 Oct 2003 16:44:26 +0100
| Lines: 27
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uo**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: dsl213-218-228-203.as15444.net 213.218.228.203
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:145365
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi Kevin,
|
| > The DynamicDiscoveryDocument type only supports the .NET Framework
| > infrastructure and is not intended to be used directly from your code.
It
| > means that only the .NET Framework can load it. Please refer to the
| > following link for more information:
|
| I was just hunting the framework that *sounded* like they could do as I
| wanted.
|
| Here is a quote from one page you sent a link to,
|
| "A Web reference can use either a static URL or a dynamic URL"
|
| That is exactly what I wanted, to use a dynamic address of the web
| reference! Thanks loads.
|
| Nick.
|
| --
|
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| "No matter. Whatever the outcome, you are changed."
|
| Fergus - September 5th 2003
|
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
|
|
|

Nov 20 '05 #13
Cor
Hi Fergus,

Another way it could work, perhaps, is as a standard web page which simply contains a redirection to Nick's home URL. In fact the whole web site could be developed that way. Hmm. I think I might have to look into that.

My first thought, I even had the "refresh" content written, when I thought
about it that it is a webservice, which has information in the posted page.
I don't know if that information is given to the refresh page. With the
method which Nick wants to take that is no problem.
Cor
Nov 20 '05 #14
Nak
Hi Kevin,

All is clear now, I was just after the Url property of the proxy object.
I can change it to specify where the web application is, thus being dynamic.
Thanks for your help.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #15
Nak
Hi Rick,

Wow, I just checked out dyndns and I didn't actually realise what they
did to start with. I like to client software that updates your IP address
instantly!! I'm almost there, I just need to damn router to route to a
computer on the LAN, it seems the HTTP configuration pages are proving to
get in the way just a little, I wish I could find a manual for the damn
thing, damn generic hardware! :-(

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"Rick Mogstad" <ri**@NOSPAM.computetosuit.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
why dont you look at something like www.dyndns.org and get yourself a domain name from somewhere like www.godaddy.com? Then you can put in the actual domain, and the dyndns client will automatically update their DNS records with your dynamic IP address anytime it changes.

"Nak" <a@a.com> wrote in message

news:uJ*************@TK2MSFTNGP10.phx.gbl...
Hi Cor,
Tell me how you did it when it is ready ok?


It is going to work very similarly to the way I have implemented version
checking and updating. An XML file is going to be stored on my free
website, the application is going to download the XML file and read the
properties within, as simple as that. The file is going to be updated every time the the IP address of the server that my application is on changes,
simply by creating the XML locator file and uploading it via FTP, as simple as that :-)

I am yet to implement this but the idea is very simple indeed and should
prove to be quite sturdy, that's providing my web site doesn't get hacked :-o

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ "No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


Nov 20 '05 #16

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

Similar topics

1
by: Generic Usenet Account | last post by:
Most of the open source web-service products that I am reading about seem to require generation of client stub and server implementation ancestor classes from the WSDL file. The client application...
2
by: Rami Saad | last post by:
Hi all, I am trying to install a service using dynamic naming. I wrote values in the configuration file, and trying to assign one of those values to a string, and using this string as the name...
8
by: Eyeawanda Pondicherry | last post by:
I have put some code together that creates an enum dynamically from some database values. The enum can be read perfectly by an application that references the dynamically generated dll. If I...
5
by: Demetri | last post by:
Is it possible to add a web service reference during runtime? If so, how? -- -Demetri
3
by: JL | last post by:
I have a VB.NET desktop program that reads/writes data to a server using a Java-based Web Service. This web service, in identical formats, is located on several servers with each server being a...
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
3
by: lk | last post by:
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service...
2
by: James | last post by:
Hello, I have an existing MFC C++ project which I need to add the ability of sending WSDL calls out to a web service. When this project is deployed the web service URL will always change...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.