SOAPUI DateFormat error

I'm new to here, sorry if I'm wrong posting my question. I am using SOAPUI to test a web service. Inside the Soap post, I need to add StartDate and EndDate, but I am getting both an error (the input line was not in the correct format) I am trying several DateFormats that I found over the internet, I still get the same error.

Here you have SOAPUI options.

thank

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
   <soapenv:Header>
      <tem:Message>
         <!--Optional:-->
         <tem:Value>?</tem:Value>
      </tem:Message>
      <tem:APIKeyHeader>
         <!--Optional:-->
         <tem:Value>cbe40420</tem:Value>
      </tem:APIKeyHeader>
   </soapenv:Header>
   <soapenv:Body>
      <tem:GetTasks>
         <!--Optional:-->
         <tem:PIDs>
            <!--Zero or more repetitions:-->
            <tem:string>2857fd7c-a720</tem:string>
         </tem:PIDs>
         <!--Optional:-->
         <tem:UserID>blue</tem:UserID>
         <!--Optional:-->
         <tem:IDs>
            <!--Zero or more repetitions:-->
            <tem:string>?</tem:string>
         </tem:IDs>
         <!--Optional:-->
         <tem:TaskStatus>true</tem:TaskStatus>
         <tem:StartDate>2008-10-26T21:32:52.12679</tem:StartDate>
         <tem:EndDate>2014-10-26T21:32:52.12679</tem:EndDate>
         <tem:ExtentionDays>true</tem:ExtentionDays>
         <tem:ShowNotReady>false</tem:ShowNotReady>
      </tem:GetTasks>
   </soapenv:Body>
</soapenv:Envelope>

      

+3


source to share


1 answer


Try the Sortable date / time pattern, it works for me

Console.WriteLine(date1.ToString("S", CultureInfo.CreateSpecificCulture("en-US"))); 

      



In XML

 <tem:StartDate>2014-01-10T15:51:24</tem:StartDate>
 <tem:EndDate>2018-01-10T15:51:24</tem:EndDate>

      

+1


source







All Articles