wsrp message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Re: [wsrp] Properties
- From: Rich Thompson <richt2@us.ibm.com>
- To: wsrp@lists.oasis-open.org
- Date: Fri, 8 Feb 2008 07:22:19 -0500
The v2 example should not insert an
element called propertylist ... it is the type of the response and never
actually appears as an element. In fact, the only difference is the namespace
changing to v2 ...
I see the spec is silent, but, if I
remember correctly, the intent was that a property name appearing more
than once would be treated the same way most app servers treat a querystring
parameter being repeated; namely, it becomes an array. Anyone have a different
recollection?
The any is the schema equivalent for
what most programming languages call "Object" ... that is it
can be anything. While the general case is the array of objects, the special
case of a single string is called out separately as it is expected to be
a common use case.
Rich
From:
| "Nader Oteifa" <nader2@netunitysoftware.com>
|
To:
| <wsrp@lists.oasis-open.org>
|
Date:
| 02/07/08 03:49 PM
|
Subject:
| [wsrp] Properties |
Within a “PropertList” type, can the same
named property (multiple Properties element with same name attribute) appear
more than once? If yes, does that mean it is an array of values for
the same property?
Within a single “Property” type (Properties
element in setPortletProperties, etc.), the value can be either a single
“stringValue” or “Any”. What can “Any” be: multiple elements
identified by the property name QName and defined by the property type?
If multiple elements with same name exist, are they multiple property
values? And if so, why not have multiple “stringValue” property values?
Given the example of returning portlet properties
in the 1.0 primer:
<urn:getPortletPropertiesResponse xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
<urn:properties name=" stockSymbolList">
<urn:stringValue>AMZN</urn:stringValue>
</urn:properties>
<urn:properties name="refreshInterval">
<xs:int xmlns:xs="http://www.w3.org/2001/XMLSchema">180</xs:int>
</urn:properties>
</urn:getPortletPropertiesResponse>
In 2.0, would this look like the following:
<urn:getPortletPropertiesResponse xmlns:urn="urn:oasis:names:tc:wsrp:v1:types"
xmlns:mn=”urn:mynamespace”>
<urn:propertyList>
<urn:properties name="mn:stockSymbolList">
<urn:stringValue>AMZN</urn:stringValue>
</urn:properties>
<urn:properties name="mn:refreshInterval">
<mn:refreshInterval>
<xs:int xmlns:xs="http://www.w3.org/2001/XMLSchema">180</xs:int>
</mn:refreshInterval>
</urn:properties>
<urn:propertyList>
</urn:getPortletPropertiesResponse>
Is this correct?
Nader Oteifa
NetUnity Software
- References:
- Properties
- From: "Nader Oteifa" <nader2@netunitysoftware.com>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]