Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/350.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java weblogic 11g和weblogic 12c上的jax-ws-datetime解析差异_Java_Xsd_Jaxb_Weblogic_Jax Ws - Fatal编程技术网

Java weblogic 11g和weblogic 12c上的jax-ws-datetime解析差异

Java weblogic 11g和weblogic 12c上的jax-ws-datetime解析差异,java,xsd,jaxb,weblogic,jax-ws,Java,Xsd,Jaxb,Weblogic,Jax Ws,我对部署在WebLogic11g和WebLogic12c上的web服务有一种奇怪的行为 对于wsdl中声明的xsd:datetime类型的字段: xmlns:xs="http://www.w3.org/2001/XMLSchema" <xs:element name="startDate" type="xs:dateTime" minOccurs="0"/> xmlns:xs=”http://www.w3.org/2001/XMLSchema" 在weblogic 11g上,不

我对部署在WebLogic11g和WebLogic12c上的web服务有一种奇怪的行为

对于wsdl中声明的xsd:datetime类型的字段:

xmlns:xs="http://www.w3.org/2001/XMLSchema"

<xs:element name="startDate" type="xs:dateTime" minOccurs="0"/>
xmlns:xs=”http://www.w3.org/2001/XMLSchema"
在weblogic 11g上,不需要时间:

<startDate>2015-02-20</startDate>
2015-02-20
在weblogic 12c上,如果输入相同,则该字段被视为null,我需要添加时间以使web服务正常工作:

<startDate>2015-02-20T00:00:00</startDate>
2015-02-20T00:00:00

我最终发现调用web服务的客户端提供了正确的日期格式(默认值为小时:2015-02-20T00:00:00(因为它们基于指定日期时间格式的wsdl)

问题只出现在SoapUI上,在SoapUI上,您可以手动输入日期,而无需输入小时