You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-user@ws.apache.org by Asaf Lahav <as...@primagrid.com> on 2006/05/09 10:14:51 UTC

Custom resource properties

What is the best way to generate custom resource properties?

Is there a way to define custom resource properties in the service WSDL file
like it's done with Methods?

 

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



 


Re: Custom resource properties

Posted by José Antonio Sánchez <ge...@gmail.com>.
I think the callback is called before the the value is read. I think it
works like this when you invoke a GetResourceProperty operation:

1. Once the requested property has been located, if it has a callback
registered, that callback is called (specifically, that callback's refresh()
operation is called). That operation is supposed to call the backend for the
real value of the property, as a property with a callback normally
represents a property that resides outside of the web service.
2. The refresh() operation must return the value of the property, reading it
from the backend (or from some other source). Once returned, the property
document is updated and the new value returned to the client.

I don't know anything about the internals of Apache WSRF implementation and
I might be wrong. If that is the case, please, someone correct me.


On 5/10/06, Asaf Lahav <as...@primagrid.com> wrote:
>
>  Thanks Jose…
>
>
>
> Just to make sure…
>
> Is the callback invoked before or after the resource property is read?
>
> If I change the value stored in the resource property during the callback,
> would the new or old value be returned to the client that read the resource
> property?
>
>
>
> Thanks in advance,
>
>
>
> *Asaf Lahav*
>
> *VP R&D, Prima Grid LTD.*
>
> Cellular:  972-54-4717955
>
> Phone:   972-3-6540255
>
> Fax:       972-3-6540254
>
>   ------------------------------
>
> *From:* José Antonio Sánchez [mailto:getaceres@gmail.com]
> *Sent:* Tuesday, May 09, 2006 8:36 PM
>
> *To:* wsrf-user@ws.apache.org
> *Subject:* Re: Custom resource properties
>
>
>
> If you register a callback with a property, every time that property is
> read your callback is called, so if you insert some kind of
> notification/log/warning.... in the callback's refresh() operation you can
> know exactly when it's been read.
>
> On 5/9/06, *Asaf Lahav* <as...@primagrid.com> wrote:
>
> Is there any way to know when a resource property value is read?
>
>
>
> *Asaf Lahav*
>
> *VP R&D, Prima Grid LTD.*
>
> Cellular:  972-54-4717955
>
> Phone:   972-3-6540255
>
> Fax:       972-3-6540254
>
>    ------------------------------
>
> *From:* Asaf Lahav [mailto:asaf.lahav@primagrid.com]
> *Sent:* Tuesday, May 09, 2006 8:44 PM
>
>
> *To:* wsrf-user@ws.apache.org
>
> *Subject:* RE: Custom resource properties
>
>
>
> Hi Bruno,
>
>
>
> I appreciate the response...
>
> As I understand from what you say... if I want to use resource properties
> I am required to create and add resource properties to the
> ResourcePropertySet.
>
>
>
> And there is no way to actually create a preset of resource properties
> that will be automatically added to the resources?
>
>
>
> Asaf Lahav
>
>
>
> VP R&D, Prima Grid LTD.
>
>
>
> Cellular:  972-54-4717955
>
>
>
> Phone:   972-3-6540255
>
>
>
> Fax:       972-3-6540254
>
>
>
>
>
>
>
> -----Original Message-----
> From: Bruno Harbulot [mailto:Bruno.Harbulot@manchester.ac.uk]
> Sent: Tuesday, May 09, 2006 7:12 PM
> To: wsrf-user@ws.apache.org
> Subject: Re: Custom resource properties
>
>
>
> Sorry, I've just realised that the resource properties document may do
>
> what you want. I'm just not sure if you mean custom resource properties
>
> to be those you want to access via GetResourcePropertyDocument.
>
>
>
> Bruno.
>
>
>
> Bruno Harbulot wrote:
>
> > Hi ,
>
> >
>
> > It's not really clear what you mean by "custom" resource properties.
>
> > Aren't they all "custom "?
>
> >
>
> > I think that, according to the specs, properties may or may not exist
>
> > for a particular resource at a given point in time. This is probably why
>
> > they're not in the WSDL file (and why there is no extension for them).
>
> > One way to find out which properties are valid is to implement
>
> > QueryResourceProperties and to use it from the client (with "*").
>
> > I also think one of the aims of WSRF is not to depend on an
>
> > object-oriented approach. WSDL doesn't define 'methods' but 'operations'
>
>
> > (within port types or the soon-to-come "interfaces" in WSDL 2.0).
>
> > Listing the object fields might be too close to a Java class model
>
> > (including reflection), although I can see the use for knowing which
>
> > properties a resource has got (and in this case, QueryResourceProperties
>
>
> > seems to be fine ).
>
> >
>
> > Regards ,
>
> >
>
> > Bruno .
>
> >
>
> >
>
> > Asaf Lahav wrote :
>
> >
>
> >> What is the best way to generate custom resource properties?
>
> >>
>
> >> Is there a way to define custom resource properties in the service
>
> >> WSDL file like it's done with Methods ?
>
> >>
>
> >>
>
> >
>
> >
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>
> > For additional commands, e-mail: wsrf-user-help@ws.apache.org
>
> >
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>
> For additional commands, e-mail: wsrf-user-help@ws.apache.org
>
>
>
>
> --
> Saludos.
> José Antonio Sánchez
>



