BeSimple / BeSimpleSoap

NOT MAINTAINED - Build SOAP and WSDL based web services
http://besim.pl
106 stars 136 forks source link

ContextErrorException: Warning: DOMDocument::loadXML(): Empty string supplied as input #62

Open salletti opened 9 years ago

salletti commented 9 years ago

Hi,

I can't download correctly my wsdl. I have the follow error when i try to call the client:

ContextErrorException: Warning: DOMDocument::loadXML(): Empty string supplied as input in C:\wamp\www\FlexFront\vendor\besimple\soap-client\BeSimple\SoapClient\WsdlDownloader.php line 159

My configuration is:

// app/config_dev.yml

    be_simple_soap:
        clients:
            high_deal_consultation:
                wsdl: http://highdealdev:8080/consultation?wsdl

When i call the service in this normal way

$this->container->get('besimple.soap.client.high_deal_consultation')

I have the error.

However the wsdl is accessible. Any idea?

Tanks,

Stefano

raziel057 commented 9 years ago

I get the same error. Any throught on this issue?

francisbesset commented 9 years ago

Do you have a proxy? Can you try to download the WSDL from your PHP server: $ curl http://highdealdev:8080/consultation?wsdl

raziel057 commented 9 years ago

In fact the services were available under basic authentication. So curl -a http://organisation.novento-reloaded.eu/app_dev.php/ws/MobileApi?wsdl returns nothing and in this case I encounter the error: ContextErrorException: Warning: DOMDocument::loadXML(): Empty string supplied as input

So it's normal. If I remove the basic authentication, it works.

But I tried to configure the proxy parameters when the services are protected under basic authentication and I can't make it woks. I get an SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://.../ws/MobileApi?wsdl'

Here is my config:

    clients:
        mobileApi:
            wsdl: "http://.../ws/MobileApi?wsdl"
            proxy:
                host:     "localhost" # required to enable proxy configuration
                login:    login
                password: password
                auth:     basic