# GetCapabilities for WMS Server

**URL:** <https://community.thinkgeo.com/t/getcapabilities-for-wms-server/7095>\
**Category:** Services\
**Created:** [September 1, 2009, 6:16am UTC](https://community.thinkgeo.com/t/getcapabilities-for-wms-server/7095 "2009-09-01T06:16:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/e56c9b/32.png) [@Gregory](https://community.thinkgeo.com/u/Gregory)\
**Post date:** [September 1, 2009, 6:16am UTC](https://community.thinkgeo.com/t/getcapabilities-for-wms-server/7095/1 "2009-09-01T06:16:10Z")

</div>

I've&nbsp;created&nbsp;a&nbsp;WMS&nbsp;Service&nbsp;that&nbsp;is&nbsp;patterned&nbsp;off&nbsp;the&nbsp;WMS&nbsp;sample&nbsp;code.&nbsp;This&nbsp;WMS&nbsp;service&nbsp;works&nbsp;well&nbsp;with&nbsp;the&nbsp;web&nbsp;edition&nbsp;3.0&nbsp;WMS&nbsp;raster&nbsp;layer.&nbsp;However,&nbsp;when&nbsp;I&nbsp;try&nbsp;to&nbsp;use&nbsp;the&nbsp;desktop&nbsp;edition&nbsp;3.0&nbsp;WMS&nbsp;raster&nbsp;layer,&nbsp;it&nbsp;complains&nbsp;that&nbsp;I&nbsp;have&nbsp;not&nbsp;defined&nbsp;GetCapabilities.

Questions:

1.&nbsp;What's&nbsp;the&nbsp;minimum&nbsp;definition&nbsp;I&nbsp;need&nbsp;for&nbsp;the&nbsp;GetCapabilities?

2.&nbsp;I'm&nbsp;returning&nbsp;a&nbsp;raster&nbsp;(satellite)&nbsp;layer&nbsp;with&nbsp;one&nbsp;of&nbsp;the&nbsp;three&nbsp;themes&nbsp;-&nbsp;roads,&nbsp;satellite&nbsp;and&nbsp;hybrid.&nbsp;Do&nbsp;I&nbsp;define&nbsp;these&nbsp;as&nbsp;layers&nbsp;or&nbsp;themes?

---

<div class="post-metadata">

**Author:** ![Gregory](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/e56c9b/32.png) [@Gregory](https://community.thinkgeo.com/u/Gregory)\
**Post date:** [September 3, 2009, 1:15pm UTC](https://community.thinkgeo.com/t/getcapabilities-for-wms-server/7095/2 "2009-09-03T13:15:40Z")

</div>

Bump!

Has&nbsp;anyone&nbsp;had&nbsp;a&nbsp;chance&nbsp;to&nbsp;look&nbsp;into&nbsp;this&nbsp;question?&nbsp;Thanks!

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [September 4, 2009, 1:19am UTC](https://community.thinkgeo.com/t/getcapabilities-for-wms-server/7095/3 "2009-09-04T01:19:52Z")

</div>

Gregory,

Sorry&nbsp;for&nbsp;the&nbsp;delay!  
&nbsp;  
_For&nbsp;the&nbsp;first&nbsp;question:_  
If&nbsp;you&nbsp;work&nbsp;with&nbsp;the&nbsp;desktop&nbsp;edition&nbsp;3.0,&nbsp;first&nbsp;you&nbsp;will&nbsp;send&nbsp;GetCapabilities&nbsp;request&nbsp;to&nbsp;server,&nbsp;and&nbsp;then&nbsp;get&nbsp;metadata&nbsp;about&nbsp;the&nbsp;WMS&nbsp;Server&nbsp;from&nbsp;the&nbsp;returned&nbsp;XML&nbsp;document,&nbsp;here&nbsp;is&nbsp;an&nbsp;example&nbsp;for&nbsp;the&nbsp;GetCapabilities&nbsp;xml&nbsp;document.&nbsp;You&nbsp;can&nbsp;get&nbsp;it&nbsp;from&nbsp;this&nbsp;link,&nbsp;[worldmapkit1.thinkgeo.com/CachedWmsServer/WmsServer.axd?Request=GetCapabilities&Service=Wms](http://worldmapkit1.thinkgeo.com/CachedWmsServer/WmsServer.axd?Request=GetCapabilities&Service=Wms)  
&nbsp;  
_For&nbsp;the&nbsp;second&nbsp;question:&nbsp;_  
Yes,&nbsp;you&nbsp;can&nbsp;define&nbsp;the&nbsp;layers&nbsp;and&nbsp;styles&nbsp;what&nbsp;you&nbsp;want.&nbsp;You&nbsp;could&nbsp;get&nbsp;information&nbsp;about&nbsp;that&nbsp;in&nbsp;the&nbsp;sample&nbsp;project&nbsp;in&nbsp;attachment&nbsp;which&nbsp;you&nbsp;must&nbsp;add&nbsp;your&nbsp;test&nbsp;data&nbsp;in&nbsp;the&nbsp;App\_Data&nbsp;folder.  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [September 8, 2009, 8:57pm UTC](https://community.thinkgeo.com/t/getcapabilities-for-wms-server/7095/4 "2009-09-08T20:57:55Z")

</div>

Gregory,

Sorry&nbsp;for&nbsp;missing&nbsp;the&nbsp;attachment!  
&nbsp;  
Thanks.  
&nbsp;  
Yale  
  
[1158-CSharp\_VS2008\_WmsServiceSamples.zip](https://community.thinkgeo.com/uploads/default/original/2X/b/b093221b7d19fb02d5aa43356a075c12664c55be.zip) (44.1 KB)