--
Saludos.
José Antonio Sánchez

RE: Custom resource properties

Posted by Asaf Lahav <as...@primagrid.com>.
Another question…

 

A resource property provides a similar behavior to a java bean Setter and
Getter.

If that’s correct, how can I indicate a schema (XSD) type element that would
specify the data type that is returned from or set into the resource
property?

e.g,

public void setSomething(SomeDataType input){

}

Public SomeDataType getSomething(){

}

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



  _____  

From: Asaf Lahav [mailto:asaf.lahav@primagrid.com] 
Sent: Wednesday, May 10, 2006 9:24 PM
To: wsrf-user@ws.apache.org
Subject: RE: Custom resource properties

 

Thanks Jose…

 

Just to make sure…

Is the callback invoked before or after the resource property is read?

If I change the value stored in the resource property during the callback,
would the new or old value be returned to the client that read the resource
property?

 

Thanks in advance,

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



  _____  

From: José Antonio Sánchez [mailto:getaceres@gmail.com] 
Sent: Tuesday, May 09, 2006 8:36 PM
To: wsrf-user@ws.apache.org
Subject: Re: Custom resource properties

 

If you register a callback with a property, every time that property is read
your callback is called, so if you insert some kind of
notification/log/warning.... in the callback's refresh() operation you can
know exactly when it's been read. 

On 5/9/06, Asaf Lahav <as...@primagrid.com> wrote:

Is there any way to know when a resource property value is read?

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



  _____  

From: Asaf Lahav [mailto:asaf.lahav@primagrid.com] 
Sent: Tuesday, May 09, 2006 8:44 PM


To: wsrf-user@ws.apache.org

Subject: RE: Custom resource properties

 

Hi Bruno,

 

I appreciate the response...

As I understand from what you say... if I want to use resource properties I
am required to create and add resource properties to the
ResourcePropertySet.

 

And there is no way to actually create a preset of resource properties that
will be automatically added to the resources?

 

Asaf Lahav

 

VP R&D, Prima Grid LTD.

 

Cellular:  972-54-4717955

 

Phone:   972-3-6540255

 

Fax:       972-3-6540254

 

 

 

-----Original Message-----
From: Bruno Harbulot [mailto:Bruno.Harbulot@manchester.ac.uk] 
Sent: Tuesday, May 09, 2006 7:12 PM
To: wsrf-user@ws.apache.org
Subject: Re: Custom resource properties

 

Sorry, I've just realised that the resource properties document may do 

what you want. I'm just not sure if you mean custom resource properties 

to be those you want to access via GetResourcePropertyDocument.

 

