[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">&lt;?xml version=&quot;1.0&quot;
>> encoding=&quot;UTF-8&quot;?&gt;
>> &lt;moby:MOBY xmlns:moby=&quot;http://www.biomoby.org/moby&quot;&gt;
>>   &lt;moby:mobyContent&gt;
>>     &lt;moby:serviceNotes&gt;&amp;lt;moby:mobyException
>> severity=&quot;2&quot; &amp;gt;
>> ...
>>
>> The beginning is as it should be: &lt;moby:MOBY...
>>
>> But the service notes are double-escaped - because the ampersand which is
>> the part of the construct "&lt;" is again escaped so we get wrongly "
>> &gt;&amp;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