469,602 Members | 1,638 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

Consume webservice within intranet from internet

Hello.

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
server.

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
webservice.

Web.config:

<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxyserver:port"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
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",
"password")
Dim asdf As String = ws.Process()
I still receive the same error and am running out of ideas. Please
help.

Thanks.

Dec 4 '06 #1
0 886

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
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.