method sendPacket as rest service for level three