Application Development and Automation 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: 
Read only

Error in consuming Web services

KLH
Explorer
0 Likes
973

Hi All,

I'm currently working on two web services: one updates data from a .NET app to SAP (table AUSP) while the other one retrieves data from table in SAP (s503) to a .NET app.

I did testing in function modules and both worked without errors. But when the .NET developers consumed the web service they were unable to consume it and came across an error.

I'm attaching the logs from SOAMANAGER from our BASIS team:

For the update function module:

Please let me know the cause of all these error logs... If there are any questions, please let me know so I can provide you with more details. Thanks!


Best regards,

Keith

1 ACCEPTED SOLUTION
Read only

Hvshal4u
Active Participant
0 Likes
941

Hi Keith,

From the error log it seems that the .NET users are not sending the valid input ( in this case the date )

to the FM or Webservice.

Regards-

Vishal

4 REPLIES 4
Read only

Hvshal4u
Active Participant
0 Likes
942

Hi Keith,

From the error log it seems that the .NET users are not sending the valid input ( in this case the date )

to the FM or Webservice.

Regards-

Vishal

Read only

0 Likes
941

In what error log specifically? Thanks Vishal!

Read only

Former Member
0 Likes
941

As I understand, you have a date field that has 'sy-datum' type in web service method. When the method has been called from .NET side, date field is sent like '02/04/2014'. If you define date field type 'sy-datum or datum' (8 CHARS) your RFC will try to get the value like '02/04/20'. Therefore, your function will get a dump.

Please be sure that the value sent to your function is same format with yours.

In your case, value should be like '02042014' (8 CHARS - DDMMYYYY) or '20140402' (8 CHARS - YYYYMMDD).

Read only

MariaJooRocha
Contributor
0 Likes
941

Hi,

Try to change the data type for the fields date/time to string.

Regards,

Maria João Rocha