This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Using/Loading a custom HttpTransportPipe in JaxWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Using/Loading a custom HttpTransportPipe in JaxWS" Watch "Using/Loading a custom HttpTransportPipe in JaxWS" New topic
Author

Using/Loading a custom HttpTransportPipe in JaxWS

Vijaishanker bala
Ranch Hand

Joined: Sep 08, 2005
Posts: 82
Hi,

In my application, I have extended the com.sun.xml.ws.transport.http.client.HttpTransportPipe (that Jax WS uses by default) to provide a custom TransportPipe which uses apache HttpClient internally as transport. i.e. to process send the WS request and receive the WS response. I have also written an extension to the com.sun.xml.ws.api.pipe.TransportTubeFactory to create and provide my custom TransportPipe. This is being loaded by java's ServiceLoader mechanism, i.e. providing a META-INF/services/fullyqualifiedclassname file which contains the implementation I want to use. 7 out of 10 times, my custom TransportTubeFactory is loaded but the other times, the default TransportTubeFactory is being used. Is there any way to force loading of my custom transport, all the time.

thanks,

vijai


When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." <br />Linus Torvalds
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using/Loading a custom HttpTransportPipe in JaxWS
 
Similar Threads
selected value through select items
javax.xml.ws Packaging simple Questions
include native library with webservice deployement
Problem using custom ClassLoader
Calendar Control