Problem in sending datatime format to the .net webservice from php.
description follows.
I've created a .net webservice.
..Net Webservice:
<WebMethod()> _
Public Function HelloDate(ByVal mydate As DateTime) As String
mystr = mydate.ToString("dddd") 'Which displays day
Return mystr
End Function
Php Client:
$parameters['mydate'] = "12 June 2005;
$soap_proxy = $s->getProxy();
$result = $soap_proxy->HelloDate($parameters);
if (!$err = $soap_proxy->getError()){
echo($result["HelloDateResult"]);
}else{
echo 'Error: ' . $err . "\n";
}
When i tried to communicate the .net webservice. It shows following
error.
"Error: soap:Client: Server was unable to read request. --> There is an
error in XML document (1, 460). --> String was not recognized as a
valid DateTime. "
How to send datetime format data to the webservice from php. For
String, Numbers above code works well.