I have a question about using document style together with literal
use when registering a function. My code
works fine when I use rpc/encoded, as shown in the example below, but every
time I switch to document/literal it gives me back nothing. Any idea why this is happening? I suspect
there is a different syntax in forming the request message, but it is just my
guess.
// Server
$server->register('fooFunction', // method name
array('input'
=>
'tns:InputProcessing'), // input parameters
array('output'
=>
'tns:OutputProcessing'), // output parameters
'urn:ServiceName', // namespace
'urn:ServiceName#fooFunction', // soapaction
'rpc', // style
'encoded', // use
'Documentation
goes here' // documentation
);
// Client
$result = $client->call('fooFunction', array('input'
=> $input));
I hope these code excerpts are sufficient, if not, please
let me know.
Thank you very much in advace for any input.
Sincerely
Zhenya