cancel
Showing results for 
Search instead for 
Did you mean: 

Dates coming from web service

Former Member
0 Kudos

Hi,

I'm currently trying to consume in VC a CAF Application Service exposed as a Web Service. I'm able to retrieve what I want but I have a problem with dates format.

The web service returns dates in the following format: YYYY-MM-DDTHH:NN:SS

When I test my data service in VC it works fine. When I run my iview, VC swap the month and the day and compute the new date...

It's not just a problem of formatting with DVAL and DSTR because the date is already computed.

Example:

Date returned from web service: 2007-09-21T00:00:01

Date returned from test data service in VC: 21.09.2007

Date returned at runtime: 09.09.2008

VC understand 21.09.2007 not like DD.MM.YYYY but like MM.DD.YYYY so 21.09.2007 becomes 09.09.2008

I also tried to check on the server Regional and Language option but it doesn't come from there.

Have you ever faced this problem?

Thx

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Thomas,

Can you give me more details about web service?

Like web service url.

Regards

Pramod

Former Member
0 Kudos

Hi,

It is a Web Service generated by NWDS (to expose my CAF Application Service)and deployed on the server.

The url si like http://<hostname>:<port>/mywebservice/Config1?wsdl

The Web Service runs correctly.

When I call a method of my web service to retrieve a list of objects (CAF Entity Services) and their attributes, it returns attributes of type String and Dates of type 'java.util.GregorianCalendar'.

It seems that VC doesn't correctly understand this type of Date at runtime

Regards,

Thomas

Former Member
0 Kudos

Hi,

It seems to be a know problem in VC...not only for dates coming from Web Services.

<a href="https://websmp130.sap-ag.de/sap/support/notes/981532">Note 981532 - Date received form WS present wrong</a>

Former Member
0 Kudos

Hi Thomas,

This is a known issue with VC 7.0 SP 11 and SP 10. This can be resolved after applying SP12 stack.

For known issues in VC, you can follow SAP Note 1021675.

Regards

Pramod

Former Member
0 Kudos

Hi Pramod,

Thx for the info, but we use VC 7.0 SP12 and it's not fixed.

Regards,

Thomas