We have configured an ODATA service in
gateway system
We have installed NWGW plugin in macos .
When we are trying to browse the services
we are able to see only SDATA services in NWGW plugin of macos.
So we have changed the service from ODATA
to SDATA in gateway system. We are able to access the services.
When we are using POST to update the data
we are getting CSRF as null value.
I am using the following method
CSRFData *csrf = [connectivityHelpergetCSRFDataForServiceURL:
Please provide us the pointers to resolve the issue
Hi Reshma,
In case of SDATA, csrf token is not required. CSRF token in needed for the OData services.
Regards,
Mohan
Hi Reshma,
I would suggest to check the How to guide for XCODE which is available here. http://scn.sap.com/docs/DOC-26015. Please check page 28, you will get information for how to retrieve X-CSRF token in xcode.
I hope this helps.
Regards,
Hardik
Hi Hardik,
Thank you for the reply.
As per your suggestion we have followed the document you have suggested.
But we did not get any information for retrieving X-CSRF token in Xcode.
But we followed the procedure mentioned there ,the following is the process.
When we are trying to get the response in xcode by using the following code,
SDMConnectivityHelper *supConn =[[SDMConnectivityHelper alloc] init];
LiteSUPUserManager *supUserManager = [supConn activateSUPModeWithHost:@"xxxx" andSUPPort:xxxx andSUPFarmId:@"0" andAppId:@"xxxx"];
[supConnregisterSUPUser:@"xxxx" andPassword:@"xxxx"
andSecurityConfigName:@"Basic" andSUPUserManager:supUserManager];
0262Service *service = [[0262Service alloc] init];
[servicesetServiceDocumentUrl:[LiteSUPAppSettingsgetApplicationEndPoint]];
NSMutableArray *personalDataArray = [service
get02PDWithData:[[supConn executeBasicSyncRequestWithQuery:service.02PDQuery]
responseData] error:nil];
I am getting the following error
Returned Query URL: /02PD
ERROR :: SUPJsonException:expected string,
found 140/Location:-[SUPRequeststartSynchronous] + 1159
ERROR :: 400:Bad
request/Location:-[SUPRequeststartSynchronous] + 1184
Exception during parsing response data. Error:
The document is not a valid data document
<?xml version="1.0"
encoding="utf-8"?><error ><message
xml:lang="en">Malformed URL recieved :no protocol:
/02PD</message></error>
When I am trying to print the end point. I am
getting null value.
Can you please help me in resolving this.
Hi Reshma,
You are referring to the same problem mentioned here: http://scn.sap.com/message/13227373#13227373
Right?
Thanks,
Guy
Hi Guy,
Yes it is the same problem. Please help me in resolving it.
Thanks,
Reshma
Please see my reply there.