RPC communication not working

Avatar
  • updated
  • Answered

Hi,


I am trying to test the RPC functionality of the bOS server with the postman tool. When I try to send a post request as described in the manual to call a function (please note that the .net test file link at the manual page does not work so I cannot see more detail/examples), I am always getting an "Object reference not set to an instance of an object." response. The Any idea what I am doing wrong? RPC is enabled in the server service configuration file.

Thank you in advance

How would you rate the customer service you received?

Satisfaction mark by MyName MySurname 9 years ago

Support is good and relative prompt. Thank you

Add a comment about quality of support you received (optional):

Pinned replies
Avatar
Tilen Suhadolnik
  • Answer

Hello,

Thank you for notifying us about broken link. The RPC demo client can be downloaded here:

http://www.comfortclick.com/Archive/BOS3_0_76/Util/RPCClient.zip

Please let us know if you have any more questions.


Best regards,

Tilen

Avatar
ComfortClick Support
  • Under review

Hi,

we will check and if it's a bug we will try to fix it as soon as possible.


Regards

Avatar
MyName MySurname

Thank you, please also restore the link to the example file (.NET C# Sample code http://www.comfortclick.com/BOS/Util/RPCClient.zip) at the bottom of the BOS server manual page, or just send me an plain RPC example http line request that works with the current server release.

Thank you in advance

Regards

Avatar
Tilen Suhadolnik
  • Answer

Hello,

Thank you for notifying us about broken link. The RPC demo client can be downloaded here:

http://www.comfortclick.com/Archive/BOS3_0_76/Util/RPCClient.zip

Please let us know if you have any more questions.


Best regards,

Tilen

Avatar
MyName MySurname

Thank you for the new link. Have you check my original question if it is a bug or not?

Thank you in advance.

BR

T

Avatar
Tilen Suhadolnik

Download (and build) the RPCClient and try to call the function there. If it works, then you are probably sending incorrect messages (with the postman tool).

Avatar
MyName MySurname

Thank you, I've tried some tests the RPCClient with the latest server version and it's working now.

BR

T

Avatar
MyName MySurname

Hi, even though at the previous build it was working normally, the last build 4.2.7 seems to broke the RPC server communication. I am getting a return message:"No parameterless constructor defined for this object" when I am trying to call the function "SendNotification" for a specific user device (ios client) from the RPCClient. Can you please check it? thanks

Avatar
MyName MySurname

Another strange thing with the new build is that if I call the function "SendPush" for the parent "User" object, the server message is then "OK" but again the notification is not presented to the client device...

Avatar
Tilen Suhadolnik

Hi,

if you are getting "No parameterless constructor defined for this object" message while calling SendNotification, it is probably that you have forgotten to add apostrophes around the message.


Here is the example for sending the notification to Android device from RPC:


If you are having problems with receiving the notification message to your device (not related to RPC), then please open another topic.


Best regards,

Tilen

Avatar
MyName MySurname

Adding apostrophes to the message text was what needed, thank you Tilen!

Best regards