In Progress

Incorrect date format when calling a webservice

Hi,

I'm using a webservice to which I pass a date (datetime attribute).

Unfortunately, the format of the date is incorrect : the local format is "dd/mm/yyyy" and the date is passed in the format "mm/d/yyyy".

How can i correct this ?

Best Answer
photo

Dear Philippe,

Every project in Bizagi has built-in SOAP web services to expose the Processes' functionality for integration with external applications.Bizagi SOA Layer complies with the SOAP standard. The Web services in Bizagi SOA Layer are already published at the web-based Work Portal (accessible through a browser).Their URL may slightly vary according to the Server used in the project. In the following article at http://help.bizagi.com/bpmsuite/en/index.html?soa_layer_url_and_consideratio.htm lists further detail about this and some considerations for web services interoperability among different platform technologies.

  • Using Dates

When sending and including dates in an XML, it is required to use the standard date format for XML information which is:

  • YYYY-MM-DDTHH:mm:ss

Regards

photo
0

Dear Philippe,

Every project in Bizagi has built-in SOAP web services to expose the Processes' functionality for integration with external applications.Bizagi SOA Layer complies with the SOAP standard. The Web services in Bizagi SOA Layer are already published at the web-based Work Portal (accessible through a browser).Their URL may slightly vary according to the Server used in the project. In the following article at http://help.bizagi.com/bpmsuite/en/index.html?soa_layer_url_and_consideratio.htm lists further detail about this and some considerations for web services interoperability among different platform technologies.

  • Using Dates

When sending and including dates in an XML, it is required to use the standard date format for XML information which is:

  • YYYY-MM-DDTHH:mm:ss

Regards

photo
0

Hi,

Thank your for your response but as i said, the format of the date send by bizagi to the web service is not "YYYY-MM-DD" but "mm/d/yyyy" so it's not correct.

photo
0

Dear Philippe,

In order to fix it, you can create some validations before sending some information. Please check these articles in order to trace the results:

Best Regards

photo
0

Hi,

Attached will you find the SOAJSON file (request sent by Bizagi to the web service).

As you will see, the format of the date attribute is incorrect (the date i've entered is 3th decembre 2014).

photo
1

Just to complete : the problem is when BIZAGI calls a external webservice (not the opposite)

photo
0

Dear Philippe,

In order to best help you to solve it, please explain us what you are receiving from the remote server or what is sending into the SOAP message. To do so, please send us the .svclog file (you can see it using a tool called svclogViewer), which is in the same folder where you took .json file.

What we think about the problem is that the server has a X date format and it is shown in the json file, then how SOAP uses XML, so the date time takes the format: YYYY-MM-DDTHH:mm:ss, which is a standard format to not have localization problems.

Regards