f00b4r / nusoap

:smirk: Fixed NuSOAP for PHP 5.6 - 8.2
https://f00b4r.github.io/nusoap/
320 stars 356 forks source link

How do i assign $this->method() ? #29

Open dzpt opened 6 years ago

dzpt commented 6 years ago

I declared soap_server inside a class method, and i want to bind receiver method to the one inside the class.

class Gateway extends ControllerPublic_Abstract
{
         public function messageReceiver() {
                     $this->abc();
         }
    public function actionSms()
    {
        $server = new soap_server();
        $server->configureWSDL('MOReceiver', 'urn:MOReceiver', 'http://domain.com/gateway/sms');
        // $server->wsdl->schemaTargetNamespace=$ns;
        $server->soap_defencoding = 'UTF-8';
        $server->register(
            'Gateway.messageReceiver',

PointK_ControllerPublic_GateWay.messageReceiver doesn't work

f3l1x commented 6 years ago

Hi, I'm not sure how. Anyone else knows?

alexmpereira commented 5 years ago

Hello @aaveidt , I know it has been a while, but if it still has not resolved it would be interesting to post the complete code to analyze better. With just that snippet of code I did not understand exactly what it was trying to do.

thank you.