Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By luis_mejia on
Hi,
I need to connect our Drupal 8 using SOAP to consume services, but i can´t find any documentation about that. Can somebody help me?
I will need firt use login/pass to connect to the external server and after that i will need create a display some pages with views and their menus to access depending of the user role.
If somebody can tell me where i can find documentation or videos about it i will appreciate so much.
Thanks
Comments
Some SOAP documentation
Some SOAP documentation
Bad response no error try conetion soap
I was searching a lot of videos, and content about SOAP service conexion with php and drupal, and finally i think i understood how it work, i had create my test_server.php and test_client.php and everything was fine using soap, but, now i'm try to connect using my own custom module with a real server and i just have a bad response:
"array(3) { [0]=> string(38) "LoginResponse Login(Login $parameters)" [1]=> string(41) "LogoutResponse Logout(Logout $parameters)" [2]=> string(65) "IsValidSessionResponse IsValidSession(IsValidSession $parameters)" } NULL"
Can somebody tell me what i'm doing bad here? Drupal 8:
Custom_module/src/myservice.php
****** Here is my code inside my service ******
Hi Luis, were you able to
Hi Luis, were you able to successfully implement SOAP services in Drupal 8? I am also trying to make it work. If possible could you help me with this?
Hi Sidharthshreekumar, were
Hi Sidharthshreekumar, were you able to identify fix of this? If yes can you please share some info on fix?