On Thursday, October 06, 2011 4:09:13 AM Guy Pardon wrote:
> Dan,
> 
> Thanks! So how would a consumer interpret this reference to perform a call
> of some method on the Endpoint in question?

If you have the generated interface for it, you can just call 
reference.getPort(Interface.class) and you are all set.   *THAT SAID*, 
Guillaume and I discovered this morning that this works "OK" with CXF on both 
client and server or JAX-WS 2.2 mixed with CXF.   However, the JAX-WS built 
into the JDK6 won't work very well with the CXF reference.  

You can also use the generated Service classes.   There are getPort(*) calls 
that take the reference.

Dan

> 
> Guy
> 
> > For JAX-WS/SOAP, it's build right in.   The JAX-WS Endpoint object (if
> > using Endpoint.publish) has a method right on it to get the
> > W3CEndpointReference for the service which can be passed around like
> > any normal parameter.  The injected WebServiceContext can also be used
> > to call getEndpointReference (passing optional Element params) to
> > generate the EPR for the current service.
> > 
> > Dan
> 
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
> Talend - http://www.talend.com
> 
> Dr. Guy Pardon | Atomikos BVBA | a 'Cool Vendor' by Gartner in 2011
> 
> CTO
> Phone: +32 15 61 30 55 | Email: [email protected] | Twitter:
> http://twitter.com/guypardon | Skype: guypardon | YahooIM: guypardon
> 
> Europe: CET (local time:
> http://www.timeanddate.com/worldclock/city.html?n=48)
> 
> Visit us at http://www.atomikos.com/
> 
> Visit our blog at http://blog.atomikos.com/
> 
> Visit the Atomikos TransactionsEssentials Community at
> http://fogbugz.atomikos.com/default.asp?community
> 
> Visit the Atomikos Training site at
> http://www.atomikos.com/Main/AtomikosTraining
> 
> The information in this email is confidential and only meant for the
> addressee(s). The content of this email is informal and will not be legally
> binding for Atomikos.
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to