• 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 code = 100

 
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,

I need your help here to figure out a problem I'm facing with Axis.

I have an Axis client (version 1.1). It sends a request to a provider, and the provider sends back a response. (Until now, everything is ok and quite simple).
Using TCPMon, I can se the provider sends 2 http response s. First a HTTP 100 (Continue), then a HTTP 200 OK

But my axis client raises an AxisFault while processing the response.
100)Continue
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java(Compiled Code))

Sounds like my Axis client is not able to deal with HTTP 100 (Continue)....

Any idea to solve this problem ???

Thanks in advance
 
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
after some reserch whithin AXIS source code, it sounds like http 100 (continue) is not really supported by axis if the request had no Expect : 100-continue header.

If this is true (I'm not quite sure), then it is an axis bug, as the http W3c spec mentions a server can return a http 100 status code even if the client had not required it...
 
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
I would like to find a workround to my problem,

Does anybody know how to configure/use the Axis client to have "Expect : 100-continue" in each header request ??
 
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
Workaround 1 :
Send SOAP request in HTTP 1.0, so that the server is not allowed to return a HTTP 100 Continue status.
This is not a good idea as WS-I discourage the use of HTTP 1.0 (1.1 is prefered)

Workaround 2 :
Send the SOAP request with a Expect : 100 -Continue header. Then Axis source code work fine and is able to deal with 100-Continue response

Nevertheless, with W/A 2, you need to enable the Axis chunk mode....
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for updating Jean
reply
    Bookmark Topic Watch Topic
  • New Topic