On Friday 09 July 2010 2:51:35 pm Brandon Richins wrote:
> I was able to get this working by using the JaxWsProxyFactoryBean instead
> of the JaxWsClientFactoryBean.  I wasn't sure if there was any way to use
> URL wsdl = URLFactory.createURL("local://Echo?wsdl") though.  Do you know
> if CXF has a URL handler for local?

No, it does not.  I don't think you can get the wsdl via the local transport 
at this point.  

Dan

> 
> Thanks,
> 
> - Brandon
> 
> -----Original Message-----
> From: Daniel Kulp [mailto:[email protected]]
> Sent: Friday, July 09, 2010 12:07 PM
> To: [email protected]
> Cc: Dennis Sosnoski
> Subject: Re: local transport testing
> 
> On Thursday 08 July 2010 10:56:52 pm Dennis Sosnoski wrote:
> > Besides CXF, Axis(1) and Axis2 both implement local transports. Googling
> > "metro local transport" didn't turn up anything, so I guess Metro does
> > not. Perhaps it's an Apache standard? :-)  In any case, it's a great way
> > of testing things as long as the stack uses the local transport as a
> > true substitute for other transports (so does all the XML serialization,
> > security processing, etc.).
> 
> Right.    CXF also has some coloc stuff, but using that avoids all the XML
> stuff entirely (changes from pass by value to pass by reference), but is
> much faster.   In general, using the local transport keeps as much of the
> "wire level" stuff working correctly.   That includes things like gzip and
> the logging interceptors as well which would be bypassed with the coloc
> stuff.
> 
> Dan
> 
> >   - Dennis
> > 
> > Glen Mazza wrote:
> > > Oh, I've never heard of "local" transport--I see it here:
> > > https://cwiki.apache.org/CXF20DOC/local-transport.html.  I guess I
> > > should update my blog entry.  Is "local transport" just a CXF-specific
> > > thing or a Java standard that other frameworks such as ServiceMix and
> > > Camel can use for their testing?
> > > 
> > > Glen
> > > 
> > > Dennis Sosnoski wrote:
> > >> I think Brandon is trying to use the local transport, not HTTP
> > >> transport with localhost.
> > >> 
> > >> The CXF test code uses local transport, though mainly with canned XML
> > >> responses (for testing client) or requests (for testing server). I was
> > >> able to make local transport work for testing between client and
> > >> server by modifying the org.apache.cxf.jaxws.holder.HolderTest (from
> > >> rt/frontend/jaxws/src/test) to first create the server and then
> > >> connect the client:

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to