Identify Widget 3.6.7: Problems with private services

3787
10
Jump to solution
09-18-2014 06:19 AM
PedroGarcia
New Contributor III

Hi Robert,

I've a private service with mapping and feature access capabalities enabled. Testing your widget with a layer based on that service (type="feature" with token) and using your original IdentifyWidget.xml, I got  'No results found' message. However, when I setup that layer at IdentifyWidget.xml file, as follow:

        <layer>

            <name>Parcelas Edicion</name>

            <id>0</id>

            <url>http://myserver/arcgis/rest/services/ESARM/ESARM_ALTIPLANO/FeatureServer</url>

            <fields>

                <field name="created_user" alias="created_user"/>

                <field name="created_date" alias="created_date"/>

                <field name="last_edited_user" alias="last_edited_user"/>

                <field name="last_edited_date" alias="last_edited_date"/>

            </fields>

            <links/>

            <zoomscale>2000</zoomscale>

            <forcescale>true</forcescale>

        </layer>

the viewer display the login screen (see attached file) as soon as I active your widget, and even entering correct credentials I always got 'No results found' message. Any idea?

Besides, including that layer in config.xml as type=dynamic and in IdentifyWidget.xml  filtering some fields, the login window is displayed as well. Any idea?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Pedro,

  I am glad you finally posted to the forums where I can help you better. So i finally understand that you are using FeatureServer url instead of a MapServer url. So my first question is your are using this url: http://myserver/arcgis/rest/services/ESARM/ESARM_ALTIPLANO/FeatureServer in your IdentifyWidget.xml so you you have the same url in your main config.xml like?:

          <layer type="feature" label="Token Test" token="your token"

                url="http://myserver/arcgis/rest/services/ESARM/ESARM_ALTIPLANO/FeatureServer/0" visible="true"/>

And most importantly are they EXACTLY the same CaSe?

View solution in original post

0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus

Pedro,

  I am glad you finally posted to the forums where I can help you better. So i finally understand that you are using FeatureServer url instead of a MapServer url. So my first question is your are using this url: http://myserver/arcgis/rest/services/ESARM/ESARM_ALTIPLANO/FeatureServer in your IdentifyWidget.xml so you you have the same url in your main config.xml like?:

          <layer type="feature" label="Token Test" token="your token"

                url="http://myserver/arcgis/rest/services/ESARM/ESARM_ALTIPLANO/FeatureServer/0" visible="true"/>

And most importantly are they EXACTLY the same CaSe?

0 Kudos
PedroGarcia
New Contributor III

Yes, I'm using the same url and are exactly the same case.

Besides, as I`ve mentioned in my previous email, I tested with a FeatureServer url and with a MapServer url, and in both cases when I include the layer in IdentifyWidget.xml, the login window is displayed

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Pedro,

   Well the issue I have is that when I have tested with using MapServer in the url of the main config.xml and the IdentifyWidget.xml and the main config.xml layer has a token specified then the widget works using the maps token and does NOT display a login... So I am not sure the issue you are having. I will test using FeatureServer and see what happens.

0 Kudos
PedroGarcia
New Contributor III

Certainly it's very strange. Besides, if I clic the Cancel buttom in login window, in case of a MapServer url, the widget display the results correctly. Thanks a lot for you support.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Pedro,

   Do you get the login immediately when you open the app or do you only get it when you open the Identify widget, or is your identify widget set to preload open?

0 Kudos
PedroGarcia
New Contributor III

I get the login inmediately I open the Identify widget, and is not set to preload open.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Pedro,

  Well I just tested FeatureServer URL and I have no issue again. Here is what I have:

Main Config.xml:

     <operationallayers>

            <layer type="feature" label="Token Test" token="-rtFVElsLUU_39fJqftmYWPWqCjL9O3QTnELd2zOXDndaHHr0JRBrVBI2gWwQRCM"

                url="http://gislap183/arcgis/rest/services/CountyCrimeMap/FeatureServer/0" visible="true"/>

and in my IdentifyWidget.xml I have:

     <layers onlythese="true">

        <layer>

            <useproxy>false</useproxy>

            <name>Feature Server Test</name>

            <id>0</id>

            <url>http://gislap183/arcgis/rest/services/CountyCrimeMap/FeatureServer</url>

            <fields>

                <field name="Desc_" />

                <field name="Address" />

                <field name="Case_Num" />

                <field name="District" />

            </fields>

            <links/>

            <zoomscale>1500</zoomscale>

            <forcescale>true</forcescale>

        </layer>

0 Kudos
PedroGarcia
New Contributor III

I'm not in my office now. But your code is very similar to mine. Tomorrow, I'm going to check my code to find out some difference. I notice that I don't use the <useproxy> tag. Is it a mandatory or an optional tag?

0 Kudos
PedroGarcia
New Contributor III

I'm very sorry Robert. Yesterday I wasn't in my office when I answered you. You were right. The problem was the case sensitive of url. A folder in url was slightly different. Now, it doesn't appear login window. But, I've found another little problem: using a FeatureServer url, result window doesn't manage domains and subtypes of fields, so instead of descriptions appear codes. However, with a MapServer url works fine. Any idea?

0 Kudos