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.
Adam,
So far your GIS Server does not seem to be publicly exposed.
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.
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.
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.
Adam,
Is there some requirement for your ArcGIS Server to only be exposed using https?
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.
Adam,
Hmm. that is an IT staff question.
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?
Adam,
Correct