Select to view content in your preferred language

Local Web Services not displaying in JavaScript API

4073
15
07-29-2015 10:47 AM
AdamSeamans1
Deactivated User

I have now been thrown into the role of a GIS Web Developer.  All the previous experience I have had has been with the Flex API but since Microsoft is pulling the plug on that (someday?), my company wants to work in with the JavaScript API.  I have next to no experience with this API.  I have set up a simple application, which is essentially a copy paste rip off of the following app: Popup widget | ArcGIS API for JavaScript.   I have worked through it and added my own local REST service to the application. The REST service is  publicly facing but, for some reason, is not displaying on the map at all.  The application itself loads, with the base map and everything.  Just not my actual service.  Can anyone offer any ideas as to why?  I have attached the html code I have so far. Thanks. 

Tags (1)
0 Kudos
15 Replies
RobertScheitlin__GISP
MVP Emeritus

Adam,

   So far your GIS Server does not seem to be publicly exposed.

0 Kudos
AdamSeamans1
Deactivated User

Hi Robert,

Then I must be missing something. I am able to hit our REST endpoint from devices outside our firewall.  Granted, it is with an https connection.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Adam,

   That is going to be an issue mixing http and https is not going to work. You will need to have all urls use one or the other.

0 Kudos
AdamSeamans1
Deactivated User

Understood.  I need to use https, so I changed the html to reflect that.  Still having the same problem though.  I readily admit that I am in uncharted waters for me.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Adam,

   Is there some requirement for your ArcGIS Server to only be exposed using https?

0 Kudos
AdamSeamans1
Deactivated User

Robert,

Honestly, not that I know of. That was how server was configured when I took over.  Not really sure how to change it off of mixed mode.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Adam,

    Hmm. that is an IT staff question.

0 Kudos
AdamSeamans1
Deactivated User

Ok Robert, fair enough.

Just to recap and to make sure I understand, you believe the probblem of my service not displaying is because my ArcGIS Server protocol is set to mixed HTTP and HTTPS, correct?  Switching it to, say, just HTTP or just HTTPS would alleviate this problem?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Adam,

   Correct

0 Kudos