Consume SOAP webservice via Ajax/jQuery


I implemented a SOAP server using this extension, and via PHP it works perfectly. I did the same time ago for Yii1 and it is still working great.

Now I’m trying to access it via ajax/jquery but I’m unable to, mainly because in the past I used other WS which allowed appending method to the url. With Yii I cannot use this solution because an url like http://localhost/webservice/getMethod1 would get routed to a actionGetMethod1 function in the Webservice controller.

Has anyone succesfully consumed a PHP webservice via JS?