Skip to Content
avatar image
Former Member

DateTime element in web service wsdl

Hi all,

I have the following problem.

I want to call a web service that have a datetime element(xsd:dateTime). In VC it appears as D field.

When I fill it with a date , the web service is called with the date I have filled in(and returns an exception), but I need the time too.

So, When I try to fill the date field with a string representing a dateTime ("2001-10-26T21:32:52") I see in the log, that the date field is not filled in and null is sent with the request.

Does anyone know how can i use this type in a VC application?

I use VC 7.1 on CE 4. In the master guide it is written that the DVAL(@TIME_FIELD,XML) can be used, but I get an expression error that I have too many parameters.

best regards,

v s

Edited by: v s on Sep 5, 2008 11:03 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 07, 2008 at 08:17 PM

    Hi VS,

    Is the Web Service created in JAVA?

    When I created a Web Service for MS SQL, in the web service itself I had a String defined for the DATETIME field and then in VC I saw the format of the DATETime without any errors.

    May be this is something you can try....

    Let me know if it helps.

    Best regards,

    Dharmi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Dharmi,

      I have just read note 1147616 from SAP and it says:

      Symptom

      A field of type that appears in the ws navigator as DateTime or Duration is treated in VC as Date.

      Solution

      There is no known workaround for this issue at the moment

      That should be my problem. Many thanks for your help!

      Best regards,

      v s

  • avatar image
    Former Member
    Sep 09, 2008 at 09:51 AM

    Maybe no solution temporally. If someone has any ideas...

    Add comment
    10|10000 characters needed characters exceeded