Bruno.

 

Bruno Harbulot wrote:

> Hi ,

> 

> It's not really clear what you mean by "custom" resource properties. 

> Aren't they all "custom "?

> 

> I think that, according to the specs, properties may or may not exist 

> for a particular resource at a given point in time. This is probably why 

> they're not in the WSDL file (and why there is no extension for them). 

> One way to find out which properties are valid is to implement 

> QueryResourceProperties and to use it from the client (with "*").

> I also think one of the aims of WSRF is not to depend on an 

> object-oriented approach. WSDL doesn't define 'methods' but 'operations' 

> (within port types or the soon-to-come "interfaces" in WSDL 2.0). 

> Listing the object fields might be too close to a Java class model 

> (including reflection), although I can see the use for knowing which 

> properties a resource has got (and in this case, QueryResourceProperties 

> seems to be fine ).

> 

> Regards ,

> 

> Bruno .

> 

> 

> Asaf Lahav wrote :

> 

>> What is the best way to generate custom resource properties?

>> 

>> Is there a way to define custom resource properties in the service 

>> WSDL file like it's done with Methods ?

>> 

>>  

> 

> 

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org

> For additional commands, e-mail: wsrf-user-help@ws.apache.org

> 

 

--------------------------------------------------------------------- 

To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org 

For additional commands, e-mail: wsrf-user-help@ws.apache.org 




-- 
Saludos.
José Antonio Sánchez 


RE: Custom resource properties

Posted by Asaf Lahav <as...@primagrid.com>.
Thanks Jose…

 

Just to make sure…

Is the callback invoked before or after the resource property is read?

If I change the value stored in the resource property during the callback,
would the new or old value be returned to the client that read the resource
property?

 

Thanks in advance,

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



  _____  

From: José Antonio Sánchez [mailto:getaceres@gmail.com] 
Sent: Tuesday, May 09, 2006 8:36 PM
To: wsrf-user@ws.apache.org
Subject: Re: Custom resource properties

 

If you register a callback with a property, every time that property is read
your callback is called, so if you insert some kind of
notification/log/warning.... in the callback's refresh() operation you can
know exactly when it's been read. 

On 5/9/06, Asaf Lahav <as...@primagrid.com> wrote:

Is there any way to know when a resource property value is read?

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



  _____  

From: Asaf Lahav [mailto:asaf.lahav@primagrid.com] 
Sent: Tuesday, May 09, 2006 8:44 PM


To: wsrf-user@ws.apache.org

Subject: RE: Custom resource properties

 

Hi Bruno,

 

I appreciate the response...

As I understand from what you say... if I want to use resource properties I
am required to create and add resource properties to the
ResourcePropertySet.

 

And there is no way to actually create a preset of resource properties that
will be automatically added to the resources?

 

Asaf Lahav

 

VP R&D, Prima Grid LTD.

 

Cellular:  972-54-4717955

 

Phone:   972-3-6540255

 

Fax:       972-3-6540254

 

 

 

-----Original Message-----
From: Bruno Harbulot [mailto:Bruno.Harbulot@manchester.ac.uk] 
Sent: Tuesday, May 09, 2006 7:12 PM
To: wsrf-user@ws.apache.org
Subject: Re: Custom resource properties

 

Sorry, I've just realised that the resource properties document may do 

what you want. I'm just not sure if you mean custom resource properties 

to be those you want to access via GetResourcePropertyDocument.

 

Bruno.

 

Bruno Harbulot wrote:

> Hi ,

> 

> It's not really clear what you mean by "custom" resource properties. 

> Aren't they all "custom "?

> 

> I think that, according to the specs, properties may or may not exist 

> for a particular resource at a given point in time. This is probably why 

> they're not in the WSDL file (and why there is no extension for them). 

> One way to find out which properties are valid is to implement 

> QueryResourceProperties and to use it from the client (with "*").

> I also think one of the aims of WSRF is not to depend on an 

> object-oriented approach. WSDL doesn't define 'methods' but 'operations' 

