[MOBY-dev] different types of results
Mark Wilkinson
markw at illuminae.com
Sat Nov 12 21:38:51 UTC 2005
That's bizarre...??!? There is no reason for that to happen as far as I
can tell. Both calls go through the same subroutine, and at least when
they leave the MOBY Central code modules they are being returned as
String's. I haven't had a chance to duplicate your result here (I'll
try to get to that when I have finished what I am doing), but my first
suspicon is that the SOAP::Lite library itself is somehow looking at
the content of the document it is about to pass, and making the choice
to send it one way or the other. Certainly the decision is not being
made by MOBY code...
I'll look into this more deeply later today.
Hey Martin, we're almost in the same time-zone! Greetings from Sydney!
Mark
Martin Senger wrote:
>I wonder why moby register returned for two almost identical calls
>different result type: once a String, once an array of bytes:
>
>At the end of this message you will find two xml files, they differ only
>in the authority:
>
>senger at sherekhan:~/jMoby$ diff q1.xml q2.xml
>11c11
>< <authURI>samples.jmoby.net</authURI>
>---
>
>
>><authURI>www.iris.irri.org</authURI>
>>
>>
>18d17
><
>
>When I call "findService" for authority samples.jmoby.net, I get results
>as a String. When I call it for www.iris.irri.org, I am getting it as an
>array of bytes.
>
>In both cases the contents of the reasult is correct but I wonder if this
>is the bug. Does it perhaps depend on the special unicode characters that
>are used in the services? (Not that I am awaee of any of those in these
>services.)
>
>I understand that biomoby services and clients are supposed to understand
>both String and byte arrays, but it was never (AFAIK) mentioned that also
>biomoby registry has this behaviour. I can fix it in jMoby (actually I am
>fixing it as I speak) but I think that such behaviour is not good. Any
>comment on that?
>
>Thanks,
>Martin
>
>q1.xml
>------
><findService><inputObjects>
><Input>
></Input>
></inputObjects>
><outputObjects>
><Output>
></Output>
></outputObjects>
><serviceType></serviceType>
><Category>moby</Category>
><authURI>samples.jmoby.net</authURI>
><expandObjects>1</expandObjects>
><expandServices>1</expandServices>
><authoritative>0</authoritative>
><keywords>
></keywords>
></findService>
>
>q2.xml
>------
><findService><inputObjects>
><Input>
></Input>
></inputObjects>
><outputObjects>
><Output>
></Output>
></outputObjects>
><serviceType></serviceType>
><Category>moby</Category>
><authURI>www.iris.irri.org</authURI>
><expandObjects>1</expandObjects>
><expandServices>1</expandServices>
><authoritative>0</authoritative>
><keywords>
></keywords>
></findService>
>
>
>
>
>
More information about the MOBY-dev
mailing list