<esri:ArcGISTiledMapServiceLayer url="http://localhost/ArcGIS_server/rest/services/testwithflex/MapServer"/>
Nadeem,
Te reason it is not working is that you are not providing the REST url for your service...<esri:ArcGISTiledMapServiceLayer url="http://localhost/ArcGIS_server/rest/services/testwithflex/MapServer"/>
Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
thnx rscheitlin , however i would appreciate if you can kindly also guide how to provide rest URL , I had copied that URL from server please let me know what is missing
Regards
NAdeem