Thanks Robert.
I am able to see the shapes.
Steps:
I publish the service the layer in ArcMap as Feature and as well I checked Query for the Attribute Table widget.
I created an new application/set the Basemap/added the newly created service above the basemap.
Now I can view the basemap and service.
Query:
The ArcGIS server tutorial stating about various services like mapservice/KML service/WFS service.But On which scenario we have to use what service.
For the above I used map service.
Once again thanks for your efforts