Answer the question
In order to leave comments, you need to log in
How to solve SOAP problem "Function 'sendSms' doesn't exist" when getFunctions returns my "sendSms" method?
I'm trying to write my soap server in php according to the manual from the Habr article "Writing a SOAP client-server application in PHP"
Having reached the server health check from point 6 (I call the client), I get an error
Uncaught SoapFault exception: [SOAP-ENV:Server] Function 'sendSms' doesn't exist in
Answer the question
In order to leave comments, you need to log in
You can pass a parameter to the view and simply display css on it, you can hide it in JS.
Can you see the view code? Can the widget pass the parameter to display \ no?
You need to add the SoapSmsGateWay.class.php class:
<?php
/**
* /classes/SoapSmsGateWay.class.php
*/
class SoapSmsGateWay {
public function sendSms($messagesData){
$rawPost = "Input:\r\n";
$rawPost .= file_get_contents('php://input');
$rawPost .= "\r\n---\r\nmessageData:\r\n";
$rawPost .= serialize($messagesData);
file_put_contents("log.txt",$rawPost);
return array("status" => "true");
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question