RO,
Sorry to hear the bad news.
Assuming your continued employment in this engagement was reliant on the client's expectation that you would be able to create such a solution on your own, then the employment relationship was doomed anyway.
You can look at this change as an opportunity. You can begin searching for employment where your skills actually match with the employer's requirements. You might want to begin searching for a position where you can be a junior member of an experienced team that is led by a consultant that has already done similar implementations. Experience is the first stepping stone to becoming an independent consultant.
Best Regards,
DB49