473,657 Members | 2,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservices through firewall

Anyone knows how to add web reference in C#, when the internet need
authentication.

The credentials for proxy is asked and I pass the information. But after
all, I got this message:

"The underlying connection was closed: Unable to connect to the remote
server."
Tks!
Nov 17 '05 #1
6 4544
Daniel,

There should be a property on your web service proxy which takes an
implementation of IWebProxy (which you can get from the static
GetDefaultProxy method through the WebProxy class). Set that, and it should
work.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:7C******** *************** ***********@mic rosoft.com...
Anyone knows how to add web reference in C#, when the internet need
authentication.

The credentials for proxy is asked and I pass the information. But after
all, I got this message:

"The underlying connection was closed: Unable to connect to the remote
server."
Tks!

Nov 17 '05 #2
Yes... But how I make that proxy, if I can't access the webservice?

Tks again.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

There should be a property on your web service proxy which takes an
implementation of IWebProxy (which you can get from the static
GetDefaultProxy method through the WebProxy class). Set that, and it should
work.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:7C******** *************** ***********@mic rosoft.com...
Anyone knows how to add web reference in C#, when the internet need
authentication.

The credentials for proxy is asked and I pass the information. But after
all, I got this message:

"The underlying connection was closed: Unable to connect to the remote
server."
Tks!


Nov 17 '05 #3
Daniel,

There are two proxies here. There is the proxy between your machine and
the internet, and there is the proxy (in code) that you are using to make
calls on the remote web service. You need to set the proxy on your code
(which calls the web service) with the details of the proxy between your
machine and the internet so that it can reach the webservice.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:BF******** *************** ***********@mic rosoft.com...
Yes... But how I make that proxy, if I can't access the webservice?

Tks again.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

There should be a property on your web service proxy which takes an
implementation of IWebProxy (which you can get from the static
GetDefaultProxy method through the WebProxy class). Set that, and it
should
work.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in
message
news:7C******** *************** ***********@mic rosoft.com...
> Anyone knows how to add web reference in C#, when the internet need
> authentication.
>
> The credentials for proxy is asked and I pass the information. But
> after
> all, I got this message:
>
> "The underlying connection was closed: Unable to connect to the remote
> server."
>
>
> Tks!


Nov 17 '05 #4
OK...

Still talking about WS proxy (code). I know 2 ways to get that proxy:

1) Using the wsdl tool (in .Net command prompt);
2) Adding a web reference in my project.

And there's where lives my doubt. I don't know how do get that proxy
(neither wsdl, neither add web reference) just because the proxy (internet
proxy) blocks the connection. Even typing proxy info (just like IE) I steel
receive the "underlying " message....

Any idea of how to pass the proxy info in command prompt (in order to use
the wsdl.exe) or how to set the proxy info in add reference wizard?

Tks

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

There are two proxies here. There is the proxy between your machine and
the internet, and there is the proxy (in code) that you are using to make
calls on the remote web service. You need to set the proxy on your code
(which calls the web service) with the details of the proxy between your
machine and the internet so that it can reach the webservice.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:BF******** *************** ***********@mic rosoft.com...
Yes... But how I make that proxy, if I can't access the webservice?

Tks again.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

There should be a property on your web service proxy which takes an
implementation of IWebProxy (which you can get from the static
GetDefaultProxy method through the WebProxy class). Set that, and it
should
work.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in
message
news:7C******** *************** ***********@mic rosoft.com...
> Anyone knows how to add web reference in C#, when the internet need
> authentication.
>
> The credentials for proxy is asked and I pass the information. But
> after
> all, I got this message:
>
> "The underlying connection was closed: Unable to connect to the remote
> server."
>
>
> Tks!


Nov 17 '05 #5
Daniel,

There are a number of slash commands to use for setting the proxy using
WSDL (/proxy, /proxydomain).

However, the easiest solution would be to get the WSDL file through IE
or a browser, and then just save it locally, and run WSDL.exe against that.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:D0******** *************** ***********@mic rosoft.com...
OK...

Still talking about WS proxy (code). I know 2 ways to get that proxy:

1) Using the wsdl tool (in .Net command prompt);
2) Adding a web reference in my project.

And there's where lives my doubt. I don't know how do get that proxy
(neither wsdl, neither add web reference) just because the proxy (internet
proxy) blocks the connection. Even typing proxy info (just like IE) I
steel
receive the "underlying " message....

Any idea of how to pass the proxy info in command prompt (in order to use
the wsdl.exe) or how to set the proxy info in add reference wizard?

Tks

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

There are two proxies here. There is the proxy between your machine
and
the internet, and there is the proxy (in code) that you are using to make
calls on the remote web service. You need to set the proxy on your code
(which calls the web service) with the details of the proxy between your
machine and the internet so that it can reach the webservice.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in
message
news:BF******** *************** ***********@mic rosoft.com...
> Yes... But how I make that proxy, if I can't access the webservice?
>
> Tks again.
>
> "Nicholas Paldino [.NET/C# MVP]" wrote:
>
>> Daniel,
>>
>> There should be a property on your web service proxy which takes
>> an
>> implementation of IWebProxy (which you can get from the static
>> GetDefaultProxy method through the WebProxy class). Set that, and it
>> should
>> work.
>>
>> Hope this helps.
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - mv*@spam.guard. caspershouse.co m
>>
>> "Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in
>> message
>> news:7C******** *************** ***********@mic rosoft.com...
>> > Anyone knows how to add web reference in C#, when the internet need
>> > authentication.
>> >
>> > The credentials for proxy is asked and I pass the information. But
>> > after
>> > all, I got this message:
>> >
>> > "The underlying connection was closed: Unable to connect to the
>> > remote
>> > server."
>> >
>> >
>> > Tks!
>>
>>
>>


