473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Using a web service in Visual Studio 2003

10
Hi,

I am new to web services but I have been asked to connect to an external web service through Visual Studio 2003.

The problem that I have is that the company who developed the web service have not and will not publish their WSDL online and the web service is in the form of a .svc file.

The other problem is that I have to go through a proxy server for external access.

I have created a new console app in VS2003 and tried to add a web reference pointing to the url of the .svc file but I get an error:

The proxy settings on this computer are not configured correctly for web discovery. Click the Help button for more information.

I think that I need to configure my proxy settings in some way.

Please could someone give me some advice on how I connect and use this web service which is in the format of a .svc file.

Thanks in advance

Gary
Jul 3 '09 #1
4 4758
gjones
10
Hi,

In a console app, I am trying to add a web reference to an external web service in Visual Studio 2003. The web service that I am trying to connect to is a .svc file and we connect through a proxy.

When I enter the URL and click Go in the Add Web reference screen in VS2003, I get an error which reads:-

There was an error downloading 'http://............dummyws1.svc'.

The request failed with HTTP status 400: Bad Request.


I believe this is because of the http version that we are running, how do I change it for this request to the web service?

Thanks in advance
Gary
Jul 3 '09 #2
Curtis Rutland
3,256 Expert 2GB
Hmm, did clicking the help button give you any useful advice?
Jul 3 '09 #3
You may need to provide the proxy connection in the creation of the service object as described in this article:

http://www.codeproject.com/KB/webser...xy.aspx?df=100

Extracted code:

Expand|Select|Wrap|Line Numbers
  1. Dim service As New YourService.Class
  2. Dim credentials As New System.Net.NetworkCredential("username", "password", "domain") 
  3. Dim proxy As New System.Net.WebProxy("10.0.0.1", 80) 
  4. service.Proxy = proxy
  5.  
Hope that is relevant.
Cheers,
Scott
Jul 3 '09 #4
gjones
10
Hi,

In a console app, I am trying to add a web reference to an external web service in Visual Studio 2003. The web service that I am trying to connect to is a .svc file and we connect through a proxy.

When I enter the URL and click Go in the Add Web reference screen in VS2003, I get an error which reads:-

There was an error downloading 'http://............dummyws1.svc'.

The request failed with HTTP status 400: Bad Request.


Does anyone have any ideas what might be causing this. I got the same error when trying to connect to this web service using SoapUI, but got it resolved by changing the http version from 0.9 to 1.1 within SoapUI.

Could this be the same problem? How do I correct this in VS2003?

Thanks in advance
Gary
Jul 7 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: dansan | last post by:
We have a webservice that we have been deploying using the deployment project in Visual Studio. Now we are trying to deploy this service to a server that has multiple sites. I have looked...
2
by: raghavendra | last post by:
Hi, How to run automatically windows service by using setup deployment insatllation script using visual studio 2003.? What i did is :-- 1. created a windows service & tested the same. 2....
2
by: Nick Prudhoe | last post by:
When I simply try to create a new ASP.NET web service in VS.NET 2003 on W2k/IIS5 i get this message... "The web server reported the following error when attempting to create or open the Web...
7
by: Larry Bird | last post by:
I have a windows service that want to un-install. When I run "installutil /u serivcename" I get the error that the serivce is not installed on my machine. However, when view the serivce console I...
3
by: Sathyaish | last post by:
How do you debug a web service in Visual Studio .NET 2003? To give you some background, I have been programming for some over 8 years now and know how to debug VB, VC++ apps in Visual Studio 6.0...
1
by: Serge Skorokhodov (216716244) | last post by:
Hi, Service pack for VC++.NET 2003 was promised in March. Any news? TIA -- Serge
1
by: ligong.yang | last post by:
Hi all, I got tortured by a very weird problem when I was using k. wilder's random generator class in my program. PS: wilder's generator class can be found at...
6
by: Mark Sandfox | last post by:
How do i get my ASP.NET Web Application to work on my MS Server 2003 on the internet? Step by step please. I have created and built a simple calendar app that works locally, but not when i...
2
by: wph101larrya | last post by:
I have a developed service and client application running on a Vista machine in IIS7 in the Visual Studio 2008 beta 2 with .NET 3.5 framework. I am trying to deploy the service app to a test...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.