Error when importing WSDL

0
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="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:Ad4all" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="data" targetNamespace="urn:Ad4all"> <types> <xsd:schema targetNamespace="urn:Ad4all" xmlns="http://www.w3.org/2001/XMLSchema"> <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="http://schemas.xmlsoap.org/soap/http"/> <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="http://acceptance.ad4all.nl/data/action"/> </port> </service> </definitions>
asked
1 answers
3

Rene,

There seems to be something wrong with the wsdl. If you upload the wsdl to https://www.wsdl-analyzer.com/upload/uploadWsdl 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.

answered