The paper introduces a service-oriented model for semantic grid in which each grid service is a web service with certain domain knowledge.It analyses a layer structure for semantic grid
the software architecture of S Grid and introduces the implementation of web service-oriented wrapper generator(WSOWG) which is used to automatically wrap legacy codes as semantic grid service.