Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] Problem parsing XML LS Message

Subject: perfsonar development work

List archive

Re: [pS-dev] Problem parsing XML LS Message


Chronological Thread 
  • From: Maciej Glowiak <>
  • To: "Ivo K. Koga" <>
  • Cc:
  • Subject: Re: [pS-dev] Problem parsing XML LS Message
  • Date: Tue, 06 Feb 2007 14:50:54 +0100
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
  • Organization: Poznan Supercomputing and Networking Center

Ivo K. Koga wrote:
Hi all,

I was trying to access the LS deployed at the sites in the following address:
http://wiki.perfsonar.net/jra1-wiki/index.php/Lookup_Services <http://wiki.perfsonar.net/jra1-wiki/index.php/Lookup_Services> <http://wiki.perfsonar.net/jra1-wiki/index.php/Lookup_Services>

I am facing a problem when I try to request those deployed LS when parsing the response message returned.

When I accessed the LS deployed at:http://selena.acad.bg:8070/axis/services/LookupService <http://selena.acad.bg:8070/axis/services/LookupService>


Hi Ivo,

This is correct behaviour. The response may be, in general, any XML (or even non-XML) string, because it depends on XQuery request. So it would be difficult (or impossible) to validate such response.

Just convert XML entities:

&lt; ==> [<]
&gt; ==> [>]
&qt; ==> ["]
&amp; ==> [&]

etc.

Maciej




I received the following response:

<psservice:datum xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/ <http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/>">&lt;psservice:service xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"; id="localhost.d202414:1109284515e:15c1"&gt;
&lt;psservice:serviceName&gt;Java RRD MA&lt;/psservice:serviceName&gt;
&lt;psservice:accessPoint&gt;http://selena.acad.bg:8080/axis/services/MeasurementArchiveService&lt;/psservice:accessPoint&gt;
&lt;psservice:serviceType&gt;RRD MA&lt;/psservice:serviceType&gt;
&lt;psservice:serviceDescription&gt;Java RRD MA, perfSONAR project&lt;/psservice:serviceDescription&gt;
&lt;/psservice:service&gt;</psservice:datum>
<psservice:datum xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>&lt;psservice:service xmlns:psservice=" http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"; id="localhost.d202414:1109284515e:1ad0"&gt;
&lt;psservice:serviceName&gt;Java MA&lt;/psservice:serviceName&gt;
&lt;psservice:accessPoint&gt;http://perfmonc.cesnet.cz:8080/axis/services/MeasurementArchiveService&lt;/psservice:accessPoint&gt;
&lt;psservice:serviceType&gt;MA&lt;/psservice:serviceType&gt;
&lt;psservice:serviceDescription&gt;Java RRD MA, perfSONAR project&lt;/psservice:serviceDescription&gt;
&lt;/psservice:service&gt;</psservice:datum>


I think it's a character encoding problem, but did not found how to solve it once some tags comes correct and other comes inside &lt; and &gt; strings.

Regards,

Ivo K. Koga




--

--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|

Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================



Archive powered by MHonArc 2.6.16.

Top of Page