Skip navigation
All People > sch7712 > Pictometry Web AppBuilder Widget (Unofficial)
sch7712

Signing Service Issue

Posted by sch7712 Aug 5, 2016


Hello all,

 

I am writing because I had an issue configuring the widget to work with the Signing Service. As I stated in the original post, I would update this blog with any issues that I run into.

 

I was configuring the Sign Service URL inside Web AppBuilder, then I would go to run the widget and run into errors. The issue was that the widget could not connect to the proper operation in the sighing service. After speaking with Pictometry I found that I was entering https://mywebserver/Picto_SignService  as the address for the signing service and not https://mywebserver/Picto_SignService/SigningService.asmx.  This was causing the widget to fail.

Also, the "SignUrl" operation is case-sensitive, so be sure to capitalize the S and U.

 

To edit the widget's configuration after it has been added to the app, go to: (<yourapp>/configs/Pictometry/config.json) Please note that there is also a config.json file in the Pictometry widget's file, the widget will not use this one once it is deployed. It will use the one in the configs directory. Pictometry advises against this in favor of changing config settings from within Web AppBuilder and then re-adding the widget to the app.

 

 

A working URL looks like this (this link uses www.google.com as a test only):

https://mywebserver/SignService/SigningService.asmx/SignUrl?url=www.google.com

 

The reply from the signing service should look similar to this:

 

{"url":"www.google.com\u0026ts=1470427973\u0026ds=crr0a152ad32b716f24k8b2f1a661646"}

 

In this response, ts (u0026ts) is a Time Stamp and ds  is an encoded value that takes your secret key, the URL that was passed in, and the Time Stamp into account.

 

I am using the DotNet version of the Signing Service and hosting it using IIS. Pictometry also has other formats of the service, they are PHP and JS.

 

For the PHP and JS services, the test and results would look similar to these:

 

Test:

 

http://{your-service-address}/pictometrySignedUrl?url=%3A%2F%2Fwww.google.com

 

Result:

 

{"url":"http://www.google.com&ts=1441810809&ds=0b050a26043469722bfd823c346b70e3"}

 

Here is the link to the Signing service installation guide from Pictometry:

 

Signing Service

 

That is all I have for this post, let me know if there is anything else I can elaborate further on. While I am not to experienced with web development, I will answer any questions I can.

 

Thanks!

 

Chris

sch7712

First Blog Post!

Posted by sch7712 Jul 28, 2016

Hello all,

 

My name is Chris Schreiber and I am the GIS Developer for a small company called the Knowledge Center. We are based in Pennsylvania and provide Incident Management software. A request that we often receive from our customers is to incorporate Pictometry into our map. We used to utilize Esri's Flex based map viewer and widgets but have since moved to JavaScript. Pictometry originally had a widget for the Flex Viewer but did not have one for the JS API. They recently came out with a new widget designed for use with Esri's Web AppBuilder. (I will sometimes abbreviate Web AppBuilder to WAB or wab, just a warning!)

 

The widget allows users to view Pictometry Imagery inside WAB.

 

Here is an update from Pictometry:

 

 

 

Here are some other links:

 

Documentation Link:

 

Overview

 

Here is a screenshot from my app

 

I will periodically update this blog with solutions to any issues that I run across incase some of you run into the same issues.

 

Thanks!

 

Chris