Skip to main content

JAX-WS custom HTTP transport

No replies
tavigiurgiu
Offline
Joined: 2011-01-06
Points: 0

Hi everybody, including Jitendra,
hope I am not offtopic, but looks like u are the right guys for WS in JDK 6. I have a big issue on implementing custom HTTP transport in jdk 6, for JAX-WS.
Reasons I need to implement:

  • http proxy usage without overwriting DefaultProxy (multiple web services clients in same JVM are accessing direct or via proxy, same time)
  • connect timeout not working in JAX-WS from JDK
  • I MUST catch the HTTP response body (for logging reasons) even if due to an unexpected event, the response is not in SOAP format (maybe a 404 response)

I followed your advice and also http://blogs.sun.com/oleksiys/entry/how_to_create_custom_network and created own transport,
everything works fine under Eclipse, using JDK and my own transport, but when compiling (mvn), I get errors like
package com.sun.istack.internal does not exist
package com.sun.xml.internal.ws.api does not exist
...
probably due to
http://java.sun.com/products/jdk/faq/faq-sun-packages.html
Here comes my Q: do you see a solution for implementing custom HTTP transport, and be able to compile ??
Thanks in advance,
Tavi Giurgiu