> (within port types or the soon-to-come "interfaces" in WSDL 2.0). 

> Listing the object fields might be too close to a Java class model 

> (including reflection), although I can see the use for knowing which 

> properties a resource has got (and in this case, QueryResourceProperties 

> seems to be fine ).

> 

> Regards ,

> 

> Bruno .

> 

> 

> Asaf Lahav wrote :

> 

>> What is the best way to generate custom resource properties?

>> 

>> Is there a way to define custom resource properties in the service 

>> WSDL file like it's done with Methods ?

>> 

>>  

> 

> 

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org

> For additional commands, e-mail: wsrf-user-help@ws.apache.org

> 

 

--------------------------------------------------------------------- 

To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org 

For additional commands, e-mail: wsrf-user-help@ws.apache.org 




-- 
Saludos.
José Antonio Sánchez 


Re: Custom resource properties

Posted by José Antonio Sánchez <ge...@gmail.com>.
If you register a callback with a property, every time that property is read
your callback is called, so if you insert some kind of
notification/log/warning.... in the callback's refresh() operation you can
know exactly when it's been read.

On 5/9/06, Asaf Lahav <as...@primagrid.com> wrote:
>
>  Is there any way to know when a resource property value is read?
>
>
>
> *Asaf Lahav*
>
> *VP R&D, Prima Grid LTD.*
>
> Cellular:  972-54-4717955
>
> Phone:   972-3-6540255
>
> Fax:       972-3-6540254
>
>   ------------------------------
>
> *From:* Asaf Lahav [mailto:asaf.lahav@primagrid.com]
> *Sent:* Tuesday, May 09, 2006 8:44 PM
>
> *To:* wsrf-user@ws.apache.org
> *Subject:* RE: Custom resource properties
>
>
>
> Hi Bruno,
>
>
>
> I appreciate the response...
>
> As I understand from what you say... if I want to use resource properties
> I am required to create and add resource properties to the
> ResourcePropertySet.
>
>
>
> And there is no way to actually create a preset of resource properties
> that will be automatically added to the resources?
>
>
>
> Asaf Lahav
>
>
>
> VP R&D, Prima Grid LTD.
>
>
>
> Cellular:  972-54-4717955
>
>
>
> Phone:   972-3-6540255
>
>
>
> Fax:       972-3-6540254
>
>
>
>
>
>
>
> -----Original Message-----
> From: Bruno Harbulot [mailto:Bruno.Harbulot@manchester.ac.uk]
> Sent: Tuesday, May 09, 2006 7:12 PM
> To: wsrf-user@ws.apache.org
> Subject: Re: Custom resource properties
>
>
>
> Sorry, I've just realised that the resource properties document may do
>
> what you want. I'm just not sure if you mean custom resource properties
>
> to be those you want to access via GetResourcePropertyDocument.
>
>
>
> Bruno.
>
>
>
> Bruno Harbulot wrote:
>
> > Hi,
>
> >
>
> > It's not really clear what you mean by "custom" resource properties.
>
> > Aren't they all "custom"?
>
> >
>
> > I think that, according to the specs, properties may or may not exist
>
> > for a particular resource at a given point in time. This is probably why
>
> > they're not in the WSDL file (and why there is no extension for them).
>
> > One way to find out which properties are valid is to implement
>
> > QueryResourceProperties and to use it from the client (with "*").
>
> > I also think one of the aims of WSRF is not to depend on an
>
> > object-oriented approach. WSDL doesn't define 'methods' but 'operations'
>
>
> > (within port types or the soon-to-come "interfaces" in WSDL 2.0).
>
> > Listing the object fields might be too close to a Java class model
>
> > (including reflection), although I can see the use for knowing which
>
> > properties a resource has got (and in this case, QueryResourceProperties
>
> > seems to be fine).
>
> >
>
> > Regards,
>
> >
>
> > Bruno.
>
> >
>
> >
>
> > Asaf Lahav wrote:
>
> >
>
> >> What is the best way to generate custom resource properties?
>
> >>
>
> >> Is there a way to define custom resource properties in the service
>
> >> WSDL file like it's done with Methods?
>
> >>
>
> >>
>
> >
>
> >
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>
> > For additional commands, e-mail: wsrf-user-help@ws.apache.org
>
> >
>
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>
> For additional commands, e-mail: wsrf-user-help@ws.apache.org
>



