I am now create redbus api using soap method in php.
now my coding having some datetime problem. these are the code
$c = new soapclient('...wsdl....',
array('Authentication' => array('LoginID' =>'x','Password'=>'x')));
$timezone = new DateTimeZone('UTC');
$time='2012-04-17T16:50:45';
$date = new DateTime($time,$timezone);
$sourceid=array('SourceID'=>'244','DestinationID'=>'477','DateOfJourney' =>$date);
it shows error as
Fatal error: Uncaught SoapFault exception: [soap:Client] Server was unable to read request. —> There is an error in XML document (2, 252). —> The string ” is not a valid AllXsd value
I this should be Date problem
Ok, if you need it in PHP, here it is:
Replace
with
Hope this helps.