EFS API中日期字符串的获取错误不能少于19个字符 [英] Getting Error of date string can not be less than 19 charactors in EFS API

查看:106
本文介绍了EFS API中日期字符串的获取错误不能少于19个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我正在使用EFS API,我有一个表单,现在我正在发布具有客户端ID 结束日期开始日期的静态数据>.我正在调用 getchildTransaction 函数.

Hello I am working on EFS API, I have one form, right now I am posting static data with client ID, enddate and begdate. I am calling getchildTransaction function.

但是,当我提交表格时,出现以下错误:

But when I submit the form I am getting follwoing error :

PHP致命错误:未捕获的SoapFault异常:[soapenv:Receiver] 日期字符串不能少于19个字符

PHP Fatal error: Uncaught SoapFault exception: [soapenv:Receiver] date string can not be less than 19 charactors in

如何通过日期?我正在传递以下参数值:

How to pass date ? I am passing following parameter value :

$soapFunctionParameters = Array('username' => "************", 'password' => "*******",'clientID'=>$_POST['clientID'],'begDate' => "2017-08-18T13:20:47-07:00",'endDate' => "2017-09-18T13:20:47-07:00") ;

为什么我会收到此错误的日期格式begDate和endDate请建议我.

谢谢.

推荐答案

Soap PHP SOAP扩展在验证请求时抛出此错误,而不是您正在调用的API.

This error is thrown by the Soap PHP SOAP extension when it validates the request, not by the API you're calling.

检查您提供的参数是否与WSDL相匹配.

Check that the parameters you're providing match the WSDL.

对于DateTime类型,应使用 ISO8601 字符串,请确保您提供的是.请注意,PHP DateTime :: ISO8601实际上存在缺陷,您应该使用DateTime :: ATOM.

For DateTime types, an ISO8601 string is expected, make sure you're providing that. Note that PHP DateTime::ISO8601 is actually flawed, and you should use DateTime::ATOM.

这篇关于EFS API中日期字符串的获取错误不能少于19个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