Elmwood Park, N.J.--WebMD Corp. posted a second-quarter loss of $821.8 million, compared with a loss of $518.3 million in the year-earlier period. Revenue totaled $178.7 million, up from $101.1 million a year earlier. The company has been working to build relationships that increase its marketing power with the potentially lucrative-and enormously elusive physician demographic. The company's success in doing so has been marked; revenue from physician services rose to $65.1 million in the second quarter, up from $9.2 million during the year-earlier period. Among WebMD's marketing deals aimed at bringing in more doctor clients are pacts with MediBuy.com and Envoy Corp.