Error when importing WSDL

When importing a wsdl I get an error message which I don't understand. "Unsupported operation 'notify': Expecting element instead of type in message part 'notification' of message 'notify'." I know it has something to do with de "style: document" but I don't know how to fix it. Can anyone guide me in the right direction? WSDL: <definitions xmlns="" xmlns:tns="urn:Ad4all" xmlns:soap="" xmlns:xsd="" xmlns:soap-enc="" xmlns:wsdl="" name="data" targetNamespace="urn:Ad4all"> <types> <xsd:schema targetNamespace="urn:Ad4all" xmlns=""> <xsd:complexType name="notification"> <xsd:sequence> <xsd:element name="basket_code" type="xsd:string"/> <xsd:element name="order_code" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="notification_response"> <xsd:sequence> <xsd:element name="result" type="xsd:boolean"/> <xsd:element name="message" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </types> <message name="notify"> <part name="notification" type="tns:notification"/> </message> <message name="notify_response"> <part name="notification_response" type="tns:notification_response"/> </message> <portType name="data_port"> <operation name="notify"> <input message="tns:notify"/> <output message="tns:notify_response"/> </operation> </portType> <binding name="data_binding" type="tns:data_port"> <soap:binding style="document" transport=""/> <operation name="notify"> <soap:operation soapAction="notify"/> <input> <soap:body use="literal" namespace="urn:Ad4all"/> </input> <output> <soap:body use="literal" namespace="urn:Ad4all"/> </output> </operation> </binding> <service name="service"> <port name="data_port" binding="tns:data_binding"> <soap:address location=""/> </port> </service> </definitions>
1 answers


There seems to be something wrong with the wsdl. If you upload the wsdl to and perform the check you'll get 1 error:

Result: Style Conformity 
Priority: ERROR 
Description: The binding should conform to the conventions of the used style. 
Binding: data_binding 
The part of the message 'notify' references a schema type instead of a schema element. 
The part of the message 'notify_response' references a schema type instead of a schema element.

The issue thus seems to be related to the wsdl rather than it being a mendix issue. You could try and do some more research on the provided error.