Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
salletti opened this issue Dec 30, 2014 · 3 comments

Comments

@salletti
Copy link

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
Copy link

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

@francisbesset
Copy link
Member

francisbesset commented Mar 24, 2015 via email

@raziel057
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants