I've a script vugen which send a request to a server with fake data which is sent to another server with mock & receive a response. For a field, the date format is datetime, but they both needs a specific format for datetime
XML needs yyyy-mm-ddThh:mm:ss[.fffffffff] format and Vugen needs yyyy-mm-dd hh:mm:ss[.fffffffff]
<?xml version="1.0"?>
<ns:demandeSouscription xmlns:ns="http://url/psc/demandeSouscription/objet/v1">
<infosDemande>
<numDemande>1000000019</numDemande>
<dateCreation>2016-11-22T14:23:14.586</dateCreation>
<typeDemande>1CTRCT10</typeDemande>
<situationUsage>MES_Standard</situationUsage>
<statutGlobal>DEVERSEMENT_EN_COURS</statutGlobal>
<energie>GAZ</energie>
</infosDemande>
<infosLogement>
<numeroPDL>03082814487507</numeroPDL>
</infosLogement>
<infosTitulaire>
<numeroBP>1010101010</numeroBP>
</infosTitulaire>
</ns:demandeSouscription>
In my WSDL here the line for the date field which cause my problem :
<xsd:element minOccurs="0" name="dateCreation" type="xsd:dateTime"/>
To pass XML I used the format with T inside but I get this error : [frmkcommonate:rmatStringDateTmlGregorianCalendar] : java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
Anyone have a solution to deal with both, xml & vugen ? Thanks