Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with datetime data type in Web Service

Former Member
0 Kudos

Hi,

I created local ABAP proxy based on a WSDL and some of the fields for the SOAP methods has data type datetime:

name="MsgEndTimeStamp" type="s:dateTime" />

name="MsgStatus" type="s:string"/>

Since ABAP stack doesnt support dataTime data type it has created the proxy method with data type STRING. Now when I call the proxy method (consuming the service) I get an error:

<CODE>SoapFaultCode:4</CODE>

<ERRORTEXT>Server was unable to read request. --> There is an error in XML document (1, 626). --> String was not recognized as a valid DateTime.</ERRORTEXT>

I am sure others have faced the same issue. Can someone help?

Thanks

2 REPLIES 2

Former Member

0 Kudos

Thanks but I dont think that link is much relevant to the problems I am facing, because I cannot change the web service definition as it is used by many others. Also the target application runs on oracle so thats why some of the fields are datetime and I dont want to change that, even if I could.

I am just stuck in creating the wrapper program to call the service since the SAP converts datetime data type to string and when the messages gets to the application it cannot convert string -> datetime.

thanks anyway