473,379 Members | 1,167 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,379 software developers and data experts.

Please help : The request failed with HTTP status 505: HTTP Version Not Supported.

Aga
Hi, I'm quite new in WebServices.

I work in VS2003, C#.

My code is :

MyWebReference.ClassX x1=new MyWebReference.ClassX();
x1.Url="address to wsdl";
System.Net.NetworkCredential nc=new
System.Net.NetworkCredential("user","password","do main");
x1.Credentials=nc;

and after execute this code :

x1.SomeSendMethod(par1,par2);

I get "The request failed with HTTP status 505: HTTP Version Not
Supported."

How can I check/change the version of HTTP? I can't find how to
resolve this problem.

And the second question : Can I use a System.Net.WebRequest to work
with WebService and if so, how I can involve SomeSendMethod with
parameters?

please help!
JACK

Mar 17 '07 #1
7 10380
You don't mention on which type of Web server the Web service is located. Is
it IIS?

--
Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS
"Aga" <le*****@poczta.wp.plwrote in message
news:11**********************@e1g2000hsg.googlegro ups.com...
Hi, I'm quite new in WebServices.

I work in VS2003, C#.

My code is :

MyWebReference.ClassX x1=new MyWebReference.ClassX();
x1.Url="address to wsdl";
System.Net.NetworkCredential nc=new
System.Net.NetworkCredential("user","password","do main");
x1.Credentials=nc;

and after execute this code :

x1.SomeSendMethod(par1,par2);

I get "The request failed with HTTP status 505: HTTP Version Not
Supported."

How can I check/change the version of HTTP? I can't find how to
resolve this problem.

And the second question : Can I use a System.Net.WebRequest to work
with WebService and if so, how I can involve SomeSendMethod with
parameters?

please help!
JACK

Mar 18 '07 #2
Aga
On 18 Mar, 17:00, "<ct>" <carstentATintegratedsolutions.dkwrote:
You don't mention on which type of Web server the Web service is located. Is
it IIS?
Yes, it is. and server accepts HTTP 1.0 and 1.1.


Mar 18 '07 #3
I'm assuming this is your own Web service, so can you browse to it from a
browser (in Visual Studio, right-click the .asmx file in Solution Explorer
and click View in Browser? If so, can you add a reference from within Visual
Studio (right-click your project in Solution Explorer and click Add Web
Reference)?

--
Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS
"Aga" <le*****@poczta.wp.plwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
On 18 Mar, 17:00, "<ct>" <carstentATintegratedsolutions.dkwrote:
>You don't mention on which type of Web server the Web service is located.
Is
it IIS?

Yes, it is. and server accepts HTTP 1.0 and 1.1.


Mar 19 '07 #4
Aga
On 19 Mar, 06:49, "<ct>" <carstentATintegratedsolutions.dkwrote:
I'm assuming this is your own Web service, so can you browse to it from a
browser (in Visual Studio, right-click the .asmx file in Solution Explorer
and click View in Browser? If so, can you add a reference from within Visual
Studio (right-click your project in Solution Explorer and click Add Web
Reference)?
Unfortunately, it's not my own WebService. But of course I've added
this to my project as a Web reference. I can see all definitions in
WSDL but when I want to send some request I receive HTTP 505
exception. Can I define version of HTTP in a header of a request? But
how to do this, when I only execute a method like
x1.SomeSendMethod(par1,par2)?

JACK

Mar 19 '07 #5
hi Aga,

I am facing a similar problem..
pls share if u have already solved it.

I read at some place ...that this problem is coming in VS2003 but not in
VS2005..

Check it out...i will do that today...and will post the result....:-)
"Aga" wrote:
On 19 Mar, 06:49, "<ct>" <carstentATintegratedsolutions.dkwrote:
I'm assuming this is your own Web service, so can you browse to it from a
browser (in Visual Studio, right-click the .asmx file in Solution Explorer
and click View in Browser? If so, can you add a reference from within Visual
Studio (right-click your project in Solution Explorer and click Add Web
Reference)?

Unfortunately, it's not my own WebService. But of course I've added
this to my project as a Web reference. I can see all definitions in
WSDL but when I want to send some request I receive HTTP 505
exception. Can I define version of HTTP in a header of a request? But
how to do this, when I only execute a method like
x1.SomeSendMethod(par1,par2)?

JACK

Apr 2 '07 #6
Hey guys

I am able to solve that...

Make sure ur preAuthonticate prop is true ... it works
Apr 3 '07 #7
jbx
Hi, I'm quite new in WebServices.

I work in VS2003, C#.

My code is :

MyWebReference.ClassX x1=new MyWebReference.ClassX();
x1.Url="address to wsdl";
System.Net.NetworkCredential nc=new
System.Net.NetworkCredential("user","password","do main");
x1.Credentials=nc;

and after execute this code :

x1.SomeSendMethod(par1,par2);

I get "The request failed with HTTP status 505: HTTP Version Not
Supported."

How can I check/change the version of HTTP? I can't find how to
resolve this problem.

And the second question : Can I use a System.Net.WebRequest to work
with WebService and if so, how I can involve SomeSendMethod with
parameters?

please help!
JACK
Try putting this:

ServicePointManager.Expect100Continue = false;

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
Oct 23 '07 #8

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

Similar topics

0
by: Kent Tegels | last post by:
I'm working with a Java Web Service (Specifically, Java, Axis on Tomcat) and a VB.NET 1.1 client. The service is using Basic Authentication. The code involved on my side is darned trivial: ...
5
by: rk325 | last post by:
Yes, I've seen many posts about this type of error, and none of the solutions people applied worked for me. So please read this one carefully and help me if you can. I have a web service...
1
by: Rachel | last post by:
I have created a simple web service in VC# that adds two numbers. It returns an integer value to the client once invoked. I used Visual Studio .NET 2003, Windows XP Pro and .NET 1.1. I created a...
1
by: jctwguy | last post by:
G'day all My pc is on a domain and I have a test server in a work group. all the web application and the web service are working fine locally, but when I copy the project using service extension...
0
by: Mark | last post by:
I have a web service in Axis running on Tomcat which is protected with basic authentication. When I attempt to access the service from a .Net client, passing the correct network credentials, it...
1
by: google | last post by:
I'm building a small ASPX page in C# to forward HTTP POST requests to another site. When the other site returns an HTTP error such as 404 or 405, I want to return that same HTTP status value to my...
8
by: Tim Reynolds | last post by:
Our .Net application calls a web method of aplpication 2 that resides on their Apache server. When I as a developer C#, Studios 2003, make the call to their web method from my desktop, I receive no...
1
by: rpjd | last post by:
I am having a problem getting the http.status of an xmlhttprequest. The request readystate has come back as readystate 4, but then it stops without confirming the http.status. Any help appreciated....
0
by: Jazz Tan | last post by:
Good day, i had face some problem that taking me so much of time to think about it. can any one help me find out the solution?? thank in advance. below is the page message that i can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.