Test code for loginPortal webservice method