soe problem in arcgis server 10.1

Discussion created by ken25 on Jun 17, 2013
Latest reply on Jun 22, 2013 by
I wan't to dynamic add  cad layer on the map,and export image to display on the flex.
I write a soe like this:
IMap map = ...; cad workspace...
IFeatureLayer cadlayer = ...;
...export map ...

use IMap is very convenient to achieve this.
but when i run this code,found in the arcgis 10.1  use .sd to publish service,can't support IMap interface again.
in the 10.1 soe,how to do this work?
is there some other way,i can use IMap,ILayer interface again?