Hello!

[Running Axis2 1.0 Nightly from May 30th, 2006]

We're now implementing a WSDL from an external source:
http://xml.nig.ac.jp/wsdl/Blast.wsdl

We used wsdl2java to create an xmlbeans client for this service, but it gives us
a databinding error because it expects a different kind of document.

We called the SearchParam service operation through the generated method
SearchParamResponseDocument result = blastStub.searchParam(requestDoc);

Is this a problem with the WSDL, the kind of xml document the service returns,
or with the Axis implementation and its expectations? This is the stack trace:

java.lang.RuntimeException: Data binding error
        at org.apache.axis2.BlastStub.fromOM(BlastStub.java:1357)
        at org.apache.axis2.BlastStub.searchParam(BlastStub.java:351)
        at org.apache.axis2.BlastMain.main(BlastMain.java:31)
Caused by: org.apache.xmlbeans.XmlException: error: The document is not a
[EMAIL PROTECTED]://www.themindelectric.com/wsdl/Blast/: document element
mismatch got Result
        at 
org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452)
        at 
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale.java:357)
        at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:850)
        at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
        at
com.themindelectric.www.wsdl.blast.SearchParamResponseDocument$Factory.parse(SearchParamResponseDocument.java:86)
        at org.apache.axis2.BlastStub.fromOM(BlastStub.java:1281)
        ... 2 more

Any hints would be greatly appreciated.

Thanks for your time,

-- Sebastian
<?xml version='1.0' encoding='UTF-8'?>
<!--generated by GLUE on Thu Mar 02 14:29:37 JST 2006-->
<definitions name='Blast' targetNamespace='http://www.themindelectric.com/wsdl/Blast/' xmlns:tns='http://www.themindelectric.com/wsdl/Blast/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:http='http://schemas.xmlsoap.org/wsdl/http/' xmlns:mime='http://schemas.xmlsoap.org/wsdl/mime/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:tme='http://www.themindelectric.com/'>
  <message name='searchParam0In'>
    <part name='program' type='xsd:string'/>
    <part name='database' type='xsd:string'/>
    <part name='query' type='xsd:string'/>
    <part name='param' type='xsd:string'/>
  </message>
  <message name='searchParam0Out'>
    <part name='Result' type='xsd:string'/>
  </message>
  <message name='searchSimple1In'>
    <part name='program' type='xsd:string'/>
    <part name='database' type='xsd:string'/>
    <part name='query' type='xsd:string'/>
  </message>
  <message name='searchSimple1Out'>
    <part name='Result' type='xsd:string'/>
  </message>
  <message name='extractPosition2In'>
    <part name='result' type='xsd:string'/>
  </message>
  <message name='extractPosition2Out'>
    <part name='Result' type='xsd:string'/>
  </message>
  <message name='searchParamAsync3In'>
    <part name='program' type='xsd:string'/>
    <part name='database' type='xsd:string'/>
    <part name='query' type='xsd:string'/>
    <part name='param' type='xsd:string'/>
  </message>
  <message name='searchParamAsync3Out'>
    <part name='Result' type='xsd:string'/>
  </message>
  <message name='searchSimpleAsync4In'>
    <part name='program' type='xsd:string'/>
    <part name='database' type='xsd:string'/>
    <part name='query' type='xsd:string'/>
  </message>
  <message name='searchSimpleAsync4Out'>
    <part name='Result' type='xsd:string'/>
  </message>
  <portType name='Blast'>
    <operation name='searchParam' parameterOrder='program database query param'>
      <documentation>Execute Blast with parameter</documentation>
      <input name='searchParam0In' message='tns:searchParam0In'/>
      <output name='searchParam0Out' message='tns:searchParam0Out'/>
    </operation>
    <operation name='searchSimple' parameterOrder='program database query'>
      <documentation>Execute Blast</documentation>
      <input name='searchSimple1In' message='tns:searchSimple1In'/>
      <output name='searchSimple1Out' message='tns:searchSimple1Out'/>
    </operation>
    <operation name='extractPosition' parameterOrder='result'>
      <documentation>get position information from BLAST</documentation>
      <input name='extractPosition2In' message='tns:extractPosition2In'/>
      <output name='extractPosition2Out' message='tns:extractPosition2Out'/>
    </operation>
    <operation name='searchParamAsync' parameterOrder='program database query param'>
      <documentation>Execute Blast with parameter</documentation>
      <input name='searchParamAsync3In' message='tns:searchParamAsync3In'/>
      <output name='searchParamAsync3Out' message='tns:searchParamAsync3Out'/>
    </operation>
    <operation name='searchSimpleAsync' parameterOrder='program database query'>
      <documentation>Execute Blast</documentation>
      <input name='searchSimpleAsync4In' message='tns:searchSimpleAsync4In'/>
      <output name='searchSimpleAsync4Out' message='tns:searchSimpleAsync4Out'/>
    </operation>
  </portType>
  <binding name='Blast' type='tns:Blast'>
    <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
    <operation name='searchParam'>
      <soap:operation soapAction='searchParam' style='rpc'/>
      <input name='searchParam0In'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output name='searchParam0Out'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>
    <operation name='searchSimple'>
      <soap:operation soapAction='searchSimple' style='rpc'/>
      <input name='searchSimple1In'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output name='searchSimple1Out'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>
    <operation name='extractPosition'>
      <soap:operation soapAction='extractPosition' style='rpc'/>
      <input name='extractPosition2In'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output name='extractPosition2Out'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>
    <operation name='searchParamAsync'>
      <soap:operation soapAction='searchParamAsync' style='rpc'/>
      <input name='searchParamAsync3In'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output name='searchParamAsync3Out'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>
    <operation name='searchSimpleAsync'>
      <soap:operation soapAction='searchSimpleAsync' style='rpc'/>
      <input name='searchSimpleAsync4In'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </input>
      <output name='searchSimpleAsync4Out'>
        <soap:body use='encoded' namespace='http://tempuri.org/Blast' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
      </output>
    </operation>
  </binding>
  <service name='Blast'>
    <port name='Blast' binding='tns:Blast'>
      <soap:address location='http://xml.nig.ac.jp/xddbj/Blast'/>
    </port>
  </service>
</definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to