Questions in topic: "web services" https://knowledge.亚搏在线safe.com/questions/topics/single/23310.html The latest questions for the topic "web services" How do I reliably connect FME Server 2018/19 to ArcGIS Online? https://knowledge.亚搏在线safe.com/questions/88927/how-do-i-reliably-connect-fme-server-201819-to-arc.html

I'm having mixed results with ArcGIS Online connections on a new install of FME Server 2019.

I can publish a workbench with a ArcGIS Online connection (publish the web connection also) and it will work on FME Server 2019 immediately.Then after a little while it will stop connecting an AGOL will start rejecting connections.I'm assuming the workbench generated a token and the token expired???

Under my Web Connections on FME Server I have a ESRI ArcGIS Online connection which says:

Esri ArcGIS Online Web Service has not been configured for Web authorization.Jobs will run with your published credentials but you will not be able to authorize or create new Esri ArcGIS Online Web Connections until Esri ArcGIS Online Web Service has been configured in "Manage Web Services".
More Information

I go through the process of making an application on ArcGIS Online getting the app id and the client secret and the redirect uri is prefilled with something like - urn:ietf:wg:oauth:2.0:oob

I Manage Web Services - ESRI ArcGIS Online - and fill in the details above.

I then get

"You can Authorize at any time to verify this connection will work" and a working Authorize button which lets me login into ArcGIS Online and gives me OAuth2 Approval.

Please copy this code,switch to your application and paste it there:

Where do I copy that code?

The workbench doesn't connect to AGOL from FME Server now,sayingwww.arcgis.comis rejecting my connection.

Our server is aprivateserver and not visible outside our network.Doesn't have SSL capability (at the moment).

Can someone point to me to clear documentation?I've seen a lot of different discussions and mixed results.

arcgis online web services Thu,21 Mar 2019 23:02:19 GMT peterkt
XML Updater and then SYNC using Web Services https://knowledge.亚搏在线safe.com/questions/88746/xml-updater-and-then-sync-using-web-services.html

Hello,

I am trying to update a square footage attribute on a room within an Enterprise Asset Management (EAM) System using web services.The new square footage is coming from a revised AutoCAD file.

Here is my 亚搏在线workflow so far.I read in the AutoCAD file and use the room values to construct XML to hit a GET web service for each room.I then extract the FLOORAREA attribute using a XML Fragmenter and compare this FLOORAREA value with the AREA attribute in the AutoCAD records to find the differences.When a difference is found I want to take the AREA record from the AutoCAD file and update the FLOORAREA attribute within the XML responseBody.I have looked at several posts and examples on here but I am a complete beginner at Xquery.I am not sure what I am doing wrong.

After the FLOORAREA value is updated,I then have to reformat the XML within the responseBody so I can send it along to the SYNC web service and update EAM.

I have attached a FMW with only the relevant portion of my ETL in hopes someone can help point me in the right direction.It contains a CREATOR for;GET HTTP Caller,AutoCAD file,and SYNC XML example.In this FMW the FLOORAREA value is 999 and I am trying to update it with a value of 123 coming from the AutoCAD Creator.

Any help would be much appreciated!

XML_Updater_&_Sync_WebServices_SAMPLE.fmw

xml web services xquery xmlupdater Tue,19 Mar 2019 18:51:17 GMT lopes8
Read a webmap service that contain a raster layer https://knowledge.亚搏在线safe.com/questions/78858/read-a-webmap-service-that-contain-a-raster-layer.html

Hi ,

Does anyone know how could I read a web map service thatcontains a raster layers?

Thanks,

Rawan

raster web services Thu,20 Sep 2018 05:50:02 GMT rawansaleh
Force WFS reader to send authentication headers https://knowledge.亚搏在线safe.com/questions/77380/force-wfs-reader-to-send-authentication-headers.html

I'm attempting to use the WFS reader to retrieve a capabilities document using HTTP Basic authentication.However,I suspect that FME isn't sending the Authentication header unless it's challenged with a 401 response from the server,which is a problem because the server I'm connecting to returns 200 response containing public layers for unauthenticated users and hence no challenge.

Are my suspicions are correct?Is there a way to force FME to send the Authentication header without waiting to be challenged with a 401 response?

Things I've tried:

- Checked "Use Network Authentication",selected "Basic" authentication,and added a username and password.No private layers appear under "Feature Types".

- Manually typed the name of a private layer into "Feature Types".FME says that the layer was not found in the capabilities document.

- Added the username and password to the URL,e.g.https://username:password@server/wfs.

