-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
SoapServer returns Internal Server Error (no log) in Laravel 5.2 #13672
Comments
The problem resolved. |
Hi @AliFarhoudi : |
Hi @devexsolutions |
@AliFarhoudi dont fine work, Internal Error My soap server run in /server route. This is my Middleware\VerifyCsrfToken code class VerifyCsrfToken extends BaseVerifier Laravel.log *#58 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request)) php_error.log **[22-Jun-2016 10:06:58 UTC] PHP Fatal error: Class 'TokenMismatchException' not found in C:\xampp2\htdocs\myproject\app\Http\Middleware\VerifyCsrf.php on line 36 ** |
Try to remove preceding slash (replace '/server' with 'server'). |
One more thing. Your route method for soap server request needs to be defined as 'post' method. |
Sorry @AliFarhoudi i beginner Laravel user this my SoapController code
Routes.php
|
My Wsdl file
|
Hi:
I used dd($client) for trace and show this:
Can you help me? Thanks. |
Hi. try to disable wsdl cache before creating soap client object. |
Im try Dont run |
|
The XML is incorrectly formatted
|
This is my soap server code:
|
WebService is you controller class? |
No, it is a class that my soap functions are inside it. |
hi @AliFarhoudi Thanks. |
Hi @AliFarhoudi . I can not continue with the project I 'm developing , I am not able to create the web service SOAP laravel SERVER. Can you provide a complete example that works? Thank you very much. |
Hi @AliFarhoudi . How to integrate wsdl-file creator in laravel?. |
@rhombusit The class |
I'm trying to run soap server in laravel 5.2. I create wsdl file using piotrooi/wsdl-creator and create SoapServer object then handle it.
And my SoapClient can call it but returns an Internal Server Error Without logging in error-log file.
Here is my code:
And my WSDL file: WSDL
And my routes:
There is no problem with wsdl-creator, It is working in laravel 4.2. And I have also tried nusoap and php2wsdl libraries.
My SoapClient is working well. Because it can get service from other soap servers in other urls, But SoapServer is not working well in Laravel 5.2. (I have tried my code in pure PHP script with namespaces and it is working)
The text was updated successfully, but these errors were encountered: