[Fedora-suds-list] Type not found error with openmeetings web service.

Yoan Le Clanche yoan.leclanche at gmail.com
Mon Dec 27 10:01:28 UTC 2010


Hello,
I try to communicate with openmeetings web services.

When I invoke a service :

client = Client(url_wsdl)
client.service.getSession()

I get this error message :
TypeNotFound: Type not found: '(Sessiondata,
http://basic.beans.hibernate.app.openmeetings.org/xsd, )'



Now, a part of the wsdl file :

<wsdl:definitions targetNamespace="http://services.axis.openmeetings.org">
<wsdl:documentation>UserService</wsdl:documentation>
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://basic.beans.hibernate.app.openmeetings.org/xsd">
<xs:complexType name="Sessiondata">
<xs:sequence>
<xs:element minOccurs="0" name="id" nillable="true" type="xs:long"/>
<xs:element minOccurs="0" name="language_id" nillable="true"
type="xs:long"/>
<xs:element minOccurs="0" name="organization_id" nillable="true"
type="xs:long"/>
<xs:element minOccurs="0" name="refresh_time" nillable="true"
type="xs:dateTime"/>
<xs:element minOccurs="0" name="sessionXml" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="session_id" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="starttermin_time" nillable="true"
type="xs:dateTime"/>
<xs:element minOccurs="0" name="storePermanent" nillable="true"
type="xs:boolean"/>
<xs:element minOccurs="0" name="user_id" nillable="true" type="xs:long"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
........
<xs:element name="getSessionResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true"
type="ns0:Sessiondata"/>
</xs:sequence>
</xs:complexType>
</xs:element>
........
<wsdl:message name="getSessionRequest"/>
<wsdl:message name="getSessionResponse">
<wsdl:part name="parameters" element="ns2:getSessionResponse"/>
</wsdl:message>
.........
<wsdl:operation name="getSession">
<wsdl:input message="ns2:getSessionRequest" wsaw:Action="urn:getSession"/>
<wsdl:output message="ns2:getSessionResponse"
wsaw:Action="urn:getSessionResponse"/>
</wsdl:operation>
......
<wsdl:operation name="getSession">
<soap:operation soapAction="urn:getSession" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>


I found that TypeNotFound happens when a complex type is defined in an
another wsdl file (but I'm not really sure...).
But the SessionData type is defined in the same wsdl than the getSession
function.


I'm lost, any help would be really appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20101227/790ee735/attachment.html 


More information about the suds mailing list