I used the WsResourceClient to get the list of Topics but got the
below error. I'm using the nightly build. Any ideas what is wrong
here?
org.apache.muse.ws.addressing.soap.SoapFault: [ID =
'PropertyNotInSchema'] There is no property named
'{http://docs.oasis-open.org/wsn/b-2}Topic' defined in the schema. A
property should not have any operations or metadata applied to it if
it is not in the WS-RP document.
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:279)
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:235)
at
org.apache.muse.ws.resource.remote.WsResourceClient.getResourceProperty(WsResourceClient.java:134)
at
com.savi.fw.remote.notification.NotificationUtil.main(NotificationUtil.java:18)
Ramesh
On 12/9/06, Daniel Jemiolo <[EMAIL PROTECTED]> wrote:
You need to invoke GetResourceProperty on the wsnt:Topic property:
WsResourceClient client = new WsResourceClient(...);
Element[] topicXML = client.getResourceProperty(WsnConstants.TOPIC_QNAME);
//
// you can also do this, but only with Muse's client:
//
QName[] topicNames = client.getPropertyAsObject(WsnConstants.TOPIC_QNAME,
QName.class);
Assuming this is a non-Java client, just make a GetRP request for the
wsnt:Topic property:
<wsrf-rp:GetResourceProperty
xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
xmlns:wsnt="http://docs-oasis-open.org/wsn/b-2">
wsnt:Topic
</wsrf-rp:GetResourceProperty>
"Ramesh Gurunathan" <[EMAIL PROTECTED]> wrote on 12/08/2006
11:28:08 AM:
> Hi,
>
> I would like to retrieve the list of Topics that are available for
> subscription. Could anyone advice me how I can do this? Let me be more
> specific. The web services client will retrieve list of Topics from
> the server and lets the user to select the appropriate subscription.
> Can this be achieved?
>
> Thank you for your input
>
> Ramesh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]