Support the ongoing development of Laravel.io →
Authentication Requests Packages

I am using laravel-soap for a wsdl. Its not authenticating even though all parameters are correct. I verified authentication credentials with generic soap client, everything works fine. What's the problem? Local dev environment? Here is the dump of response

object(stdClass)[136]
  public 'Response' => 
    object(stdClass)[137]
      public 'Message' => string 'Provide Authentication Parameters' (length=33)
      public 'IsSuccess' => boolean false

Even usage code not working for me.
This code

SoapWrapper::add(function ($service) {
    $service->name('currency')->wsdl('http://currencyconverter.kowabunga.net/converter.asmx?WSDL');
});

$data = [
    'CurrencyFrom' => 'USD',
    'CurrencyTo'   => 'EUR',
    'RateDate'     => '2014-06-05',
    'Amount'       => '1000'
];

SoapWrapper::service('currency',function($service) use ($data) {
    var_dump($service->getFunctions());
    dd($service->call('GetConversionAmount',$data)->GetConversionAmountResult);
});

is returning this

array (size=16)
  0 => string 'GetCurrenciesResponse GetCurrencies(GetCurrencies $parameters)' (length=62)
  1 => string 'GetCurrencyRateResponse GetCurrencyRate(GetCurrencyRate $parameters)' (length=68)
  2 => string 'GetCurrencyRatesResponse GetCurrencyRates(GetCurrencyRates $parameters)' (length=71)
  3 => string 'GetConversionRateResponse GetConversionRate(GetConversionRate $parameters)' (length=74)
  4 => string 'GetConversionAmountResponse GetConversionAmount(GetConversionAmount $parameters)' (length=80)
  5 => string 'GetCultureInfoResponse GetCultureInfo(GetCultureInfo $parameters)' (length=65)
  6 => string 'ConvertDataTableColumnResponse ConvertDataTableColumn(ConvertDataTableColumn $parameters)' (length=89)
  7 => string 'GetLastUpdateDateResponse GetLastUpdateDate(GetLastUpdateDate $parameters)' (length=74)
  8 => string 'GetCurrenciesResponse GetCurrencies(GetCurrencies $parameters)' (length=62)
  9 => string 'GetCurrencyRateResponse GetCurrencyRate(GetCurrencyRate $parameters)' (length=68)
  10 => string 'GetCurrencyRatesResponse GetCurrencyRates(GetCurrencyRates $parameters)' (length=71)
  11 => string 'GetConversionRateResponse GetConversionRate(GetConversionRate $parameters)' (length=74)
  12 => string 'GetConversionAmountResponse GetConversionAmount(GetConversionAmount $parameters)' (length=80)
  13 => string 'GetCultureInfoResponse GetCultureInfo(GetCultureInfo $parameters)' (length=65)
  14 => string 'ConvertDataTableColumnResponse ConvertDataTableColumn(ConvertDataTableColumn $parameters)' (length=89)
  15 => string 'GetLastUpdateDateResponse GetLastUpdateDate(GetLastUpdateDate $parameters)' (length=74)
string '0' (length=1)

Getting all available functions but its not fetching result value, its a empty string!

Last updated 3 years ago.
0

Same here's I face this issue. I'm trying to fetch records from wsdl but It's not working......... [https://github.com/artisaninweb/laravel-soap](Laravel Soap)

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.