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 / December 2004

Tip: Looking for answers? Try searching our database.

Internal/External IP addresses

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Watkin - 15 Dec 2004 15:36 GMT
We have recently put a Web Service on an external web server for testing,
however, when it is added as a reference, it is trying to use the internal
IP address instead of the external IP address.

Does anyone know why this happens, and how it can be fixed?

Cheers
Mujtaba Syed - 15 Dec 2004 15:57 GMT
Hi Mark:

>  We have recently put a Web Service on an external web server for testing,
>  however, when it is added as a reference, it is trying to use the
internal
> IP address instead of the external IP address.

I haven't understood your question completely but I will take a shot at it.

Don't refresh the web reference. Delete it and create a new one with the
correct external IP address.
You refresh a web reference only when the interface of a service has changed
but its location is the same! This is not true in your case.

Hope this helps.
Mujtaba.
Mark Watkin - 15 Dec 2004 16:21 GMT
Sorry, I know I wasn't exactly clear, but that was all I was told from the
external developer trying to access our service.
It won't need refreshing because it would be a brand new project.

I posted the question in hopes that somebody might have understood quickly,
so I could resove this today.
However, it looks like I will have to try myself when I can get to an
external connection so I can provide a much more detailed question.

Thanks anyway
 Mark

> Hi Mark:
>
[quoted text clipped - 12 lines]
> Hope this helps.
> Mujtaba.
Dan Rogers - 15 Dec 2004 18:10 GMT
Hi Mark,

IP address resolution is a DNS function.  If the URL that your developer us
using resolves in his DNS (or his HOSTS file) to a specific "internal" IP
address, then the change needs to be made in the DNS servers you are using.
Alternately, access the service using the IP address you desire (e.g.
http://123.45.67.89/Myservice.asmx).  Another alternative is to register an
alternate server name for the public address.  It sounds like someone
registered the wrong IP address if this is happening on public internet.

Regards
Dan Rogers
Microsoft Corporation
--------------------
>From: "Mark Watkin" <not.a.valid@email.com>
>Subject: Internal/External IP addresses
[quoted text clipped - 8 lines]
>NNTP-Posting-Host: 194.154.180.194
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:27204
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 5 lines]
>
> Cheers
Mark Watkin - 16 Dec 2004 08:54 GMT
Thanks, but it doesn't make sense to be DNS, otherwise I wouldn't be able to
access the service at all from externally. Here's the procedure that we have
gone through-
The developer created the webservice on his own machine, and tested it with
a sample Windows application.
We created a new virtual directory on the web server (which is externally
accessible) and copied the necessary files across
We then created another test application using the new server (but from
internally), which worked fine
After going home, I created another test application and added a Web
Reference to the service's external URL
It all came up fine, showing us the test page, so then I clicked the "Add
Reference button", the window disappeared, then a few minutes later, I get a
dialog box stating-

Unable to download following files from .
http://172.16.xxx.xxx/rocket/rocket.asmx?wsdl
Do you want to skip these files and continue?

We have searched all the files, and none of them specify this IP address, or
even has anything like the string "?wsdl"
We were also using the .vsdisco file that visual studio had provided.

Hope this is a bit clearer

Cheers,
 Mark

> Hi Mark,
>
[quoted text clipped - 22 lines]
> >NNTP-Posting-Host: 194.154.180.194
> >Path:

cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> phx.gbl
> >Xref: cpmsftngxa10.phx.gbl
[quoted text clipped - 8 lines]
> >
> > Cheers
Dan Rogers - 16 Dec 2004 19:11 GMT
Hi Mark,

You stated that you clicked the add-reference menu selection, and provided
it with the address of a web server.  Try clicking the add-web-reference
selection instead.  You can't add-reference across HTTP interface.

Dan

--------------------
>From: "Mark Watkin" <not.a.valid@email.com>
>References: <OsPzSvr4EHA.524@TK2MSFTNGP09.phx.gbl>
<WQzc6Ft4EHA.3152@cpmsftngxa10.phx.gbl>
>Subject: Re: Internal/External IP addresses
>Date: Thu, 16 Dec 2004 08:54:18 -0000
[quoted text clipped - 7 lines]
>NNTP-Posting-Host: 194.154.180.194
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15
.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:27234
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 70 lines]
>> >
>> > Cheers
Mark Watkin - 17 Dec 2004 08:22 GMT
Sorry, this is *after* clicking the "Add Web Reference" to the project. It
brings up a dialog which has the URL box, a browser interface to view the
URL, and an "Add Reference" button. It was this button that I was refering
to

> Hi Mark,
>
[quoted text clipped - 19 lines]
> >NNTP-Posting-Host: 194.154.180.194
> >Path:

cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15
> phx.gbl
> >Xref: cpmsftngxa10.phx.gbl
[quoted text clipped - 79 lines]
> >> >
> >> > Cheers
Dan Rogers - 20 Dec 2004 23:11 GMT
Ahhh.  Is it possible that the service does not support automatic WSDL
serving?  This is something you can disable in ASP.net, and is a feature of
ASP.net that not every tool vendor does the same way.  If this is the case,
you need to get (by some other means) the WSDL file for the service, save
this locally, and then instead of typing the URL, use the Browse button to
specify a local file.

As a best practice, I have always recommended disabling automatic WSDL
generation for production services.  Perhaps this is what you are facing.  
The reason is that to run a production quality service, one requires an
understanding of the amount of traffic that you are expecting.  In cases
where a service provider has established service level agreements with
contracted calling parties, it is especially important to prevent "casual
use" of a web service.

Try contacting the service provider and getting access to their test
servers (another best practice that helps you keep "in development" traffic
from impacting production users.)

I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
>From: "Mark Watkin" <not.a.valid@email.com>
>References: <OsPzSvr4EHA.524@TK2MSFTNGP09.phx.gbl>
<WQzc6Ft4EHA.3152@cpmsftngxa10.phx.gbl>
<uEWTCz04EHA.3388@TK2MSFTNGP15.phx.gbl>
<Q3EcPM64EHA.1964@cpmsftngxa10.phx.gbl>
>Subject: Re: Internal/External IP addresses
>Date: Fri, 17 Dec 2004 08:22:05 -0000
[quoted text clipped - 7 lines]
>NNTP-Posting-Host: 194.154.180.194
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:27258
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 117 lines]
>> >> >
>> >> > Cheers

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.