[MOBY-l] getPBfromGO

Martin Senger senger at ebi.ac.uk
Wed Mar 31 21:33:05 UTC 2004


I am playing with some moby services - trying to put them into a workflow
engine. And I wonder what is going wrong - it may easily be on my site but
I need some external help to tell what's wrong.

Calling service getPBfromGO from the
http://pathbase1.anat.cam.ac.uk/axis/Pathbase2_SOAP.jws, and sending there
this input:

<moby:Object moby:namespace="GO" moby:id="0005787"/>

I am getting back something encoded as base64binary. Which I get as an
array of bytes, convert it into string and print. Usually, Java takes
base64-coded data and converts it into byte[] for me. However it this case
I print something starting with:

rO0ABXQByjw/eG1sIHZlcnNpb249JzEuMCcgZW5jb2Rpbmc9J1VURi04Jz8+CiAgIDxtb2J5Ok1P
QlkgeG1sbnM6bW9ieT0naHR0cDovL3d3dy5iaW9tb2J5Lm9yZy9tb2J5Jz4KICAgICAgPG1vYnk6
UmVzcG9uc2UgbW9ieTphdXRob3JpdHk9J2h0dHA6Ly93d3cucGF0aGJhc2UubmV0Jz4KICAgICAg
...

So I thought that I should have done encoding myself - from whatever
reasons. Therefore, I have looked into the wire (tcp monitor) and I expect
that I will see there the same data as shown above. What a surprise when I
saw there bas64 data, that I expected, but *different* ones. Concretly it
started with:

<ns1:getPBfromGOReturn
xsi:type="xsd:base64Binary">ck8wQUJYUUJ5ancvZUcxc0lIWmxjbk5wYjI0OUp6RXV
...

So now I wonder that perhaps the services is sending base64 data encoded
twice? Or where is the poblem?

Thanks for any advise (for example for sending me a piece of perl code
that I can use for the same purpose, and compare)

 Martin


-- 
Martin Senger

EMBL Outstation - Hinxton                Senger at EBI.ac.uk     
European Bioinformatics Institute        Phone: (+44) 1223 494636      
Wellcome Trust Genome Campus             (Switchboard:     494444)
Hinxton                                  Fax  : (+44) 1223 494468
Cambridge CB10 1SD
United Kingdom                           http://industry.ebi.ac.uk/~senger




More information about the moby-l mailing list