--
Saludos.
José Antonio Sánchez

RE: Custom resource properties

Posted by Asaf Lahav <as...@primagrid.com>.
Is there any way to know when a resource property value is read?

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



  _____  

From: Asaf Lahav [mailto:asaf.lahav@primagrid.com] 
Sent: Tuesday, May 09, 2006 8:44 PM
To: wsrf-user@ws.apache.org
Subject: RE: Custom resource properties

 

Hi Bruno,

 

I appreciate the response...

As I understand from what you say... if I want to use resource properties I
am required to create and add resource properties to the
ResourcePropertySet.

 

And there is no way to actually create a preset of resource properties that
will be automatically added to the resources?

 

Asaf Lahav

 

VP R&D, Prima Grid LTD.

 

Cellular:  972-54-4717955

 

Phone:   972-3-6540255

 

Fax:       972-3-6540254

 

 

 

-----Original Message-----
From: Bruno Harbulot [mailto:Bruno.Harbulot@manchester.ac.uk] 
Sent: Tuesday, May 09, 2006 7:12 PM
To: wsrf-user@ws.apache.org
Subject: Re: Custom resource properties

 

Sorry, I've just realised that the resource properties document may do 

what you want. I'm just not sure if you mean custom resource properties 

to be those you want to access via GetResourcePropertyDocument.

 

Bruno.

 

Bruno Harbulot wrote:

> Hi,

> 

> It's not really clear what you mean by "custom" resource properties. 

> Aren't they all "custom"?

> 

> I think that, according to the specs, properties may or may not exist 

> for a particular resource at a given point in time. This is probably why 

> they're not in the WSDL file (and why there is no extension for them). 

> One way to find out which properties are valid is to implement 

> QueryResourceProperties and to use it from the client (with "*").

> I also think one of the aims of WSRF is not to depend on an 

> object-oriented approach. WSDL doesn't define 'methods' but 'operations' 

> (within port types or the soon-to-come "interfaces" in WSDL 2.0). 

> Listing the object fields might be too close to a Java class model 

> (including reflection), although I can see the use for knowing which 

> properties a resource has got (and in this case, QueryResourceProperties 

> seems to be fine).

> 

> Regards,

> 

> Bruno.

> 

> 

> Asaf Lahav wrote:

> 

>> What is the best way to generate custom resource properties?

>> 

>> Is there a way to define custom resource properties in the service 

>> WSDL file like it's done with Methods?

>> 

>>  

> 

> 

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org

> For additional commands, e-mail: wsrf-user-help@ws.apache.org

> 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org

For additional commands, e-mail: wsrf-user-help@ws.apache.org


RE: Custom resource properties

Posted by Asaf Lahav <as...@primagrid.com>.
Hi Bruno,

 

I appreciate the response...

As I understand from what you say... if I want to use resource properties I
am required to create and add resource properties to the
ResourcePropertySet.

 

And there is no way to actually create a preset of resource properties that
will be automatically added to the resources?

 

Asaf Lahav

 

VP R&D, Prima Grid LTD.

 

Cellular:  972-54-4717955

 

Phone:   972-3-6540255

 

Fax:       972-3-6540254

 

 

 

-----Original Message-----
From: Bruno Harbulot [mailto:Bruno.Harbulot@manchester.ac.uk] 
Sent: Tuesday, May 09, 2006 7:12 PM
To: wsrf-user@ws.apache.org
Subject: Re: Custom resource properties

 

Sorry, I've just realised that the resource properties document may do 

what you want. I'm just not sure if you mean custom resource properties 

