not a valid AllXsd value

前端 未结 5 498
死守一世寂寞
死守一世寂寞 2021-01-04 08:38

I got this from a Soap client request:

Exception: SoapFault exception: [soap:Client] Server was unable to read request. ---> There is an error i

相关标签:
5条回答
  • 2021-01-04 08:57

    You need to use the ISO 8601 date format date('c', strtotime($my_date));

    http://php.net/date

    0 讨论(0)
  • 2021-01-04 09:00

    Cut to the chase and use

    date('c');
    
    0 讨论(0)
  • 2021-01-04 09:12

    The problem is with the date format of either $start or $end. Instead of just grabbing the data from the query string with $_GET and sending it over, you need to do some integrity checking to make sure that the date matches the required format

    2010-05-24T13:46:00
    

    Instead of using date("Y-m-d") try using:

    $startDate = date("Y-m-d") . 'T' . date("H:i:s");
    
    0 讨论(0)
  • 2021-01-04 09:14

    AllXsd values look something like this IIRC

    2010-05-24T18:13:00

    0 讨论(0)
  • 2021-01-04 09:19
    // set the default timezone to use. Available since PHP 5.1
    date_default_timezone_set('UTC');
    // get the date
    $startDate = date("Y-m-d") . 'T' . date("H:i:s");
    
    0 讨论(0)
提交回复
热议问题