authentication web services http wfs reader Tue,28 Aug 2018 21:43:34 GMT tristanmchardie
How to run a FME Server workspace with 2 services (Data Streaming and Job Submitter) at the same time? https://knowledge.亚搏在线safe.com/questions/74629/how-to-run-a-fme-server-workspace-with-2-services.html

I am trying to run an FME workspace on server,I run it through a web interface (a web page).The workspace is meant to produce a JSON string as a result (when the workspace runs successfully) and in order to do this I use the DataStreaming transformation service.When the workspace fails,I would like it to send an email advising of the failure.I have already all the notification and topic setup (using JOBSUBMITTER_ASYNC_FAILURE) and I tested it on the FME sever web interface and it works fine.

On FME server I can choose with the dropdown list which service I want to run the workspace with,to receive the email I have to use the JobSbmitter.But if I use the DataStreaming then I won't receive the email if the workspace fails.Similarly,when I call the workspace through a HTTP request if I use this endpoint:
https://fmserverhost.fmecloud.com/fmedatastreaming/workspace.fmw?parameters
I can get the JSON string on success but no email notification
conversely,when I use the other endpoint:
https://fmserverhost.fmecloud.com/fmejobsubmitter/workspace.fmw?parameters

I can get the email on fauiure but the JSON string is not streamed.
Is there a way of having both services running at the same time for the same workspace?

job submitter data streaming web services Wed,18 Jul 2018 10:11:27 GMT alex_chris
WFS service expose attributes problem https://knowledge.亚搏在线safe.com/questions/73511/wfs-service-expose-attributes-problem.html

wfs-reader.png

we use wfs service as reader but unfortunately some attributes not appear.we will build query filter based on these attributes .

fmedesktop web services wfs reader services wfs xml filter Mon,02 Jul 2018 07:24:46 GMT hamdyahmed14
How to update records using EAM Software web services https://knowledge.亚搏在线safe.com/questions/72622/how-to-update-records-using-eam-software-web-servi.html

Hello,

We are trying to update/insert/delete records within a Enterprise Asset Management system using the software's web service endpoints.We take information from our CAD/GIS environment and need to feed it into the EAM environment using these web services.I understand the records need to be appropriately formatted but I am confused on how to actually "write" these records out the EAM software's endpoints.I have done some web searching with little luck.I was hoping someone might be able to point me in the right direction on how to get a solution like this off the ground.

integration web services Mon,18 Jun 2018 21:47:49 GMT lopes8
Powershell Script to Generate FME Token https://knowledge.亚搏在线safe.com/questions/72091/powershell-script-to-generate-fme-token.html

I have a powershell script that uses Invoke-RestMethod to generate an FME token.It's using -UseDefaultCredentials to run the Web call because I don't want to hardcode the user/password information in the -Uri request.I get an exception from the FME web service saying that I haven't provided the user/password information,BUT it still works and retrieves the token using UseDefaultCredentials.Is there a way that those parameters can be made optional for the web request so that I don't get an error?

Thank you,

Susan

web services Sat,09 Jun 2018 00:01:12 GMT susan_kvasov17
HTTPCreator https://knowledge.亚搏在线safe.com/idea/70610/httpcreator.html

Creator,SQLCreator,PythonCreator,RasterCreator.Why not an HTTPCreator?

httpcaller web services Thu,17 May 2018 21:40:08 GMT fmelizard
Why won't my Web Service Call work? https://knowledge.亚搏在线safe.com/questions/69207/why-wont-my-web-service-call-work.html

