[JXTA discuss] attribute/value discovery (plz help)
Michele Amoretti <[email protected]> Wed, 14 Sep 2005 14:05:01 +0200
| Newsgroups | gmane.comp.java.jxta.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I ask this again....
I would like to know if it is possible to search for an advertisement using=
a=20
sub-element (child) of one of the main attribute fields (name, description,=
=20
param, ecc.)
E.g.=20
[publisher side]
StructuredTextDocument param =3D (StructuredTextDocument)
StructuredDocumentFactory.newStructuredDocument(new=20
MimeMediaType("text/xml"), "Parm");
String WSDLFile =3D rps.getInterfaceDescription("WSDL");
if (WSDLFile !=3D null) {
Element e =3D param.createElement("WSDL", WSDLFile);
param.appendChild(e);
}
ModuleSpecAdvertisement msAdv =3D ....
msAdv.setParam(param);
[searcher side]
=2E...getRemoteAdvertisements(null, DiscoveryService.ADV, attribute, value,=
10);
Can attribute be "WSDL"? Is there a way to specify that the attribute we=20
search for is "WSDL child of Parm"?
=2D-=20
Michele Amoretti, Ph.D. Student
Dip. di Ingegneria dell'Informazione, Universit=E0 degli Studi di Parma
Parco Area delle Scienze, 181A I-43100 Parma Italy
Phone: +39-(0521)-906147 Fax: +39-(0521)-905723
Home page:
http://dsg.ce.unipr.it/People/amoretti/Amoretti.html