to be those you want to access via GetResourcePropertyDocument.

 

Bruno.

 

Bruno Harbulot wrote:

> Hi,

> 

> It's not really clear what you mean by "custom" resource properties. 

> Aren't they all "custom"?

> 

> I think that, according to the specs, properties may or may not exist 

> for a particular resource at a given point in time. This is probably why 

> they're not in the WSDL file (and why there is no extension for them). 

> One way to find out which properties are valid is to implement 

> QueryResourceProperties and to use it from the client (with "*").

> I also think one of the aims of WSRF is not to depend on an 

> object-oriented approach. WSDL doesn't define 'methods' but 'operations' 

> (within port types or the soon-to-come "interfaces" in WSDL 2.0). 

> Listing the object fields might be too close to a Java class model 

> (including reflection), although I can see the use for knowing which 

> properties a resource has got (and in this case, QueryResourceProperties 

> seems to be fine).

> 

> Regards,

> 

> Bruno.

> 

> 

> Asaf Lahav wrote:

> 

>> What is the best way to generate custom resource properties?

>> 

>> Is there a way to define custom resource properties in the service 

>> WSDL file like it's done with Methods?

>> 

>>  

> 

> 

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org

> For additional commands, e-mail: wsrf-user-help@ws.apache.org

> 

 

---------------------------------------------------------------------

To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org

For additional commands, e-mail: wsrf-user-help@ws.apache.org


Re: Custom resource properties

Posted by Bruno Harbulot <Br...@manchester.ac.uk>.
Sorry, I've just realised that the resource properties document may do 
what you want. I'm just not sure if you mean custom resource properties 
to be those you want to access via GetResourcePropertyDocument.

Bruno.

Bruno Harbulot wrote:
> Hi,
> 
> It's not really clear what you mean by "custom" resource properties. 
> Aren't they all "custom"?
> 
> I think that, according to the specs, properties may or may not exist 
> for a particular resource at a given point in time. This is probably why 
> they're not in the WSDL file (and why there is no extension for them). 
> One way to find out which properties are valid is to implement 
> QueryResourceProperties and to use it from the client (with "*").
> I also think one of the aims of WSRF is not to depend on an 
> object-oriented approach. WSDL doesn't define 'methods' but 'operations' 
> (within port types or the soon-to-come "interfaces" in WSDL 2.0). 
> Listing the object fields might be too close to a Java class model 
> (including reflection), although I can see the use for knowing which 
> properties a resource has got (and in this case, QueryResourceProperties 
> seems to be fine).
> 
> Regards,
> 
> Bruno.
> 
> 
> Asaf Lahav wrote:
> 
>> What is the best way to generate custom resource properties?
>>
>> Is there a way to define custom resource properties in the service 
>> WSDL file like it's done with Methods?
>>
>>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: wsrf-user-help@ws.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
For additional commands, e-mail: wsrf-user-help@ws.apache.org


Re: Custom resource properties

Posted by Bruno Harbulot <Br...@manchester.ac.uk>.
Hi,

It's not really clear what you mean by "custom" resource properties. 
Aren't they all "custom"?

I think that, according to the specs, properties may or may not exist 
for a particular resource at a given point in time. This is probably why 
they're not in the WSDL file (and why there is no extension for them). 
One way to find out which properties are valid is to implement 
QueryResourceProperties and to use it from the client (with "*").
I also think one of the aims of WSRF is not to depend on an 
object-oriented approach. WSDL doesn't define 'methods' but 'operations' 
(within port types or the soon-to-come "interfaces" in WSDL 2.0). 
Listing the object fields might be too close to a Java class model 
(including reflection), although I can see the use for knowing which 
properties a resource has got (and in this case, QueryResourceProperties 
seems to be fine).

Regards,

Bruno.


Asaf Lahav wrote:
> What is the best way to generate custom resource properties?
> 
> Is there a way to define custom resource properties in the service WSDL 
> file like it's done with Methods?
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
For additional commands, e-mail: wsrf-user-help@ws.apache.org