Dylan,
I'm not sure what's going on, at first things look ok:
x.x.x.x - - [09/Oct/2017:13:40:10 -0700] "GET
/?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS HTTP/1.1" 200
1438509 "-" "MATLAB 9.2.0.556344 (R2017a)"
Matlab first requests capabilities with version 1.3.0 which Lunaserv
doesn't support, so Lunaserv responds with a version 1.1.1 capabilities
response.
x.x.x.x - - [09/Oct/2017:13:40:24 -0700] "GET
/?REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=WMS HTTP/1.1" 200
1438614 "-" "MATLAB 9.2.0.556344 (R2017a)"
Now Matlab is requesting version 1.1.1, and Lunaserv responds with
1.1.1, so this should be it in terms of version negotiation, but then
this happens:
x.x.x.x - - [09/Oct/2017:13:40:27 -0700] "GET
/?REQUEST=GetCapabilities&VERSION=1.3.0&SERVICE=WMS HTTP/1.1" 200
1438636 "-" "Java/1.7.0_60"
x.x.x.x - - [09/Oct/2017:13:40:29 -0700] "GET
/?REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=WMS HTTP/1.1" 200
1438738 "-" "Java/1.7.0_60"
x.x.x.x - - [09/Oct/2017:13:40:32 -0700] "GET
/?REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WMS HTTP/1.1" 200
1438745 "-" "Java/1.7.0_60"
x.x.x.x - - [09/Oct/2017:13:40:35 -0700] "GET
/?wmtver=1.0.0&request=capabilities HTTP/1.1" 200 1438849 "-"
"Java/1.7.0_60"
Now it's gone from a user agent of Matlab to a user agent of Java, and
it appears to be doing version negotiation again, but this time it
doesn't work properly and then goes a bit nutty and tries for a web map
tiles request (which won't work).
Does wmsinfo return anything meaningful to you? On the server side, it
looks like it negotiates and returns a proper capabilities file when you
make the info request. After that is where it seems to go weird, and I
never see any requests for map tiles (which I would assume the second
bit you've listed should do). Most WMS clients are smart enough to add
or ignore the ? at the end of the URL as needed, so I would expect it to
work either way.
--Nick
>> [1]','LayerName','luna_wac_global');
>>>> wmsupdate(layer);
>>>>
>>>> I get an error message that begins:
>>>>
>>>> Warning: An error occurred while attempting to update layers from
>> the
>>>> server, '
http://webmap.lroc.asu.edu/'. These layers are being
>> removed
>>>> from the layer array. The number of
>>>> layers from this server that are being removed from the layer
>> array is
>>>> 1. The error message returned by the server is:
>>>> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
>>
>>>> <!DOCTYPE WMT_MS_Capabilities SYSTEM
>>>> "
http://webmap.lroc.asu.edu/wms_1.1.1_capabilities.dtd
>> [2]"[<!ELEMENT
>>>> VendorSpecificCapabilities EMPTY>]>
>>>>
>>>> <WMT_MS_Capabilities version="1.1.1">
>>>> <Service>
>>>> <Name>OGC:WMS</Name>
>>>> <Title>Space Exploration Resources - Lunaserv</Title>
>>>> ...
>>>>
>>>> followed by the rest of the capabilities file.
>>>>
>>>> I'm not very familiar with the WMS specification, so can anyone
>>>> suggest what I can do to load the layer properly?
>>>>
>>>> Thanks,
>>>> Dylan
>>>>
>>>> --
>>>> You received this message because you are subscribed to the
>> Google
>>>> Groups "Lunaserv" group.
>>>> To unsubscribe from this group and stop receiving emails from it,
>> send
>>>> an email to
lunaserv+u...@googlegroups.com.
>>>> To post to this group, send email to
luna...@googlegroups.com.
>>>> Visit this group at
https://groups.google.com/group/lunaserv [3].
> Links:
> ------
> [1]
http://webmap.lroc.asu.edu/
> [2]
http://webmap.lroc.asu.edu/wms_1.1.1_capabilities.dtd
> [3]
https://groups.google.com/group/lunaserv