perfsonar-dev - Re: [pS-dev] Problem parsing XML LS Message
Subject: perfsonar development work
List archive
- 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:
< ==> [<]
> ==> [>]
&qt; ==> ["]
& ==> [&]
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/>"><psservice:service xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/" id="localhost.d202414:1109284515e:15c1">
<psservice:serviceName>Java RRD MA</psservice:serviceName>
<psservice:accessPoint>http://selena.acad.bg:8080/axis/services/MeasurementArchiveService</psservice:accessPoint>
<psservice:serviceType>RRD MA</psservice:serviceType>
<psservice:serviceDescription>Java RRD MA, perfSONAR project</psservice:serviceDescription>
</psservice:service></psservice:datum>
<psservice:datum xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"><psservice:service xmlns:psservice=" http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/" id="localhost.d202414:1109284515e:1ad0">
<psservice:serviceName>Java MA</psservice:serviceName>
<psservice:accessPoint>http://perfmonc.cesnet.cz:8080/axis/services/MeasurementArchiveService</psservice:accessPoint>
<psservice:serviceType>MA</psservice:serviceType>
<psservice:serviceDescription>Java RRD MA, perfSONAR project</psservice:serviceDescription>
</psservice:service></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 < and > 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/ ||
====================================================================
- Problem parsing XML LS Message, Ivo K. Koga, 02/06/2007
- Re: [pS-dev] Problem parsing XML LS Message, Maciej Glowiak, 02/06/2007
Archive powered by MHonArc 2.6.16.