+ Reply to Thread
Results 1 to 2 of 2

Thread: Open Project "mxd" by web service and its transmission to Application

  1. #1
    Tim Arth
    Join Date
    Feb 2012
    Posts
    2
    Points
    0
    Answers Provided
    0


    0

    Default Open Project "mxd" by web service and its transmission to Application

    Hi

    Application1 call a web-servis1 which works on server ArcGis Server 10.
    Web-servis1 Should open project MXD (C:\mydoc.mxd)
    And return map in such in container

    public class clImage
    {

    public byte[] Image;

    public double Scale = -1;

    public clExtent Extent;

    public clSize Size;

    public double PageScaleNeed = -1;

    public double PagePercent = -1;
    }




    Made the following


    IServerObjectManager pServerObjectManager = CreateServerObjectManager ();

    serverContext = pServerObjectManager. CreateServerContext ("", "");


    IMapDocument mxd = serverContext. CreateObject ("esriCarto. MapDocument") as IMapDocument;

    mxd. New ("C:\mydoc.mxd");

    //in this variable I should give a map
    clImage retValue =

    Prompt how to make or where to read
    Thanks
    Last edited by vantagetim; 02-27-2012 at 07:07 PM.

  2. #2
    Domenico Ciavarella

    Join Date
    Mar 2010
    Posts
    2,678
    Points
    458
    Answers Provided
    71


    0

    Default Re: Open Project "mxd" by web service and its transmission to Application

    see IMapDocument

    Code:
    mxd.Open(yourpathandfilemxd,"");
    IMap map = mxd.get_Map(0);
    ....
    Studio A&T srl

    Domenico Ciavarella

    ESRI Certified
    Enterprise Geodatabase Management Associate 10.1
    Web Application Developer Associate 10.1

    My ArcGIS.com

    Blog: NicoGis

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts