We have a simple WSDL which holds a datetime attribute. This attribute is converted correctly by the CXF library and holds the Ivy DateTime format in the generated ws class. When we pass a datetime into the ws call, the datetime is formatted as 2018-11-26T12:56:52+01:00 but the ws provider (in our case SAP) needs the datetime within the UTC timezone, like: 2018-11-26T12:56:52Z

How can we change the format? Is there a simple way, for example to pass the timezone to the Ivy DateTime object? ...or pass a SimpleDateFormat object for the string formatting?

asked 26.11 at 09:32

Adrian%20Imfeld's gravatar image

Adrian Imfeld
1466614
accept rate: 33%

This question is maybe relatet to this question: https://answers.axonivy.com/questions/1952/axis2-date-converter But we are looking for a simple way to do this in the new CXF library.

(26.11 at 09:34) Adrian Imfeld Adrian%20Imfeld's gravatar image

May be the easiest way is to just send a String with the correct format.

link

answered 26.11 at 10:15

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.2k6384105
accept rate: 76%

Yes it would work to "manipulate" the wsdl locally... So there is know way for this in the new CXF library, so far...?

(26.11 at 10:24) Adrian Imfeld Adrian%20Imfeld's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×40
×2

Asked: 26.11 at 09:32

Seen: 40 times

Last updated: 26.11 at 10:24