zeshanjadoon

Problem With ArcGIS Server Services

Discussion created by zeshanjadoon on Apr 7, 2011
Latest reply on Apr 7, 2011 by sli-esristaff
Hi,

I am new to  web mapping application with ArcGIS Java Script API, I build a page its works fine on Local, but when i go over internet, it doesn't show my Layers only Google Background image, I am giving my Live IP address to connect Services, These services can be viewed but i am not able to access these services through Web Application.

I am pasting my code below.
________________________________________________________________________________

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <title>ArcGIS</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAoCCuxJYvQKuOME9a3Fc8KhS3iegp0cxLQXAJedXkaj3wQFFtEhTesTSfWOBzZ-EKH79ER3PXZ-lnhA" type="text/javascript"></script>
    <script src="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6" type="text/javascript" ></script>

    <script type="text/javascript">

    var gmap = null;

    function initialize() {
      gmap = new GMap2(document.getElementById("gmap"));
      var centerat = new GLatLng(31.592, 71.014);

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


      var admin = new esri.arcgis.gmaps.DynamicMapServiceLayer
        ("http://0.0.0.0(myliveip)/ArcGIS/rest/services/javatest/admin_boundries/MapServer",
        null, 0.75, dynmapcallback);
  }
    function dynmapcallback(mapservicelayer) {
      gmap.addOverlay(mapservicelayer);
    }
    </script>
  </head>
  <body onload="initialize();" onunload="GUnload();">
    <div id="gmap" style="width: 100%; height:550px;"></div>
  </body>
</html>

Outcomes