This is one feature I'd really like to get in.

-David

Begin forwarded message:

Resent-From: <[email protected]>
From: David Blevins <[email protected]>
Date: January 22, 2009 4:41:40 PM PST
To: [email protected]
Subject: Re: In-VM transport for web service endpoint
Reply-To: [email protected]

Hi John,

I asked the CXF guys if they already had any special support for this and they pointed me at:
 http://cwiki.apache.org/CXF20DOC/local-transport.html

That page unfortunately didn't have any information on clients using the JAX-WS Service.create(..) approach for getting services. I dug around in their source and it doesn't seem like that functionality works with anything other than their proprietary client apis -- I could be wrong.

Regardless, we could probably cook up a port-free local transport of our own that would work just fine. We've already got a lightweight http impl that we use for testing and it would just take the addition of a "local" URLStreamHandler that bypassed a socket and piped data directly to our http impl.

Then instead of something like:

Service calcService = Service.create(new URL("http://127.0.0.1:4204/CalculatorImpl?wsdl "), null);

You could go port-free with something like:

Service calcService = Service.create(new URL("local:// CalculatorImpl?wsdl"), null);

Let us know if that would work for you.

-David


On Jan 20, 2009, at 9:16 PM, da3m0npr0c3ss wrote:


Hello,

I'm evaluating OpenEJB in the embedded mode for unit testing our J2EE
application stack. I've tested everything up to the @WebService. Is there
an "In-VM" web service endpoint that can be used for testing SOAP web
services, similar to the Glassfish Metro "In-VM" transport at
https://jax-ws-commons.dev.java.net/in-vm/ .

Thanks,
John
--
View this message in context: 
http://www.nabble.com/In-VM-transport-for-web-service-endpoint-tp21577302p21577302.html
Sent from the OpenEJB User mailing list archive at Nabble.com.





Reply via email to