[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Problem with web service datasource

Hello,

I'm using a web service datasource with a simple wsdl (see attachment). There is an unique method/operation listAllXMLFileDescr.

When I create the dataset using this datasource, I can select the wsdl operation and the SOAP parameters; the soap request is correct and for the soap response I select "Use operation schema defined in datasource WSDL". In the table mapping step, I should see the XMLFileDescArray element which is returned by the selected operation but in fact it displays the listAllXMLFileDescr element used to call the operation ! So I can't use my web service...

The difference between my wsdl and the wsdl used in the differents examples seen on this forum or birt site is that my wsdl use a rpc style for the soap binding whereas the others use a document style for the soap binding.

Could you confirm me that the web service ODA in BIRT runs well with document style and rpc style web services ? If so, do you have an idea why my wsdl is not correctly parsed by BIRT ?

Thanks a lot for your Help.
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="FXMLFiles" targetNamespace="http://fxmlfiles.features.ws.ejb.business.config.admin.vif5_7.vif.fr"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://fxmlfiles.features.ws.ejb.business.config.admin.vif5_7.vif.fr"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
 <types>  
  <schema targetNamespace="http://fxmlfiles.features.ws.ejb.business.config.admin.vif5_7.vif.fr"; xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://fxmlfiles.features.ws.ejb.business.config.admin.vif5_7.vif.fr"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; elementFormDefault="qualified">
    <complexType name="XMLFileDescrArray">
    <sequence>
     <element maxOccurs="unbounded" minOccurs="0" name="value" nillable="true" type="tns:XMLFileDescr"/>
    </sequence>
   </complexType>
   <complexType name="IdContextGen">
    <sequence>
     <element name="company" nillable="true" type="string"/>
     <element name="establishment" nillable="true" type="string"/>
     <element name="locale" nillable="true" type="string"/>
     <element name="login" nillable="true" type="string"/>
     <element name="workstation" nillable="true" type="string"/>
    </sequence>
   </complexType>   
   <complexType name="XMLFileDescr">
    <sequence>
     <element name="admstamp" type="int"/>
     <element name="checksum" type="double"/>
     <element name="compPath" nillable="true" type="string"/>
     <element name="createDate" nillable="true" type="dateTime"/>
     <element name="createUser" nillable="true" type="string"/>
     <element name="description" nillable="true" type="string"/>
     <element name="name" nillable="true" type="string"/>
     <element name="rootPath" nillable="true" type="string"/>
     <element name="updateDate" nillable="true" type="dateTime"/>
     <element name="updateUser" nillable="true" type="string"/>
     <element name="vif" type="boolean"/>
    </sequence>
   </complexType>
  </schema>
 </types> 
 <message name="listAllXMLFileDescr">
  <part name="IdContextGen_1" type="tns:IdContextGen"/>
 </message>
 <message name="listAllXMLFileDescrResponse">
  <part name="result" type="tns:XMLFileDescrArray"/>
 </message>
 <portType name="WSFXMLFilesCBS">
  <operation name="listAllXMLFileDescr">
   <input message="tns:listAllXMLFileDescr"/>
   <output message="tns:listAllXMLFileDescrResponse"/>
  </operation>    
 </portType>
 <binding name="WSFXMLFilesCBSBinding" type="tns:WSFXMLFilesCBS">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  <operation name="listAllXMLFileDescr">
   <soap:operation soapAction=""/>
   <input>
    <soap:body  use="literal"/>
   </input>
   <output>
    <soap:body use="literal"/>
   </output>
  </operation>  
 </binding>
 <service name="FXMLFiles">
  <port binding="tns:WSFXMLFilesCBSBinding" name="WSFXMLFilesCBSPort">
   <soap:address location="http://localhost:8080/VIF_VIF57_ADMIN_CONFIG/WSFXMLFiles"/>
  </port>
 </service>
</definitions>