Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Re: Working LS service for testing

Subject: perfsonar development work

List archive

Re: [pS-dev] Re: Working LS service for testing


Chronological Thread 
  • From: "Vedrin Jeliazkov" <>
  • To: Stijn Melis <>
  • Cc: <>
  • Subject: Re: [pS-dev] Re: Working LS service for testing
  • Date: Wed, 07 Mar 2007 18:50:09 +0200
  • Disposition-notification-to: "Vedrin Jeliazkov" <>

Hi Stijn,

I've checked that currently the following MP

http://200.128.80.177:8080/perfSONAR-CLMP-1.0/services/CommandLineService

is the only one registered at:

http://loco3.man.poznan.pl:8080/LookupService/services/LookupService

If you would like to check yourself, here is one possible way to achieve this:

1) Launch perfsonarUI via Java Web Start:

http://perfsonar.acad.bg/perfsonar.jnlp

2) Open the Playground tab.

3) Enter the following URL in the Service address field:

http://loco3.man.poznan.pl:8080/LookupService/services/LookupService

4) Enter the attached XML query in the Query field.

5) Press "Execute Query" and observe the result in the Response field (also
attached).

Note that the BWCTL MP might have correctly registered with the LS in the
past, but the registration could have expired, so perhaps you should try
registering again.

Kind regards,
Vedrin

Stijn Melis
<>
wrote:

> > You may use SOAPClient:
> >
> > org.perfsonar.client.testHarness.SOAPClient
> >
> > with parameters: (LS_URL) (INPUT_FILE.XML) (OUTPUT_FILE.XML)
> >
> > If you don't want to use ant to run LS client ("ant client-query")
> > you may take a look at:
> >
> >
>
https://svn.internet2.edu/svn/perfsonar/trunk/perfsonar/contrib/benchmarking/ls/
>
> >
> >
> > especially:
> >
> >
>
https://svn.internet2.edu/svn/perfsonar/trunk/perfsonar/contrib/benchmarking/ls/runclient
>
> >
> >
> > remember to have all required jars:
> >
> >
>
https://svn.internet2.edu/svn/perfsonar/trunk/perfsonar/contrib/benchmarking/ls/jar/required-jars
>
> >
> >
> > Maciej
>
> Hi,
>
> First of all, I'm having trouble finding out what exactly I need to
> send. At the moment, this is the Request I'm sending:
>
> <nmwg:message
> type="LSQueryRequest"
> id="msg1"
> xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
>
>
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
>
> <nmwg:metadata id="meta1">
>
> <xquery:subject id="sub1">
> declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
> data(/nmwg:store/nmwg:metadata/@id)
> </xquery:subject>
> <nmwg:eventType>service.lookup.xquery</nmwg:eventType>
>
> </nmwg:metadata>
> <nmwg:data/>
> </nmwg:message>
>
> Is this request correct?
>
> Secondly, I'm having some difficulties finding out what the LS URL is. I
> tried the same URL I sent the LSRegisterRequest to, but that didn't work
> out. I got this Response:
>
> <nmwg:message id="msg1_resp" messageIdRef="msg1" type="LSQueryResponse"
> xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
> <nmwg:metadata id="resultCodeMetadata">
> <nmwg:eventType>warning.common.no_metadata</nmwg:eventType>
> </nmwg:metadata>
> <nmwg:data id="resultDescriptionData_for_resultCodeMetadata"
> metadataIdRef="resultCodeMetadata">
> <nmwgr:datum
> xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";>No output metadata was
> returned by MessageHandler. Maybe there was no data trigger, or data
> trigger didn't have valid metadataIdRef?</nmwgr:datum>
> </nmwg:data>
> </nmwg:message>
>
>
> I noticed Maciej provided a host (loco3.man.poznan.pl) and a port
> (8680), but I can't find an URL that has the LS. Any help finding this
> URL would be much appreciated.
>
> Thanks in advance,
>
> Stijn
>

<?xml version='1.0' encoding='UTF-8'?>

<nmwg:message
type="LSQueryRequest"
id="msg1"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";

xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>


<nmwg:metadata id="meta1">

<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/";;

for $metadata in /nmwg:store/nmwg:metadata
let $metadata_id := $metadata/@id
let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
where $metadata//psservice:serviceType="MP"
return &lt;lookup-storage-from-query&gt;
{$metadata} {$data}
&lt;/lookup-storage-from-query&gt;
</xquery:subject>
<nmwg:eventType>service.lookup.xquery</nmwg:eventType>

</nmwg:metadata>

<nmwg:data metadataIdRef="meta1"/>

</nmwg:message><?xml version="1.0" encoding="UTF-8"?>
<nmwg:message id="msg1_resp" messageIdRef="msg1" type="LSQueryResponse"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
<nmwg:metadata id="LSQueryResponseMetadata"/>
<nmwg:data id="LSQueryResponseData" metadataIdRef="LSQueryResponseMetadata">
<psservice:datum
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
&lt;lookup-storage-from-query&gt;
&lt;nmwg:metadata xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
id="http://200.128.80.177:8080/perfSONAR-CLMP-1.0/services/CommandLineService"&gt;
&lt;perfsonar:subject
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
id="commonParameters"&gt;
&lt;psservice:service
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
id="localhost.man.poznan.pl.-374423e7:1112c7bbb09:-7ff2"&gt;

&lt;psservice:serviceName&gt;perfSONAR-CLMP-1.0&lt;/psservice:serviceName&gt;

&lt;psservice:accessPoint&gt;http://200.128.80.177:8080/perfSONAR-CLMP-1.0/services/CommandLineService&lt;/psservice:accessPoint&gt;

&lt;psservice:serviceType&gt;MP&lt;/psservice:serviceType&gt;
&lt;psservice:serviceDescription&gt;UNIFACS CLMP test
service&lt;/psservice:serviceDescription&gt;
&lt;/psservice:service&gt;
&lt;/perfsonar:subject&gt;
&lt;/nmwg:metadata&gt;
&lt;nmwg:data xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
id="http://200.128.80.177:8080/perfSONAR-CLMP-1.0/services/CommandLineService/1173276649031/0";

metadataIdRef="http://200.128.80.177:8080/perfSONAR-CLMP-1.0/services/CommandLineService"/&gt;
&lt;/lookup-storage-from-query&gt;
</psservice:datum>
</nmwg:data>
</nmwg:message>

  • Re: [pS-dev] Re: Working LS service for testing, Vedrin Jeliazkov, 03/07/2007

Archive powered by MHonArc 2.6.16.

Top of Page