Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
There are two kinds of projects in the installation directory. “WmsPluginService” is for deploying a server while other projects are used to consume that service as clients. We strongly recommend you to have a look at the notes below.
Here are the steps to deploy the WMS service.
1. Open the “C# Winforms HowDoISamples.sln” solution and set the “Default.aspx” as the default startup page.
2. Run the project and write down the root URL of the server, for example: http://localhost:62626/
3. Modify the Capability files “CapabilitiesXml/WmsHandlerCapabilities.xml , SecureServerRequestsWmsHandlerCapabilities.xml, ThrottleUserRequestsWmsHandlerCapabilities.xml”.
Get the “OnlineResource” node, change the server request link with the server URL mentioned above. Don’t forget to add the “/WmsHandler.axd” behind. See the snapshots below:
4. Stop the WMS Server and run the project again to make the changes take effect.
Open “CSharp DesktopEdition client” or any other client side solutions to consume the deployed WMS Service. Before running the projects, please remember to modify the WMS service URL in the sample. See the screenshot below: