[MOBY-l] String & text-plain

mwilkinson mwilkinson at mobile.rogers.com
Tue Apr 13 05:04:45 UTC 2004


The object looks like:

<String namespace="foo" id="bar">some string content</String)

For plaintext, just replace "String" with "text-plain".  There isn't much difference between those two... 

You can determine object structure based on the position of the object in the ontology.  The ontology is 100% predictive of object structure.

Soap does not insulate you from XML.

M

-----Original Message-----
From: Gabriel Berriz <gberriz at hms.harvard.edu>
Date: Mon, 12 Apr 2004 12:10:12 
To:moby-l at biomoby.org
Subject: [MOBY-l] String & text-plain

Hi all.

I'm trying to code a toy service that all it does is to echo back 
*verbatim* (through a text-plain object) the raw XML that it received as input.

One thing I have not been able to figure out is the correspondence between 
an object's definition (as given in registerObject) and the raw XML string 
corresponding to this object.  My immediate questions are

1. What exactly is the difference between String and text-plain?

2. It is my understanding that the raw XML representation for the String 
object corresponding to "my favorite string" is something like:

   <String namespace="some/namespace" id="my favorite string"/>

What is the raw XML representation for the text-plain object corresponding 
to "my favorite string"?

The larger question is that from the point of view of someone coding a 
service, how do I know the structure of the XML that my script will receive 
as input?

An even larger concern is that I'm surprised by the amount of XML munging 
that I see in sample BioMOBY code.  I thought the whole point of using SOAP 
modules was to insulate oneself from having to do much (or any) parsing and 
munging of XML.

Gabriel





A far more important question has to do with a client's ability to handle a 
given output from a service.  This output presumably comes back as 
XML.  How does the client figure out how to parse this output to get the 
desired information?  I thought the whole idea was that this should be 
transparent to the client, but 

_______________________________________________
moby-l mailing list
moby-l at biomoby.org
http://biomoby.org/mailman/listinfo/moby-l

!!!!!!!!!!!!!!!!
To respond to this message you MUST send your response to (note new address!)

markw_mobile2 at illuminae dot com

Responses to the reply-to address go directly to trash!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!



More information about the moby-l mailing list