You can call a WSDL locally using PHP

2

I am learning how to use Soapclient in PHP and I get an error when trying to consume a service:

  

link

This returns the following error to me

  

Parsing WSDL BillServicePortBinding already defined

According to what I was investigating, it is because PHP does not support double namespaces, now it is said that the solution is to download the wsdl locally and consume it. The question is ... Can it be done locally? since php

$client = new SoapClient(null, array('location' => "http://localhost/soap.php", 'uri' => "http://test-uri/"));

Thanks again.

    
asked by Erwin Stalin 03.03.2017 в 00:48
source

1 answer

1

This is due to a PHP bug # 45282

You must implement this package SOAP PERL .

If you can have the webservice running from Eclipse and you have built it well you can get an instance as follows:

new SoapClient("http://localhost:8080/ruta/services/Gestor?wsdl");
    
answered by 27.07.2017 в 21:21