[MOBY-l] Input XML syntax

Ken Steube steube at sdsc.edu
Wed Oct 22 18:23:08 EDT 2003


OK, I'm getting serious about figuring out input XML syntax: four
questions.

1) In the API examples of collections are given in a couple places as

  <Collection/>
    <Object namespace="Genbank/gi" id="163483"/>
    <Object namespace="Genbank/gi" id="244355"/>
    <Object namespace="Genbank/gi" id="533253"/>
    <Object namespace="Genbank/gi" id="745290"/>
  </Collection>

But shouldn't they have Simple tags?

  <Collection articleName="NameOfArticle">
    <Simple><Object namespace="Genbank/gi" id="163483"/></Simple>
    <Simple><Object namespace="Genbank/gi" id="244355"/></Simple>
    <Simple><Object namespace="Genbank/gi" id="533253"/></Simple>
    <Simple><Object namespace="Genbank/gi" id="745290"/></Simple>
  </Collection>

2) There is an articleName on Collection as shown above in one of the
examples, but the articleName really belongs instead on the queryInput
tag in the case of named arguments.  Or it may be on any MOBY data
object and I don't think articleName is useful anywhere else.  Is that
right?

3) Is it OK for a queryInput to have multiple Simples as shown below?  I
think not...they should be separate queryInputs or should be in a
collection.

<queryInput>
  <Simple>...</Simple>
  <Simple>...</Simple>
</queryInput>

4) If I receive two queryInputs it should be as if I ran the service
two separate times and concatenated the response XML together. Right?
Which is different than running the service once with two inputs.

Ken

-------------------------------------
Ken Steube            steube at sdsc.edu
San Diego Supercomputer Center @ UCSD
San Diego, California             USA



More information about the moby-l mailing list