On Tuesday, October 04, 2011 5:05:47 PM Guy Pardon wrote:
> Hi,
> 
> I am looking for a simple way to let a JAX-WS service return a reference to
> itself, with some parameter values to include. Kind of REST-y but with
> SOAP. The idea is that the consumer can store the reference data
> 
> Are there any best practices that are also WS-I (BP) compliant? Simplicity
> is very important, too.

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


> 
> Thanks,
> Guy
> 
> Dr. Guy Pardon | Atomikos BVBA | a 'Cool Vendor' by Gartner in 2011
> 
> CTO
> Phone: +32 15 61 30 55 | Email: g...@atomikos.com | 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
dk...@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to