Nov 17 '05 #6
Thank you so pretty much!!

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

There are a number of slash commands to use for setting the proxy using
WSDL (/proxy, /proxydomain).

However, the easiest solution would be to get the WSDL file through IE
or a browser, and then just save it locally, and run WSDL.exe against that.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in message
news:D0******** *************** ***********@mic rosoft.com...
OK...

Still talking about WS proxy (code). I know 2 ways to get that proxy:

1) Using the wsdl tool (in .Net command prompt);
2) Adding a web reference in my project.

And there's where lives my doubt. I don't know how do get that proxy
(neither wsdl, neither add web reference) just because the proxy (internet
proxy) blocks the connection. Even typing proxy info (just like IE) I
steel
receive the "underlying " message....

Any idea of how to pass the proxy info in command prompt (in order to use
the wsdl.exe) or how to set the proxy info in add reference wizard?

Tks

"Nicholas Paldino [.NET/C# MVP]" wrote:
Daniel,

There are two proxies here. There is the proxy between your machine
and
the internet, and there is the proxy (in code) that you are using to make
calls on the remote web service. You need to set the proxy on your code
(which calls the web service) with the details of the proxy between your
machine and the internet so that it can reach the webservice.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in
message
news:BF******** *************** ***********@mic rosoft.com...
> Yes... But how I make that proxy, if I can't access the webservice?
>
> Tks again.
>
> "Nicholas Paldino [.NET/C# MVP]" wrote:
>
>> Daniel,
>>
>> There should be a property on your web service proxy which takes
>> an
>> implementation of IWebProxy (which you can get from the static
>> GetDefaultProxy method through the WebProxy class). Set that, and it
>> should
>> work.
>>
>> Hope this helps.
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - mv*@spam.guard. caspershouse.co m
>>
>> "Daniel Santana" <Da***********@ discussions.mic rosoft.com> wrote in
>> message
>> news:7C******** *************** ***********@mic rosoft.com...
>> > Anyone knows how to add web reference in C#, when the internet need
>> > authentication.
>> >
>> > The credentials for proxy is asked and I pass the information. But
>> > after
>> > all, I got this message:
>> >
>> > "The underlying connection was closed: Unable to connect to the
>> > remote
>> > server."
>> >
>> >
>> > Tks!
>>
>>
>>


Nov 17 '05 #7

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

Similar topics

6
2071
by: Joseph Geretz | last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is that my sample WebService pages no longer worked. The Invoke test button is missing. This is addresed by the following KB article: Microsoft Knowledge Base Article - 819267 INFO: HTTP GET and HTTP POST Are Disabled by Default http://support.microsoft.com/default.aspx?scid=kb;en-us;819267 The article advises that a new block be inserted into Web.config (or into
5
1390
by: JD | last post by:
Hello Everyone, I am doing some research on Webservices for a possible project and I was wondering if anyone knew if a specific port needed to be opened on a firewall for them to work, from what I can see that doesn't seem to be the case, but just needed confirmation one way or the other. Thanks. -- J. D
4
3187
by: nixon | last post by:
Hi there! Im trying to build a 3 tier application that uses a smartclient in the "view" layer. The communication between the smartclient and the server should be webservices because of potentiel firewall issues. I´ve looke at to smartclient demos to figure out how the experts do the stuff, design and overall architecture, Microsofts IssueVision and TaskVision. These applications uses DataSet´s to communicate between the layers and
2
3042
by: sameer | last post by:
hi all, Description of my .net application: Desktop application using webservices over the internet to communicate with the sql server2000 database which is sitting behind the webserver. Done in VS2003 using VB.net on framework 1.1, Database is sql server 2000 Application works perfectectly ok and no problems at all even if there is a firewall in between. Question is would my application have any problems if it is calling the
0
1202
by: sameer | last post by:
hi all, Description of my .net application: Desktop application using webservices over the internet to communicate with the sql server2000 database which is sitting behind the webserver. Done in VS2003 using VB.net on framework 1.1, Database is sql server 2000 Application works perfectectly ok and no problems at all even if there is a firewall in between. Question is would my application have any problems if it is calling the
0
908
by: sahil | last post by:
hi , how can i access webservices sitting outside the firewall in my VS express C# application.because when i try to "ADD WEBREFERENCE" to my application and click go.....it authenticates me for my proxy server , but still throws an error saying "error in downloading XXXXXX.wsdl " the remote host did not respond properly.......and bla bla....." why is it so even when i have includede the Webproxy settings in my code ........ can anyone help...
5
1841
by: ChrisM | last post by:
Hi, I have written a stand alone WinForms application with an MS Access back-end for the (small)company I work for. They are now talking about moving a part of their operations into a second site 50 miles away from the main one. The second site will simply be a stores. They will need some software in order to do a few things here, but this will probably come down to half a dozen or so main functions (booking stock in, issuing stock etc)
7
2242
by: pthomet | last post by:
Another formulation of the message tittle could be : is it really "safe" (in the business sense) to embed a SSL webservice consumer into any given software, given that any time a proxy server will be encountered, then the call will fail (based on my knowledge) ? ....Different Player, shoot again... I am asking a question which was posted several times in the last months, but never answered; any advice / insight would be appreciated. ...
6
1631
by: =?Utf-8?B?Q3JhaWc=?= | last post by:
If I have an application that I send out to users, and the application interacts with the database (behind the scenes, no direct sql creation by the users)....do webservices make the app more secure? I always thought of webservices as just a good way to allow users to have an API for them to interact with the database, but are webservices useful if the user never really knows that they are there?
1
2609
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As Linux gains increasing acceptance in corporate datacenters and
0
8385
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8723
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7316
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.