Hexagon Geospatial
MENU

WebGIS

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
Staff
Posts: 11
Registered: ‎11-07-2016

Portal Print Service with SSL

Hi,

 

I have installed Apollo 2016 EP02 with SSL.

I am using self signed certificate and i am able to access Apollo server and Geoportal.

 

I am trying to use portal print service with PhantomJS engine but unable to use it with https enabled Geoportal.

 

Please share the steps for this.

 

Thanks in advance.

 

 

Super Contributor
Posts: 300
Registered: ‎02-09-2016

Re: Portal Print Service with SSL

HI ndiwedi,

 

Would you mind explaining more what error message that you observe?

 

There are already quite alot of topics about printing service with phantomJs on the forum. Have you checked them?

 

Kind regards, 

Highlighted
Super Contributor
Posts: 300
Registered: ‎02-09-2016

Re: Portal Print Service with SSL

HI ndiwedi,

 

We did have a portal running under https. However, when you add the printing service to the portal data source, the printing has run with http. If you turn on the portal's log file, you will see the error message.

 

Kind regards,

Staff
Posts: 11
Registered: ‎11-07-2016

Re: Portal Print Service with SSL

Hi Bob,

 

Thanks for your reply.

 

We have applied self signed certificate and installed Apollo 2016 EP02 after that.

You can access GeoSpatial Portal using link..

Internal link:    https://in-g-igsserver.ingrnet.com/apollo-portal 

External link:   https://111.93.57.30/apollo-portal

 

Now i am trying to explore portal print service using link in browser..

https://111.93.57.30/PrintService/PortalPrintService.svc

 

I am getting "Server error in '/PrintService' application."

 

is there any extra configuration i need to do for print service?

 

 

Thanks.

Nitin

 

 

 

 

Super Contributor
Posts: 300
Registered: ‎02-09-2016

Re: Portal Print Service with SSL

 HI Nitin,

 

When you add the printing service to the portal data source, the url needs to use http protocal: https://111.93.57.30/PrintService/PortalPrintService.svc, otherwise, it will throws some exception about underlying schema.

 

Here is how we do it.

tttt.png

 

Kind regards,

 

 

Occasional Contributor
Posts: 13
Registered: ‎10-18-2017

Re: Portal Print Service with SSL

Hi Bob,

 

I was also facing similar issue, but found the problem lied at web.config level of Print service. The Print service web config file does not contain details for defining HTTPS bindings at service model description. You can alter the code syntax and paste the below mentioned details in web.config file in Print service. Path for the same would be: C:\Program Files\Common Files\Hexagon\Services\Supporting Services\PrintingService

 

The syntax would be:

 

<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="PrintServerBinding" transferMode="Streamed" maxBufferSize="65536" maxReceivedMessageSize="2147483647">
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="Intergraph.MapPrinting.PrintService">
<!--serviceMetadata httpsGetEnabled="true" /-->
<serviceMetadata httpGetEnabled="true" httpGetUrl="" httpsGetEnabled="true" httpsGetUrl="" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<!--serviceMetadata httpsGetEnabled="true" /-->
<serviceMetadata httpGetEnabled="true" httpGetUrl="" httpsGetEnabled="true" httpsGetUrl="" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>

<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

 

Also, remember to alter C:\Program Files\Common Files\Hexagon\Services\Supporting Services\PrintingService\versions file and mention the ssl end points for print services.

 

Thanks @Bob for taking time and replying. Also, I would suggest you too put the resolution for the problem.

 

Regards!

 

AroopSmiley Very Happy

 

 

Staff
Posts: 297
Registered: ‎02-04-2016

Re: Portal Print Service with SSL

Hi Aroop,

 

Do you mind telling us what version of WebMap/Portal did you implement the workaround on ? 

 

Is it v16.5 or v16.4 ?

 

Thanks

 

Frank

Occasional Contributor
Posts: 13
Registered: ‎10-18-2017

Re: Portal Print Service with SSL

Hi Frank,

 

The version used is 16.4.

 

Aroop

Staff
Posts: 297
Registered: ‎02-04-2016

Re: Portal Print Service with SSL

[ Edited ]

Thanks Aroop!

 

Do you mind posting the zipped web.config of that special https printservice ?

Polls
Please register to vote
Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.