perfsonar-dev - Re: Res: LS GUI
Subject: perfsonar development work
List archive
- From: Maciej Glowiak <>
- To: Herbert Souza <>
- Cc: Perfsonar Development List <>
- Subject: Re: Res: LS GUI
- Date: Wed, 24 Jan 2007 13:53:17 +0100
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
- Organization: Poznan Supercomputing and Networking Center
Herbert,
As I wrote before: in general there are two ways of generating message
1) by DOM Document (jDOM, Xerces, DOM4j, etc)
2) by NMWG classes
API for Query (such as LSQueryRequestGenerator.java) was using 1), but I gave it up. This API is now not up to date, but I didn't have time to re-write it with NMWG classes usage. That wasn't so urgent, because nobody used it.
API for Registration uses 2) and, in my opinion, this should be used also for generating other requests.
The namespace in NMWG classes can't be set manually (like in DOM Document). The namespaces are hidden behind packages. Let me explain in example (please focus on import clauses):
----------------------------------------------------------
org.ggf.ns.nmwg.base.v2_0.Subject
class is <nmwg:subject> tag
----------------------------------------------------------
and
----------------------------------------------------------
org.ggf.ns.nmwg.characteristic.utilization.v2_0.Subject
class is <utilization:subject> tag
----------------------------------------------------------
namespace prefixes are set in class constructors.
Regarding your second e-mail, I am not sure where the problem is:
The Query LS explain is about of the Query Message, because I am not seeing in Query Message the xQuery expression like in old messages.
<xquery:subject id="sub1">
declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";
declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";
/nmwg:store/nmwg:metadata
</xquery:subject>
That's XQuery expression inside <xquery:subject> element, and:
<nmwg:eventType>service.lookup.xquery</nmwg:eventType>
that's query type inside <nmwg:eventType>.
Maciej
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================
- Res: LS GUI, Herbert Souza, 01/22/2007
- Re: Res: LS GUI, Maciej Glowiak, 01/24/2007
- <Possible follow-up(s)>
- Res: LS GUI, Herbert Souza, 01/22/2007
Archive powered by MHonArc 2.6.16.