[MOBY-dev] XML elements into serviceNote get scaped
Paul Gordon
gordonp at ucalgary.ca
Tue May 15 22:15:26 UTC 2007
I have noticed this problem before too with some services, but did not
know how those services were built...this leads me to believe it
probably is a latent bug in MoSeS.
> Hi Martin,
>
> All my services are MoSeS generated. I don't deal directly with any XML
> at all... Tomorrow I can perform more tests on different services, but
> my intuition is that there is a problem in MoSeS... The strange thing is
> that I didn't realize about it before...Have you performed any test with
> any other service provider?
>
> Cheers,
>
> ------------------------------------------------
> Iván Párraga García
> Computer Scientist
> Molecular Modelling & Bioinformatics Unit
> INB - Instituto Nacional de Bioinformática
> Josep Samitier 1-5
> 08028 Barcelona
> Spain
> tel.: +34 93 403 71 55
> fax.: +34 93 403 71 57
> e-mail: ivanp at mmb.pcb.ub.es
> group page: http://mmb.pcb.ub.es
> pgp key: http://mmb.pcb.ub.es/~ivanp/pubkey.asc
> ------------------------------------------------
>
>
>
> Martin Senger escribió:
>
>>> I've suffered these problems in the past with Java XML...
>>>
>>>
>> Yes, me too. And so far I always found that the problem was on the service
>> side. As it is here (see below). Was this service generated by Moses?
>> Because if yes then it is also my problem :-)
>>
>> The XML returned by the service in question is wrongly escaped. This is what
>> is on -the-wire:
>>
>> ...
>> <result xsi:type="xsd:string"><?xml version="1.0"
>> encoding="UTF-8"?>
>> <moby:MOBY xmlns:moby="http://www.biomoby.org/moby">
>> <moby:mobyContent>
>> <moby:serviceNotes>&lt;moby:mobyException
>> severity="2" &gt;
>> ...
>>
>> The beginning is as it should be: <moby:MOBY...
>>
>> But the service notes are double-escaped - because the ampersand which is
>> the part of the construct "<" is again escaped so we get wrongly "
>> >&lt;moby:mobyException". And this is what the service sent over the
>> network (I caught it using a TCP monitor, not the Dashboard or other tool
>> that may already fiddle with the raw data).
>>
>> Regards,
>> Martin
>>
>>
>>
>>
> _______________________________________________
> MOBY-dev mailing list
> MOBY-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/moby-dev
>
> !DSPAM:60005,464a2e0121086797816178!
>
>
>
>
More information about the MOBY-dev
mailing list