Create a custom widget to request external soap web service in ArcGIS online?

5018
11
07-25-2016 08:04 PM
pijuwang
New Contributor II

The current task is to create a custom widget that needs to pass the map location to an external web service then get the response as the result.

The external web service hosts on the client server which is SOAP API. The information are wsdl location and requiredto add HTTP Basic authentication header. Tested on SOAP UI, .NET, python code.. but not yet working for browser request (javascirpt).

Any way to request the soap web service from the widget which create from Web App Builder then deploy to ArcGIS online?

Does ArcGIS online can overcome the cross-origin resource sharing if host this widget in the ArcGIS online?

Any suggestion is welcome....

Best Regards,

Vicky

0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Vicky,

  I use a Proxy for my rest web service calls:

var requestHandle = esriRequest({
          url: 'my web service url',
          content: {
            ppin: ppin,
            f: 'json'
          },
          handleAs: "json",
          timeout: 10000
        },{useProxy: true, usePost: false, disableIdentityLookup: true});
WilliamLongmire
New Contributor II

swexau‌,

Were you able to create this custom widget? If so, can you share it?

0 Kudos