I'm trying to get PHP connecting correctly to a WSDL using SoapClient, it connects (as in finds the WSDL) okay but then gives me the following error:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Missing name for <fault> of 'invokeService'
The PHP code is as follows:
$client = new SoapClient("wsdl.wsdl");
And the XML in the WSDL file where it's failing is as follows:
<portType name="invokePort">
<operation name="invokeService">
<input message="wsdlns:invokeRequest"/>
<output message="wsdlns:invokeResponse"/>
<fault message="soap:fault"></fault>
</operation>
</portType>
Any idea what's wrong?
Thanks