laravel-soap icon indicating copy to clipboard operation
laravel-soap copied to clipboard

Wrong Version - Version Mismatch laravel Soap vs PHP SoapClient

Open cladico opened this issue 3 years ago • 4 comments

Bellow code with laravel-soap:

$client = Soap::baseWsdl($url)
->withOptions([
    'location' => $url,
    'soap_version' => SOAP_1_1,
    'local_cert' => storage_path('app/local_cert.pem'),
    'trace' => true,
    'keep_alive' => true,
    'exceptions' => true,
    'cache_wsdl'=> WSDL_CACHE_NONE,
]);    

$response = $client->call('retrieveInfo', [
  'username' => 'admin',
  'password' => 'awesome',
]);

Returns: Wrong Version

Bellow code with php soapClient

$client = new \SoapClient($url, array(
  'location' => $url,
  'soap_version' => SOAP_1_1,
  'local_cert' => storage_path('app/local_cert.pem'),
  'trace' => true,
  'keep_alive' => true,
  'exceptions' => true,
  'cache_wsdl'=> WSDL_CACHE_NONE,
));

$response = $client->__soapCall("retrieveInfo", array([
  'username' => 'admin',
  'password' => 'awesome',
]));

Returns: Success and works

Please tell what tests to do so i can give more details, sadly i cannot attach the Wsdl. Thank you!

cladico avatar Jun 15 '22 15:06 cladico

Hello @cladico , thanks for posting this bug and sry for late answer. Which laravel-soap version are you using? Which php version? And which laravel version?

CodeDredd avatar Jun 29 '22 16:06 CodeDredd

Hello @cladico , thanks for posting this bug and sry for late answer. Which laravel-soap version are you using? Which php version? And which laravel version?

Hello, laravel-soap: v3.0 php: v8.1.6 laravel: v9.17.0

cladico avatar Jun 29 '22 16:06 cladico

Thats a hard one.... can you please compare dump($client->debugLastSoapRequest()); in my package with $client->__getLastRequest() with original soap client and look what is different so i probably can fix it?

CodeDredd avatar Jun 29 '22 19:06 CodeDredd

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

stale[bot] avatar Jul 31 '22 04:07 stale[bot]

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Laravel Soap!

stale[bot] avatar Oct 20 '22 06:10 stale[bot]