Encountered various cross-SITE problems, basically the parameters cannot be serialized

When encountering various cross-SITE problems, basically the parameters cannot be serialized.

1. The remote call parameter ARGS must be a parameter marked with @ProtoMember(n), otherwise the cross-SITE value cannot be obtained.
Before adding a sequence parameter, I was afraid that it would affect other callers, so I simply added a SET and GET method. I didn't expect that there would still be problems across SITE.

2. The remote call parameter must be a class of extends ProtoEntity. Objects such as Boolean and Integer cannot be passed, otherwise the cross-SITE value cannot be obtained.
I only knew that remote parameters cannot pass objects such as Boolean and Integer, but I don’t know the reason. This time I verified it. It’s no problem with SITE, but cross-site is not enough: (

3. If you want to use UserInfo object in remote call parameters, Remember to use UserInfoCompatible, which supports a class that supports cross-site and cross-platform.

4. Each parameter in the remote call parameter must be carefully checked to see if serialization is supported. For example, in an ARGS I encountered, I found an IICUserType, Flag , all do not support serialization.

5. The name after the call parameters SET and GET should be the same as the variable name. You should know this, but there are often misspelled letters and less writing.

6. The call parameters must be Assign initial values, such as enum, etc.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327077026&siteId=291194637