• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis and HTTP version

 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • 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)
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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....
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Almost forgot...
It is in one of the Axis sample classes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!