I am totally new to javascript and using the ArcGIS API for JavaScript 3.19.
I am writing a script to add a map to our gazetteer search web page where the address searched / found can be displayed as a pin on a map. I managed so far to do it pointing to our Basemap cache on our internal ArcGIS rest services but I have no idea how to replace this cache with a WMS layer that we use as a service which has a much better coverage (whole of UK) - i.e. external url with a username and password in it (sorry - I can't share the url as it is a paid service)
I have looked at the resources and samples on ArcGIS API for JavaScript site but I'm still confused as it seems to refer to layers when our service is a composite of various layers.