List Info

Thread: Confusion regarding EndpointReferenceType and EndpointReference




Confusion regarding EndpointReferenceType and EndpointReference
user name
2006-02-25 13:36:31
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! PhotosNEW, now offering a quality print service from just 8p a photo.
Confusion regarding EndpointReferenceType and EndpointReference
user name
2006-02-26 11:12:41
Hi,

This seems to work for me:

org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenc
eType 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 <chrbii.uib.no>


------------------------------------------------------------
---------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org

Confusion regarding EndpointReferenceType and EndpointReference
user name
2006-02-26 13:17:43
Hi Christian,
 &nbsp;  Thank you very much for your reply. It is also working for me with one small problem. I can't find the Constants class which should be in the package org.apache.axis.message.addressing. But from internet I saw the value of
 
public static final String NS_URI_ADDRESSING_08 =
public static final String NS_URI_ADDRESSING_2004_08 =
 &nbsp; &nbsp;   ; &nbsp;  http://schemas.xmlsoap.org/ws/2004/08/addressing;
 
so have hard coded the String Value. One question do you have downloaded WS Addressing reference implementation seperately from Apollo, or it is part of Apollo Library. It seems to me that it is not included with Apollo WSRF implementation.
 
Once again thank you for your help.
It seems you are also using Factory Design Patte rn for WSRF, have you tried to search for home of any WSRF Service through JNDI lookup(). I have done that for Globus WS Core and earlier versions of Apollo WSRF but is not working for current implementation.
 
Regards
Asif

Jan Christian Bryne <chrbii.uib.no&gt; wrote:
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 exampl e of Printer which implements Factory Pattern,
&gt; 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
>
>
> ______________________________________________________________________
>
&g t; Yahoo! Photos – NEW, now offering a quality print service from just 8p
> a photo.
--
Jan Christian Bryne II.UIB.NO>


---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribews.apache.org
For additional commands, e-mail: wsrf-user-helpws.apache.org



Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )