[MOBY-l] jMoby bug?

Paul Gordon gordonp at ucalgary.ca
Wed Feb 2 18:26:51 UTC 2005


Aha!  I knew I wasn't crazy!  I sent a message with regards to MOBY 
Central not accepting the input properly about a month ago, but didn't 
figure out that the issue was the non-acceptance of namespaces in the 
XML.  Thanks for catching this.

I would be much more inclined to get the MOBY Central maintainers to 
accept namespaces (especially since it used to) than to reduce the XML 
to unqualified tags. Mark?

>
>In this case, the inputs part of the template service looked like
><Input>
><Simple xmlns="http://www.biomoby.org/moby">
><objectType>AminoAcidSequence</objectType>
><Namespace>NCBI_gi</Namespace>
></Simple></Input>
>
>If I change it to look like this
>
><Input>
><Simple>
><objectType>AminoAcidSequence</objectType>
><Namespace>NCBI_gi</Namespace>
></Simple></Input>
>
>then it works.
>
>So basically moby central doesn't like to see the xml namespace in there
>any more, though I'm pretty sure this worked last summer.
>
>-Ben
>
>
>
>
>On Wed, 2005-02-02 at 10:00, Paul Gordon wrote:
>  
>
>>Hi Ben,
>>
>>    The class seems to work fine (see the example program below).  Are 
>>you sure that the right XML mode set for your intended use?
>>
>>----------------
>>
>>coe01:/export/home/gordonp/projects/moby-live/Java/src/main 132 % cat 
>>TestMDSI.java
>>
>>import org.biomoby.shared.MobyDataSimpleInstance;
>>import org.biomoby.shared.MobyDataType;
>>
>>public class TestMDSI{
>>  public static void main(String[] args){
>>    MobyDataSimpleInstance mdsi = new MobyDataSimpleInstance(new 
>>MobyDataType("Object"), "NCBI_gi", "111076");
>>
>>    mdsi.setXmlMode(MobyDataSimpleInstance.CENTRAL_XML_MODE);
>>    System.out.println("Central mode: ");
>>    System.out.println(mdsi.toXML());
>>
>>    mdsi.setXmlMode(MobyDataSimpleInstance.SERVICE_XML_MODE);
>>    System.out.println("Service mode: ");
>>    System.out.println(mdsi.toXML());
>>
>>  }
>>}
>>coe01:/export/home/gordonp/projects/moby-live/Java/src/main 133 % javac 
>>-classpath ../../lib/axis.jar:../../lib/jaxrpc.jar:. TestMDSI.java
>>coe01:/export/home/gordonp/projects/moby-live/Java/src/main 134 % java 
>>-cp .:../../lib TestMDSI                        Central mode:
>><Simple xmlns="http://www.biomoby.org/moby">
>><objectType>Object</objectType>
>></Simple>
>>Service mode:
>><Simple xmlns="http://www.biomoby.org/moby" 
>>xmlns:moby="http://www.biomoby.org/moby" 
>>moby:articleName="NCBI_gi"><Object namespace="" id="111076"/></Simple>
>>
>>
>>
>>    
>>
>
>
>  
>




More information about the moby-l mailing list