I am trying to connect to an external database using a web call service through the EPA (located here:

https://www.waterqualitydata.us/portal),but when I use the link from the web service at the bottom of the page under "Show Web Service Calls",i get this error.I think this has something to do with the fact that the service sends the data pulled in a Zip file,and FME can't get passed that to get to the data?Here is the "logfile" that I get after I try to pull it.The file is an Excel File,but again it is bundled into a Zip file:

Starting translation...

FME 2017.1.0.0 (20170731 - Build 17539 - WIN32)

FME Database Edition (floating)

Permanent License.

Machine host name is: D22761

Operating System: Microsoft Windows 7 64-bit Service Pack 1 (Build 7601)

Copyright (c) 1994 - 2017,亚搏在线Safe Software Inc.

亚搏在线Safe Software Inc.

Potentially retrieving dataset 'https://www.waterqualitydata.us/data/Station/search?providers=STORET&mimeType=csv&zip=yes&sorted=no' for reader

Retrieved file C:\Users\287394\AppData\Local\Temp\FME_TempFileStore_1524846318493_4344\search for reader

Creating reader for format: Microsoft Excel

Trying to find a DYNAMIC plugin for reader named `XLSXR'

Loaded module 'XLSXR' from file 'C:\Program Files (x86)\FME\plugins/xlsx.dll'

FME API version of module 'XLSXR' matches current internal version (3.8 20170315)

Excel Reader: Output cell formulas: 'false'

Excel Reader: Output cell comments: 'false'

Excel Reader: Force full datetime values: 'false'

Excel Reader: Opening dataset 'C:/Users/287394/AppData/Local/Temp/FME_TempFileStore_1524846318493_4344/search'...

Excel Reader: Failed to open the dataset 'C:/Users/287394/AppData/Local/Temp/FME_TempFileStore_1524846318493_4344/search'.Error message was 'Unknown exception'

Excel Reader: Closing dataset 'C:/Users/287394/AppData/Local/Temp/FME_TempFileStore_1524846318493_4344/search'...

A fatal error has occurred.Check the logfile above for details

Failed to obtain any schemas from reader 'XLSXR' from 1 datasets.This may be due to invalid datasets or format accessibility issues due to licensing,dependencies,or module loading.See logfile for more information

FME Session Duration: 1 minute 35.6 seconds.(CPU: 0.5s user,0.3s system)

END - ProcessID: 4344,peak process memory usage: 90432 kB,current process memory usage: 69292 kB

Failed to obtain any schemas from reader 'XLSXR' from 1 datasets.This may be due to invalid datasets or format accessibility issues due to licensing,dependencies,or module loading.See logfile for more information

Program Terminating

Translation FAILED.

Workspace generation failed.Parameter file was C:\Users\287394\AppData\Local\Temp\FME_1524846317593_6308.

The web service call is this URL:

https://www.waterqualitydata.us/data/Station/search?providers=STORET&mimeType=csv&zip=yes&sorted=no

Please help.(Note: I have also tried this as a CSV pull,and I get the same issue,hence why I think it has something to do with the fact that the data get sent in a Zip file.)

excel web services web service Fri,27 Apr 2018 16:36:12 GMT pauldeq
Using SOAP to run workbench https://knowledge.亚搏在线safe.com/questions/67309/using-soap-to-run-workbench.html

Has anyone had success with triggering a workbench on server using SOAP?We are replicating an Oracle database using Informatica Power Exchange.For any spatial table,Power Exchange is going to send parameters to FME server to do the replication.I know you can do this with REST,but from the Informatica side it seems easier to do with SOAP,so I was curious if anyone had any luck.

server web services soap Mon,02 Apr 2018 15:27:28 GMT colleenk_1
Creating a "Visual Calendar of Schedules" as an FME Server Dashboard https://knowledge.亚搏在线safe.com/articles/59989/creating-a-visual-calendar-of-schedules-as-an-fme.html

Overview

The workspace attached to this article,described in detail below,will guide you how to create the Visual Calendar Dashboard,as depicted above,for use in FME Server.This 亚搏在线workflow heavily relies on a template created byFullCalendarand leveraging the Google Calendar and FME Server REST APIs.The workspace can be scheduled to run on FME Server providing you with an updated overview of when your FME Server Schedules will run!

Learn how to create your own "Visual Calendar" Dashboard of FME Server Schedules.


Requirements

FME Desktop and Server (2017.1.2 or Newer)
Google Account (Developer KeyforCalendar API)

Downloads

fmeserverschedules-calendarview2017.fmw

Instructions

1.Get a Google Account and Calendar API Key

Create a Google account (or use an existing one) and visit theGoogle Developer API Dashboard.Here you will have to enable the Google Calendar API and then create an API Key – there are plenty ofgreat ‘How To' resourcesavailable to help.

2.Make Google Calendar Public and Determine the Google Calendar ID

The logic for this 亚搏在线workflow revolves around reading and writing to an existing Public Google Calendar.You can use any calendar that you have created on your Google account,or link to an external one.Remember that it has to be publicly accessible!It is important to search for current指令if you need help determining the Calendar ID.

3.Get an FME Server Token

For this 亚搏在线workflow to gather details from FME Server,you need to obtain a validfmetokento access the REST API.It is preferred to get the token from a user that is a member of the fmeadmin role.

4.The Workspace and Template HTML

Download the attached FME Workspace.You can set FME to "Run with Prompt" and replace all the default values with information obtained in the first three steps.

For a more detailed look into the workspace,readWorkspace Overviewbelow.

5.Publish to FME Server and Configure Published Parameters

Publish this workspace to FME Server.You can either manually run the workspace or configure it to run daily on a schedule.Just make sure to adjust all of the Published Parameters to match your unique values and – voila!A visual calendar for you to see all of your FME Server Schedules.

Workspace Overview

Bookmark 1.GET FME Server Schedule List

The Creator transformer starts the 亚搏在线workflow with a null feature to invoke the HTTPCaller.This transformer then gathers a response from the FME Server REST API,/fmerest/v3/schedules,of all the FME Server Schedules.The return is in JSON format,and the FeatureWriter saves the output to file for use later in the workspace.

Bookmark 2.GET Google Calendar Event Ids and DELETE All

The next HTTPCaller in this 亚搏在线workflow gathers a list,again in JSON,of all Events in the Google Calendar by accessing a Google Calendar REST API endpoint.The JSONFlattener and ListExploder will expose each Event as an individual feature for FME to process.The second HTTPCaller in this Bookmark then issues the DELETE command against each Calendar Event – this operation is necessary since this 亚搏在线workflow does not have logic to determine which FME Server Schedules already exist as Events.The Sampler transformer is used here to reduce the number of features flowing into the next Bookmark.
Note:This effectively deletes every item in the specified Google Calendar.It is important to be aware of this!


Bookmark 3.Read Each Schedule as Feature and Filter Disabled

The FeatureReader will read back the JSON response saved earlier – if the Sampler was not previously used,this transformer would create redundant features by reading in the same dataset multiple times.The combination of AttributeExposer and ListExploder creates a separate feature for each FME Server Schedule.TestFilter simply removes any disabled Schedules that are not important to track in the Google Calendar.

Bookmark 4.Create and Format JSON for Google Calendar REST API

There are a lot of transformers here to do attribute manipulation.The AttributeExposer and AttributeValueMapper work together ensuring that the values returned by FME Server's REST API are compatible with the Google Calendar REST API.DateTimeConverter,DateTimeCalculator,and,again,DateTimeConverter are used here to provide an arbitrary length (30 minutes) for each FME Server Schedule.The AttributeManager creates a JSON-formatted string for passing to the Google Calendar REST API.Use of the JSONValidator ensures that the string will not be rejected.

Bookmark 5.POST FME Server Schedules to Google Calendar

HTTPCaller is used here once again to interact with the Google Calendar REST API.This transformer is configured to POST – or add – all the FME Server Schedules to Google Calendar as unique Events.Another Sampler is used to reduce the feature count flowing to the next Bookmark.

Bookmark 6.HTML Template Magic

If the Sampler was not previously used,then for every FME Server Schedule posted to Google Calendar,there would be a new HTML file written – which wouldn't be very efficient.The AttributeCreator placed here contains all of the raw HTML used,with many Published Parameter references allowing for dynamic output based on user input.The HTML Writer is configured to place the resulting output into the proper Dashboards Repository on FME Server where it is automatically made available on the Dashboards page in the Web Interface.


Please note that there are no plans to maintain this workspace,or the contents of this Knowledge Center Article.If you would like to ask more questions or share your enhancements to this 亚搏在线workflow,please start a thread on theFME 亚搏国际在线官网Community Q&A!

fmeserver api html scheduling google web services dashboards schedule calendar Wed,13 Dec 2017 22:29:42 GMT rylanat亚搏在线safe
Web Services Updater Transformer https://knowledge.亚搏在线safe.com/idea/53116/web-services-updater-transformer.html

Something very similar to the Database Updater transformer.The ArcGIS Server Web feature service writer is still missing and the ArcGIS Portal Feature Service is still broken in the current version.I hope 亚搏在线Safe can get these writers released to production and then have this updater transformer next.

transformer web services feature service updater Thu,14 Sep 2017 13:29:40 GMT geospatiallover
Twitter issue FME 2017.1 https://knowledge.亚搏在线safe.com/questions/50577/twitter-issue-fme-20171.html

Hello,

I was testing some stuff on the latest version of FME Desktop (2017.1) with the twitter transformer but all the results where redirected to the "error" port.I automatically checked ou the log file to find the following error comment in red:

Tweeter_Tweeter(TwitterFactory): Due to a change in the Twitter API,all Twitter transformers are non-functional.Updated transformers will be released with FME 2017.1.1

Well with all the frequent changes in the API's I believe we have no choice but to wait for 2017.1.1 .

Cheers

Lyes

web services twitter Tue,15 Aug 2017 01:02:14 GMT gisinnovationsb
Parameters for 'Number of Retry' and 'Time Delay' in some transformers when failed. https://knowledge.亚搏在线safe.com/idea/48427/parameters-for-number-of-retry-and-time-delay-in-s.html

It is nice to have parameters to set number of retries and time delay between retries in case of connection failure in some transformers connecting to external services such as HTTPCaller,FTPCaller.

parameters web services transformer failure Fri,21 Jul 2017 06:20:36 GMT pallegama