Skip to main content

using variable for Geocode Service Url

Comments

5 comments

  • Permanently deleted user

    Hi Peter,

    I also have the same probelm, please keep us posted if you have a solution.

    0
  • Nico Burgerhart

     

    Try to add a GeocodeServiceUrl key to your web.config file.  O pen up your REST web.config file located in C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\REST. At the top of this config file will be an <appsettings> node which contains <add> nodes. Add a key:

        <add key="GeocodeServiceUrl" value="http://yoururl" />

    To retrieve these in workflow call System.Configuration.ConfigurationManager.AppSettings("GeocodeServiceUrl").

     

    0
  • Permanently deleted user

    Nico,

    I tried your suggestion but the workflow still throws an error about not being able to use a relative URL. 

    /customer/servlet/servlet.FileDownload?file=00P6000000elu8hEAA

    0
  • Permanently deleted user
    I have found that the ProjectSingleGeometryTask is the same way - have to hardcode the URL.  This is a poor design choice, as hardcoding should be avoided wherever possible in programming, ESPECIALLY things like workflows which need to be multipurpose.  Especially in situations where you are developing in a test environment and moving to a production environment.  It's a pain to find all these and change them.  Geocortex, please provide a workaround for this problem.
    0
  • Kevin Penner
    My understanding was that ProjectSingleGeometryTask does take an expression/variable as input. Geocode is special because the workflow needs to discover the capabilties of the endpoint at design time.
    0

Please sign in to leave a comment.