implemented JSON and SOAP endpoints sample