Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aga - 17 Mar 2007 13:22 GMT
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","domain");
    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
<ct> - 18 Mar 2007 17:00 GMT
You don't mention on which type of Web server the Web service is located. Is
it IIS?

Signature

Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS

> Hi, I'm quite new in WebServices.
>
[quoted text clipped - 24 lines]
> please help!
>  JACK
Aga - 18 Mar 2007 19:18 GMT
> 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.
<ct> - 19 Mar 2007 06:49 GMT
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)?

Signature

Carsten Thomsen
Senior .NET Solutions Architect / Developer / Author
MCAD/MCSD/MCSE/MCTS

>> 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.
Aga - 19 Mar 2007 10:49 GMT
> 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
kris - 02 Apr 2007 21:28 GMT
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....:-)

> > 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
[quoted text clipped - 10 lines]
>
>  JACK
kris - 03 Apr 2007 14:38 GMT
Hey guys

I am able to solve that...

Make sure ur preAuthonticate prop is true ... it works
jbx - 23 Oct 2007 10:51 GMT
> Hi, I'm quite new in WebServices.
>
[quoted text clipped - 24 lines]
>  please help!
>   JACK

Try putting this:

ServicePointManager.Expect100Continue = false;

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.