• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Axis and HTTP version

 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Quite a silly question here...but...
I've got one web service which is sending HTTP/1.0 requests. How can it be changed to HTTP/1.1 ?
(The webservice is implemented with Axis 1.1)
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Web service sending HTTP 1.0?
Is it really so that the client is sending HTTP/1.1 and the server is responding back with HTTP/1.0?
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Excuse me Lasse, I acknowledge I was not very clear.
Actually, my Axis client (the consumer) sends HTTP/1.0 and the service deployed sends HTTP/1.1 back
My consumer is written using Axis 1.1
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting. I wonder whether it's up to the Axis servlet or the underlying web server/container...
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My understanding is that's it's up to Axis itself.
If you take a look at the HTTPSender.jav (axis.jar), you can see there's a test to determine whether http10 or http11 will be used.
Moreover, my other understanding is that Axis does not rely on the underlying webapp when it sends request, because it explicitally opens a socket. (still check HTTPSender.java)
Maybe I'm wrong somewhere.... Any hint is appreciated.
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From axis HTTPSender.java

My problem is :
How can I set the MessageContext.HTTP_TRANSPORT_VERSION to http 1.1.
This is a final field

I'm sure I am missing something trivial but what....
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jean -
I believe it is something like this:
Call call = (Call) service.createCall(); //Create a call to the service.
call.setScopedProperty(MessageContext.HTTP_TRANSPORT_VERSION,
HTTPConstants.HEADER_PROTOCOL_V11);
Hope this helps.
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

and IT WORKS !! Now my Axis client sends HTTP/1.1
Where the hell did you find this infomation. The doc is so fuzzy about this !!
Anyway, Thank you very much, Matt.
This little problem was becoming irritating
[ December 03, 2003: Message edited by: Jean-Louis Marechaux ]
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Almost forgot...
It is in one of the Axis sample classes.
reply
    Bookmark Topic Watch Topic
  • New Topic