By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,318 Members | 2,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,318 IT Pros & Developers. It's quick & easy.

Dynamic web service

P: n/a
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
Share this Question
Share on Google+
15 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.