How to load a local WSDL file into SoapClient
?
$wsdl = __DIR__.'/wsdl.wsdl';
$this->client = new SoapClient($wsdl);
$xsd = __DIR__.'/wsdl/xsd/xmldsig-core-schema.xsd';
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Could not find any usable binding services in WSDL.
relative path to XSD file from WSDL file: ./xsd/xmldsig-core-schema.xsd
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >
<wsdl:types>
</wsdl:definitions>
Select the WSDL file to import from your workspace, or from an external URL, then click Next. Select the bindings to import, then click Finish. For each binding that you import, a message root is created for every global element that is used by a part in the operations of the binding.
In your WSDL file,
<soap:binding style="document" transport="https://schemas.xmlsoap.org/soap/https"/>
should be
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With