cancel
Showing results for 
Search instead for 
Did you mean: 

.NET(C#) to SAP Throw ODATA.

p24time
Explorer
0 Kudos

Hi Expert,

I want to transfer data from .NET(C#) to SAP throw odata. it's working fine for Chrome Advance rest client...

Below is Advance Rest Client Screen Shot.

in Advance Rest Client App data inserted in user table. but when pushing data from .NET Application its not working

Below Screen Shot when pushing data from .NET.

Below Code for Getting header detail from SAP ( GET Method )

Below Code when pushing data with following header detail from SAP ( POST Method )


GET code working fine. fetching X-CSRF-Token successfully from SAP.

but in POST code returning error "CSRF token validation failed".

please help.

Thankx

Prakash


Accepted Solutions (1)

Accepted Solutions (1)

lynn_lin
Active Participant
0 Kudos

Hi,

Please check the following documentation for this issue.

https://help.sap.com/saphelp_nw74/helpdata/en/b3/5c22518bc72214e10000000a44176d/content.htm

Regards,

Lynn

p24time
Explorer
0 Kudos

Hi Lynn ,



Thankx for your reply ... CSRF Token working fine with Chrome Advance Rest Client.


only issue with .Net application .. when i am pushing data from .NET.


at the time of data pushing i am fetching access token from SAP throw Fetch method and passing it into POST Method at time of data sending. all process are work properly only issues with Token validation. time of data sending .NET validate CSRF token with SAP and return with error " CSRF Token validation faild "





Thanks


Prakash.

Answers (0)