WebGIS Discussions

Need a push in the right direction when configuring WebMap, Portal or SDI services? Looking for hints and tips, or just looking for Ideas and information? The WebGIS discussion board is where you start those discussions, connect and share information.
Showing results for 
Search instead for 
Do you mean 
Reply
New Contributor
Posts: 3
Registered: ‎02-12-2019

https on consumper portal

[ Edited ]

Has anyone been able to get HTTPs working on Consumer Portal? We are trying to enable behind a Reverse proxy, but the biggest issue we have had is getting WMPS to work.

Have had to change backend as per other discussions. the webconfig looks like this now:

<wsHttpBinding>
        <!--
        "MapPublisherBinding" needs different configuration for HTTP and HTTPS schema.
        You must choose the right one depending on the scheme of WMPS services you intend to run
        You can find these configurations below.
    
        CONFIGURATION FOR HTTPS SCHEMA:  -->
        <binding name="MapPublisherBinding" maxReceivedMessageSize="2147483647" sendTimeout="00:10">
          <security mode="TransportWithMessageCredential">
            <message establishSecurityContext="true"/>
          </security>
        </binding>
       
        <!-- CONFIGURATION FOR HTTP SCHEMA: 
        <binding name="MapPublisherBinding" maxReceivedMessageSize="2147483647" sendTimeout="00:10">
          <reliableSession ordered="false" />
        </binding>-->
        <binding name="EGISBinding" maxReceivedMessageSize="2147483647" sendTimeout="00:10" />
        <binding name="wsHttpBinding" maxReceivedMessageSize="1000000" sendTimeout="00:10" />
      </wsHttpBinding>

 

We get the below error when the backend does a PUT with this as the payload:

{"url":"https://servername/WMPS/MapService.svc","application":"appname","auth":{"type":"none"}}

 

The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
Technical Evangelist
Posts: 421
Registered: ‎02-04-2016

Re: https on consumper portal

What version of WebMap are you using ?

 

Have you modified the web.config of the WMPS service ?  Also have you modified the web.config of the BackendWMPS (C:\Program Files\Common Files\Hexagon\Services\AdminInstances\BackendWMPS) ?

New Contributor
Posts: 3
Registered: ‎02-12-2019

Re: https on consumper portal

Webmap Advantage 2020 - 16.6.0.27. Yes I have done so for both confg files, by following the guide on this community site.

 

I tried using backendwmps to no avail. I feel as though the issue is in the backend web.config not wmps as switching betwen wmps and backendwmps didn't make any difference (with multiple http/https configs)

 

I was hoping someone could help out based on their own examples of rsetting this up.

Ideally we would have minimal changes as it is behind a reverse proxy.

 

Technical Evangelist
Posts: 421
Registered: ‎02-04-2016

Re: https on consumper portal

The stock v16.6 WebMap support HTTPS configuration for Consumer Portal, the official document is here:

https://hexagongeospatial.fluidtopics.net/reader/nnybR~tZxbDITXWj2GgNxQ/U_1QrndqIXEB9u~zEaNZ3w

 

What error are you getting when you visit BackendWMPS service (after modifying the BackendWMPS web.config to use HTTPS schema as per the internal comment within the web.config) ?

https://servername/BackendWMPS/MapService.svc 

 

You may want to test the HTTPS WMPS service as well (as per the official doc), what do you see from the HTTPS WMPS service ?

https://servername/WMPS_Test1/MapService.svc 

 

Could you post the link of the guide you were refering to ?

 

New Contributor
Posts: 3
Registered: ‎02-12-2019

Re: https on consumper portal

I was referring to similar steps in this documentation.

I have confirmed this specific issue was due to misconfiguration of the cert vs the url.

 

Still struggling to get this working through and F5 reverse proxy. Would be awesome if there was a guide on what needs to be done on the server + reverse proxy if anyone has one, or has done it?