471,897 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Consume webservice within intranet from internet


I have a webservice located on a machine within our network. I have
developed and tested this webservice internally without having to worry
about credentials. Now I wish for web applications located on a server
outside the network to be able to consume this webservice. I do not
want to put the webservice outside the network, and only want to allow
a handful of web applications to be able to consume it.

The error I'm getting is as follows:

The underlying connection was closed: Unable to connect to the remote

Upon some researching I found articles about HTTP Proxy server/firewall
settings messing with the connections, resulting in the previous error.
So I made changes to the web.config and the way that I call the


usesystemdefault = "false"
I call the webservice as follows:
Dim ws As New myServices.webservice
Dim myProxy As New WebProxy("http://proxyip:proxyport", True)
ws.Proxy = myProxy
ws.Credentials = New System.Net.NetworkCredential("name",
Dim asdf As String = ws.Process()
I still receive the same error and am running out of ideas. Please


Dec 4 '06 #1
0 924

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by MacLanca | last post: by
8 posts views Thread by Topper | last post: by
1 post views Thread by Eric | last post: by
4 posts views Thread by TrinityPete | last post: by
5 posts views Thread by David Lozzi | last post: by
11 posts views Thread by John Sheppard | last post: by
5 posts views Thread by Jonathan Kay | last post: by

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.