Hi, This seems to work for me:
org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType epr = ((XmlBeansEndpointReference) getEndpointReference()).getXmlObject (Constants.NS_URI_ADDRESSING_08)); The code is from my Resource class, and the getEndpointReference() method is defined in the AbstractResource class. - Christian On Sat, 2006-02-25 at 13:36 +0000, Java Helpline wrote: > Hi, > When last year I started working with WSRF Apache implementation > there was nice example of Printer which implements Factory Pattern, > but then they removed that example with UnixFileSystem. UnixFileSystem > is not even demonstrating all the functionalities what you can expect > from WSRF. > > I am trying to implement Factory Design Pattern, where there is create > method which returns EndpointReferenceType after creating the > resource. Problem is when I create Resource I can get its > EndpointReference and have no clue how EndpointReference can be > converted into EndpointReferenceType. In Globus implementation they > have > AddressingUtils.createEndpointReference(ResourceContext, ResourceKey) > to create EndpointReferenceType. > > Can anyone tell me any easy way to convert EndpointReference into > EndpointReferenceType. > > Thankyou. > Asif > > > ______________________________________________________________________ > > Yahoo! Photos – NEW, now offering a quality print service from just 8p > a photo. -- Jan Christian Bryne <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]