Hello,
I implemented a remote service on c sdk. the service have a xml parameter
service(XML param)
when i run the service from edge, i use twInfoTable_GetString function.:
enum msgCodeEnum implementedService(const char* entityName, const char* serviceName, twInfoTable* params, twInfoTable** content, void* userdata) {
char* param;
int res;
TW_LOG(TW_TRACE, "implementedService- Function called");
if (!content) {
TW_LOG(TW_ERROR, "implementedService- NULL params or content pointer");
return TWX_BAD_REQUEST;
}
/* Get properties read into local variables */
twInfoTable_GetString(params, "param", 0, ¶m);
.........
...........
}
It worked until I put as parameter a long xml text (5000 characters).
The twInfoTable_GetString truncate the text and i cannot have the whole parameter.
Do you have any idea how to get the whole param even when t's too long ?
Thank you for your help
Solved! Go to Solution.
Hi @AliBenBelgacem ,
Looks like this issue is related to https://www.ptc.com/en/support/article/CS365049
Could you please try the following workaround as mentioned in the article resolution?
Hi @AliBenBelgacem ,
Looks like this issue is related to https://www.ptc.com/en/support/article/CS365049
Could you please try the following workaround as mentioned in the article resolution?