Can't access dynamic layer from outside the company

Discussion created by jraymond on Apr 28, 2010
Latest reply on Apr 29, 2010 by jraymond

I'm very new to ArcGIS Server and scripting and am having some trouble with accessing a dynamic layer from outside the company.  The script below works fine when I am within the company, but I am trying to give someone access to these services from the outside and only the tiled map service works.  The guy tells me that through debugging he can see that the service is still trying to hit gisweb at some point instead of gisweb.XXX.com to access the service.  Again, the tiled layer works so it's not a permissions thing or anything.  Has anyone ever experienced this at all or know where to start looking for the problem?  I'm guessing it's something in the configuration but I have no idea what.



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="http://www.w3.org/1999/xhtml">
    <title>Add Spot5 to Google Maps</title>
    <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABC"></script>
    <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6"></script>
    <script type="text/javascript">
    var gmap = null;
    var mapExtension;
    var gOverlays = null;
    var dynMapOv = null;

function initialize() {
      //Load Google Maps
      gmap = new GMap2(document.getElementById("gmap"));
      var centerat = new GLatLng(0, 0);

      gmap.addControl(new GLargeMapControl());
      gmap.addControl(new GMapTypeControl());
      gmap.setCenter(centerat, 1);

      //create mapextension class to be used to add/remove results from the map.
      mapExtension = new esri.arcgis.gmaps.MapExtension(gmap);

      //create mapOptions to specify opacity, minResolution, maxResolution when adding to the map.
      var mapOptions = {opacity: 0.75, minResolution:0, maxResolution: 19};

     //create custom tile layer
      var tiledmap = new esri.arcgis.gmaps.TiledMapServiceLayer
         mapOptions, addTiledMap);

     //create custom dynamic layer
      var dynamicMap = new esri.arcgis.gmaps.DynamicMapServiceLayer
        null, 0.75, dynmapcallback);


function addTiledMap(gTileLayer) {
      //Add tile layer as a GTileLayerOverlay using mapExtension
      gOverlays = mapExtension.addToMap(gTileLayer);

function dynmapcallback(groundov) {
      //Add groundoverlay to map using gmap.addOverlay()
      dynMapOv = groundov;


    <body onunload="GUnload();" onload="initialize();">
    <div style="width: 500px; height:500px;" id="gmap"></div>