KB Article #181261
"No bindings in WSDL" error raised during WSDL import
Problem
The WSDL could not be imported in API Manager Backend as "No bindings in WSDL" error is thrown.
Resolution
This error is caused because the WSDL wizard is looking for the "tns" in front of the binding value.
In order to solve this, edit and adjust the WSDL field accordingly followed by import.
binding=":CalculatorSoap" to be replaced with binding="tns:CalculatorSoap"
and
binding="tns:CalculatorSoap12" to be replaced with binding="tns:CalculatorSoap12"
Sample wsdl:service:
<wsdl:service name="Calculator">
<wsdl:port name="CalculatorSoap" binding="tns:CalculatorSoap">
</wsdl:port>
<wsdl:port name="CalculatorSoap12" binding="tns:CalculatorSoap12">
</wsdl:port>
</wsdl:service>
As per https://www.w3.org/ “this namespace” (tns) prefix is used as a
convention to refer to the current document.