Connecting FME to web services. Use of APIs. Mobile Apps.
Recently active
Need to query layers,Layer field attributes from an ArcGIS server mapservice after generating token from url (http://arcgisserver.com/arcgis/rest/services///MapServer/).Now I am struck at how to use generated token next for getting the layer related tables and attributes.Any help on how to use generated token.
I am attempting to download a number of files using the HTTP caller request.I currently have a large quantity of URLs in tabular form, each with an identical URL apart from the end part which follows this structure: "fileID=xxxxxxx&attach=true", where the xxxxxxx signifies the document UID (i.e. 1234567).When I run this request through the HTTP Caller (Get request as a file), the file returns the following error code:2020-04-28 09:28:43| 0.6| 0.0|ERROR |HTTPCaller (HTTPFactory): HTTP/FTP transfer error: 'URL using bad/illegal format or missing URL'2020-04-28 09:28:43| 0.6| 0.0|ERROR |HTTPCaller (HTTPFactory): Please ensure that your network connection is properly set up I am trying to identify a solution for this as the HTTP Caller clearly, as I believe, does not identify my request as a standard URL format.If I copy and paste this URL into a browser, the file automatically downloads.
Hi All,How to develop a tool that can be plugged into Cityworks map viewer to display an AutoCAD file format (*.dwg)?For example, we managed to develop a tool and plug it into Geocortex viewer so that end user can upload an AutoCAD file format and get it displayed into the viewer as shown in the screenshots below. The FME desktop and server capacity (creating workbench and publishing it) is used to develop the tool with particular configuration at the level of Windows (operating system) and Geocortex.Currently, we are trying to develop the same tool (displaying AutoCAD file format) and plug it into Cityworks map viewer. Is this something we can perform with the capacity of FME Desktop\\Server or an API Javascript code as it has been successfully completed for Geocortex viewer? Thanks In advanceLubna
Hi, I tried to have OSM as background map in FME Data Inspector, without success.Anybody can tell me how to do so ?
Trying to upload .SHP files into SFTP server using scheduler. I've tried FTPCaller and 'Upload to SFTP server' action (in FME 2019.1 Automation) but it doesn't authenticate and throws this error -Ensure correct host key is listed in the known hosts file In Automation, I've uploaded private key in SSH format to resources folder and passed it to 'Path to Hosts file' parameter. It doesn't get authenticated but was able to connect to SFTP server in WinSCP via private key. Not sure if the private key has to be in SSH format or PuTTY format for FME. Firstly can this be done?Also tried in FTPCaller with 'Upload from an Attribute' transfer type, but not sure of the URL value as it only has hostname and username.Please suggest. Thanks in advance!
I have a problem trying to access a FTPS server using the FTPCaller. I get an 'SSL connect error' when attempting to connect. The same process works in Filezilla. Can this be done in FME?
I know from this question (https://knowledge.safe.com/questions/33872/define-sucessfailure-topics-when-publishing-worksp.html ) that there used to be a way to add success and failure topics to a workspace but does anyone know if there is a way to do this with FME Server 2018+. I can't really see how I could do it in the REST API
Server 2019. I try to submit a data streaming job via the rest api. This works partially now, as I get it running and finishing successfully but the published parameters don't come through. What I did was change the url fromhttps://<base url>/fmerest/v3/transformations/submit/<repository>/<workspace>.fmwtohttps://<base url>/fmeserver/streaming/fmedatastreaming/<repository>/<workspace>.fmwand kept the json body like I do when submitting via the job submitter. When I run it from the GUI in server I see the published parameters being added to the request as Form Data, but before I try to change the request to Form Data I would like to double check if the JSON way is not possible? Thanks for looking.
I have a requirment to delete a file if the workspace has failed and I need to revert the output file which I have written. I used python caller to remove by passing a file path as parameter, but the file is not removed from the directory, however the translation is showing as successful with 0 features written.
Hello, I did a processing where I classified the individual LAS files into "floors" and "buildings " and subsequently generated them into mosaics. Mosaics only contain values " 0 "= floors and building heights. The picture shows a mosaic.I would like to calculate the H / W index by dividing the average height of buildings by the area of cells with "0". How should I start? which transformer should I use?Thanks in advance,Kristina
Hi all, I am trying to access my Strava data specifically where I have ran/cycled for some data vis.I have added Strava as a web connection according to these instructions: https://hub.safe.com/publishers/gerhardatsafe/web-connections/strava While in the 'Managed Web Services' I have added in Client ID and Client Secret and testing the connection seems to be successful. I have also added it as a Web Connection/Service.When I run the HTTPCaller transformer with say https://www.strava.com/api/v3/athlete (or whatever else in http://developers.strava.com/docs/reference/) and put in authorization parameters into the Headers section: the translation log seems to indicated that the HTTP connection is unauthorized: I have been trying to figure out where I have gone wrong for hours - if someone could please point me in the right direction, it would be massively appreciated. @gerhardatsafe do you have any thoughts yourself? Cheers
I want to get and sort metadata from a CSW.I have tried using the HTTPCaller and sent this request: https://www.geonorge.no/geonetwork/srv/nor/csw-dataset with POST and BODY: <?xml version="1.0"?><csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" outputSchema="csw:IsoRecord" startPosition="1" maxRecords="15"> <csw:Query typeNames="gmd:MD_Metadata"> <!-- <csw:ElementSetName>brief</csw:ElementSetName> <csw:ElementSetName>summary</csw:ElementSetName> <csw:ElementSetName>full</csw:ElementSetName> --> <csw:Constraint version="1.1.0"> <Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"/> </csw:Constraint> </csw:Query>
I am curious if it is possible to populate a field based on other feilds? Basically just how you would in arcmap via field calculator. Not sure how to make sense of the parameters in the PythonCaller transformer. And I'm not very experienced with python. Any help would be appreciated.
I´m trying to use api http-url as a data source and merge two APIs.The url is: https://alpha-nuukaopenapi.azurewebsites.net/api/v1.0/EnergyData/Monthly/ListByProperty?Customer=Helsinki&Record=PropertyCode&SearchString=PROPERTYCODE&ReportingGroup=Electricity&StartTime=01%2F01%2F2019&EndTime=12%2F31%2F2019 PROPERTYCODE changes and it is read for another data source / table. HTTPCaller I tried to make proper URL call with text editor: Any hints, why this is not working? Thanx!Please see the attachment:
12RAJSSUSSESSE SSURAJ CITYSTATEPOSTALCODEKARIMNAGAR TELANGANA505152WARANGALHYDTELANGANA505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 WARANGAL TELANGANA 505152 i want to result like Name of the tableTable_1Table_2no.of records in table39
Hello, I'm having a problem when trying to write records from an ESRI file geodatabase feature class to an ArcGIS Online hosted feature service. The error message in the log is as follows: ArcGIS Online Feature Service Writer: Encountered an unexpected error. The error code from the server was '504' and the message was: 'Your request has timed out.'. Details: '' Any ideas on how to resolve this issue? Thanks.
Hi,I'm trying to call an API endpoint using PythonCaller but this endpoint requires authentication. I made it work by first (in the init) connect to the web connection and get the token than send it to the def input and used the token in the header of my endpoint call.My question is: is there a way to get this token from one of my web connection set in the Tools->FME Options->Web Connections (or either from a published parameter configured with one of them)? The idea is to use the PythonCaller as a HTTPCaller which uses Authentication thank you
Hi, I'm trying to use a HTTPCaller with multiple features but when the API has no response (no content) with the OK code 204, HTTPCaller give me back a timeout. It is like its is expecting anything otherwise, HTTPCaller returns timeout. On the API endpoints with OK return (200) there is no problem, but when calling the API with no content as return, this problem happens. I could bypass this problem with a Decelerator with 1 second per feature (less than 1 sec same error occurs), but I don't thing this is the most appropriate way to do it so. Any Ideas?Thanks
When I make a GET request to /transformations/jobs/completed there are two objects returned that both include a 'status' element; the Job and the Result object. What are the differences between these two?Second, what status values can be returned and how are they defined?
Hello community,I'm trying to call the REST API in ajax from another application. In this call, I do a POST request to submit a workspace. The call works fine in Postman and I get a job id in return. However in the response headers, I only get the following parameters: Content-Length, Content-Type and Date. For the purpose of my application, I also need the Access-Control-Allow-Origin in the response headers.Any idea how I can make that happen?version used: FME server 19.1 over https (port 8443)Thanks in advance
Hey More of an fyi than a question. Over the past years I’ve had to do a lot of FME Server automation using the fme server rest api. I’ve created an python wrapper to help make fme server automation easier for me. Had this code kicking around for a while but recently found the time to sanitize/share it.The code for this can be found here:https://github.com/bcgov/dbc-pylibThere is some getting started docs here:https://github.com/bcgov/dbc-pylib/blob/master/docs/FMEServer.mdHoping it will be useful to someone, if so please use! If you are interested in contributing even better. If there are desired features / functionality let me know as well by posting to the issues on the github repo: https://github.com/bcgov/dbc-pylib/issuesCheersKevin
Hi FME Experts,I am trying to read/write from/to fgdb/ArcSDE from fme server 2019.2 64 bit and ArcGIS pro are installed (Standard License) but unfortunately it does not work, when I checked the log file, it is mentioned that the ArcGIS license does not advanced.Please advise
There are some postings on this topic but it does not work for me yet:I am trying to contact an external API via HTTP POST to get a token back. If I use Postman from the same computer everything is okay:The response from Postman is:{ "access_token": "<access_token>", "expires_in": 300, "refresh_expires_in": 1800, "refresh_token": "<refresh_token>", "token_type": "bearer", "not-before-policy": 0, "session_state": "c25bf161-2dee-426c-9bdc-970836fe4f4f", "scope": "email profile" } Comment: Hostname, company, username, password, access_token and refresh_token are replaced by dummy text in this posting...This response ist correct! But when I try to do the same in FME 2019 I got errors:Multipart Upload 'password' is missing in this screenshot. Other values are replaced by dummy text... There are no parameters set
Hello, I'm trying to connect to the cloud with a HTTPCALLER. I received an URL, Username and password to connect to ODATA/MSPROJECTS (Office365). When I run the workspace I get the message: HTTPCaller(HTTPFactory): Received HTTP response header: 'HTTP/1.1 403 Forbidden' from 'https://XXX.sharepoint.com/sites/pwa/_api/Projectdata' How can I connect? do I need additional software? do I need to use an other transformer (ODATA?) Please help, thanks
Hello,I want to calculate slope between neighbor points. I want to use python caller to do something like take the first point (pointID is smallest) go to the next one , calculate the slope between the points and write it in a new attribute (_slope). Then go to the next point (so 2nd and 3rd) calculate slope and save the value.I am new with python in fme, so could you help me?