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

SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://currencyconverter.kowabunga.net/converter.asmx?WSDL' : failed to load external entity "http://currencyconverter.kowabunga.net/converter.asmx?WSDL #161

Open
thakurankesh opened this issue Feb 15, 2019 · 4 comments

Comments

@thakurankesh
Copy link

thakurankesh commented Feb 15, 2019

I am trying to run sample project provided by you . When I am trying to run this, i am getting error SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://currencyconverter.kowabunga.net/converter.asmx?WSDL' : failed to load external entity "http://currencyconverter.kowabunga.net/converter.asmx?WSDL

I have used following code :

$this->soapWrapper->add('Currency', function ($service) {
      $service
        ->wsdl('http://currencyconverter.kowabunga.net/converter.asmx?WSDL')                 // The WSDL url
        ->trace(true)            // Optional: (parameter: true/false)            
        ->classmap([
          GetConversionAmount::class,
          GetConversionAmountResponse::class,
        ])
       ;
    });

    // With classmap
    $response = $this->soapWrapper->call('Currency.GetConversionAmount', [
      new GetConversionAmount('USD', 'EUR', '2014-06-05', '1000')
    ]);

@mas-ih
Copy link

mas-ih commented Mar 12, 2019

@thakurankesh
I had the same issue and found a working soloution for me in this SO post.

Explicitly setting a user agent in options did the trick for me:

 $this->soapWrapper->add('Currency', function ($service) { 
       $service
        ->wsdl('http://currencyconverter.kowabunga.net/converter.asmx?WSDL')                 // The WSDL url
        ->trace(true)            // Optional: (parameter: true/false)
        ->options([
              'user_agent' => 'PHPSoapClient',      // Add this as options
          ])            
        ->classmap([
          GetConversionAmount::class,
          GetConversionAmountResponse::class,
        ])
       ;
    });

@jimhuang98
Copy link

the wsdl's url in this package's document is WRONG!!!!!
Don't use it!

@killian-coder
Copy link

the wsdl's url in this package's document is WRONG!!!!!
Don't use it!

What is the right /corrette wsdl

@tony5Dim
Copy link

Answer in #182

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

5 participants