Soap generator

Hi,
I want to get some $_POST data and generate a non-WSDL response on browser.
I am not sure if I can use this for this work? please advice how can I do so?

Actually I want to create API for my script, I don’t care if users want to send request to my server via curl, socket ot whatever and I don’t care how they want to parse the response soap, I just want to accept $_POST and generate soap on screen. How possible with Zend/Soap?

As here http://framework.zend.com/manual/2.2/en/modules/zend.soap.client.html
class MyClass and method1/method2 are on api server, then if I want to send parameters to the api server to be processed by mthod1/method2, as stated:

$client = new Zend\Soap\Client(array(‘uri’ => ‘MyService.wsdl’, ‘location’ => ‘url of api server goes here’));
$result1 = $client->method1(10);

as this code is on another server where the request is sent from, how does $client recognizes ->method1() to not give an error, as that method is not here but on api server?