Skip to Content
0
Former Member
Nov 06, 2005 at 05:52 PM

Problem with date-time format field - while calling webservice from XI

1718 Views

Hi

I have a scenario in which I use the XI SOAP receiver adapter to call a webservice that is residing on another server.

I imported the WSDL for the web service into XI. The data feed for the Webservice call is coming from a ABAP client proxy.

Now, there is a xsd-datatype date-time field - that is one of the parameters of the webservice to be called.

When I test the webservice on a standalone mode ( on its server ), I test its functioning with an arbitrary value for the date-time field - say 11/06/2005 11:00:01 AM along with some other parameter values for the webservice.When invoked , the webservice does what its supposed to do - updates a SQL server DB in the background - the date-time is updated properly as a part of the database record inserted into the DB table.

Now, in XI, in the ABAP proxy-webservice mapping, I hardcode this date-time target field value ( with a CONSTANT )in the WSDL structure to the one I tested the webservice on a standalone mode i.e 11/06/2005 11:00:01 AM . Surprisingly , I get an SOAP adapter error message -System Error in RWB- Adapter monitoring message. In SXMB_MONI - the message is successfully processed - i.e passed to the adapter.

The following is the error message :

*************************************************

<b>soap fault: Server was unable to read request. --> There is an error in XML document (1, 2332). --> String was not recognized as a valid</b>

*************************************************

Obviously the above message is coming from the webservice call - the XI adapter is calling the webservice with a wrong date-time value....other than the one I passed in the mapping. In SXMB_MONI, I can see the mapped XML document that is passed to the adapter - that XML document contains the date-time that I had hardcoded for the target field - 11/06/2005 11:00:01 AM

Does anyone had this date-time field updation experience with XI SOAP adapter or another other XI adapter ( JDBC ?? )

Thank you in advance for your time and help.