C'mmon guys..u reps!!!
here I am giving further details...lets say I got this webservice:
PHP Code:
<?php
require_once("lib/nusoap.php");
$server = new soap_server;
$server->configureWSDL('servicename', 'urn:servicename','','document');
myRegister($server,'DoSomething',
array('in' => array('Name' => 'xsd:string',
'Age' => 'xsd:int'),
'out' => array('Pass' => 'xsd:boolean')
));
//if in safe mode, raw post data not set:
if (!isset($HTTP_RAW_POST_DATA)) $HTTP_RAW_POST_DATA = implode("\r\n", file('php://input'));
$server->service($HTTP_RAW_POST_DATA);
function myRegister(&$server,$methodname,$params)
{
$server->register($methodname,$paramsxxx91;"in"xxx93;,$paramsxxx91;"out"xxx93;,
'urn:servicename', // namespace
$server->wsdl->endpoint.'#'.$methodname, // soapaction
'document', // style
'literal', // use
'N/A' // documentation
);
}
function DoSomething($Name,$Age)
{
$result=false;
if ($Name=="mleiv" && $Age==35) $result=true;
return array('Pass'=>$result);
}
?>
I have tried ksoap2 and stub. I am getting either xmlpullparser exception or SaxParserException. I got no issue in using any mechanism. The thing is I am using php web service for the first time and its relaly confusing why I am getting xml related errors everytime.
If any one can create a client for above code, that would be really helpful.
Thanks
Baran Khan