Hello all,

I have also posted this message to the gt-dev list because it might be a bug.

I have defined a service with a SimpleResourceProperty "test" containing
a single String value with namespace "TestResourceNamespaces.RP_TEST".
My resource class has a member "ResourceProperty testRP;" for that
purpose. It is initialized with an empty string using
"this.dgmRP.add(new String());" and added to a ResourcePropertySet.

After I call the services SetResourceProperty operation (see code
below), calling "testRP.get(0)" returns a MessageElement instead of a
String which is not correct in my interpretation of a resource property.
E.g. if I want to access the property by code inside one of my
operations it is not clear if the result will be a String or a
MessageElement.

Is there something that I have misunderstood or is that a bug in
SetResourcePropertyProvider?

Bye,
Stefan

--- code begin ---
WSResourcePropertiesServiceAddressingLocator locator = new
WSResourcePropertiesServiceAddressingLocator();
SetResourceProperties_PortType port =
locator.getSetResourcePropertiesPort(epr);
UpdateType update = new UpdateType();
MessageElement msg = new MessageElement(TestResourceNamespaces.RP_TEST,
"testString");
update.set_any(new MessageElement[] { msg });
SetResourceProperties_Element request = new SetResourceProperties_Element();
request.setUpdate(update);
port.setResourceProperties(request);
--- code end ---

begin:vcard
fn:Stefan Kurzbach
n:Kurzbach;Stefan
org;quoted-printable;quoted-printable:Technische Universit=C3=A4t Hamburg-Harburg;Institut f=C3=BCr Wasserbau
email;internet:[EMAIL PROTECTED]
tel;work:+49 40 42878 4305
x-mozilla-html:FALSE
version:2.1
end:vcard

Reply via email to