In counter deployment descriptor, edit the following
<parameter name="providers" value="
DestroyProvider SetTerminationTimeProvider GetRPProvider
QueryRPProvider GetMRPProvider
SubscribeProvider GetCurrentMessageProvider"/>
and add SetRPProvider. You will also need to modify the Resource class
"Counter.java" to allow such an operation. This tutorial might be helpful:
http://gdp.globus.org/gt4-tutorial/multiplehtml/ch06.html.
Rachana
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Donglai Zhang
Sent: Friday, October 24, 2008 12:12 AM
To: [email protected]
Subject: [gt-user] WS-CORE: SetResourceProperties for Counter Service
example
Hi,
I am trying to use the command line provided by ws-core-4.2.0 to insert,
update and get resource properties.
With command counter-create, I created an epr file. I can use
wsrf-get-property to get the Value property. However, when I use
wsrf-update-property to update the property, it told me the
"SetResourceProperties" operation is not available.
I checked the Widget example, I found the difference between the
./schema/core/tests/interop/widget_port_type.wsdl and counter_flattened.wsdl
is an operation SetResourceProperties as following:
<wsdl:operation name="SetResourceProperties">
......
</wsdl:operation>
and the difference between the binding files are:
<wsdl:operation name="SetResourceProperties">
...........
</wsdl:operation>
So I added these operations to the corresponding counter wsdl files. After I
recompiled the package, And tried to use counter-create to create an epr, I
got the following error.
Error: java.lang.Exception: [CORE] Operation 'SetResourceProperties' defined
in wsdl but it's not implemented in the 'CounterService' service.
Would you please tell me how can I get around this problem? So I can use the
command line with the Counter example?
Thanks in advance!
--
Donglai Zhang