apiconnect

Parsing XML Response In GateWayScript

 ̄綄美尐妖づ 提交于 2019-12-25 00:25:26
问题 Hi i am new to API connect ... i have a use case where i have to merge responses coming from two endpoints in XML format based on certain conditions. My flow in the assemble section is like this 1) INVOKE (i make my first service call and capture the response in a custom ' Response object varibale ' -XMLResponse1 2) INVOKE (i make my second service call and here i am not using any custom ' Response object varibale ' Instead i am using apim.getvaribale('message.body') to get the response 3)

Unable to Change Content-Type to “application/json; charset=UTF-8”

做~自己de王妃 提交于 2019-12-13 10:19:28
问题 I am using IBM API connect with Gateway script to change content type to "application/json; charset=UTF-8" but looks like by default it gives "application/json" in header. I am calling Google Translate API and needs to pass some special character. What am I missing here? 回答1: Just answering to my own question. I have used "application/json; charset=UTF-8" in the map policy just before sending the JSON response and it worked. If it is not set properly then Gateway Script wont be able to change

API Connect shows “Cannot GET /apim/” error when updating schema

本小妞迷上赌 提交于 2019-12-12 05:17:00
问题 I have API Connect installed with mongodb connector over a remote server. When I access the IBM API Connect through browser, all is fine, but when I go to DataSources where my DB is, and try to hit Update Schema button as shown in the image, an error occurs showing this: Cannot GET /apim/dataSources/partials/dataSourceMigrate.html P.S. I gave full permission for my project directory (/var/www/) with full ownership for www-data group and still the same. Anyhelp would be appreciated. 回答1:

API Management 2018.1 and DataPower 7.7

隐身守侯 提交于 2019-12-11 11:25:00
问题 I am trying to add DataPower 7.7 into API Management 2018.1. I need to configure API Connect Gateway Service in DataPower (new APIC 2018.1 doesn't work with XML Management Service). After configuration I got an error: 8:07:19 mgmt notice 959 0x00350015 apic-gw-service (default): Operational state down 8:07:19 apic-gw-service error 959 0x88e00001 apic-gw-service (default): Unexpected queue error: Domain check failed! Please ensure that the 'default' domain exists and is enabled. Also, please

Is it possible to use wildcards in API paths in IBM API Connect

微笑、不失礼 提交于 2019-12-08 12:04:14
问题 I have a requirement to route all the API calls which meets some pattern, to a specific service. For example "/register/student", "register/teacher", "register/employee" should all go to one micro service. Can I define the above path (not absolute path for each API) using some wild card or pattern so that any request which matches the patter: "/register/**", should go to one specific micro service. 回答1: You can do it in the path definition using path parameters and operation switches to

Integrity checksum failure while installing API Connect toolkit #apiconnect

做~自己de王妃 提交于 2019-11-27 22:16:51
I'm getting the following error while installing API Connect toolkit: sha1-UhOHSxsj+deaxi0QbjKXDirzcn8= integrity checksum failed when using sha1: wanted sha1-UhOHSxsj+deaxi0QbjKXDirzcn8= but got sha1-208ds/bfbkHrcce1kMfz2sLUPhs=. (627039 bytes) Node version:- 6.10.3 NPM version:- 5.0.1 I'm trying to install API Connect toolkit on a windows 7 workstation (64-bit) using npm install -g apiconnect command. What could be the next steps for fixing this issue ? aircraft I encountered this issue, fortunately, I find the solution in Github : this is caused by the package-lock.json , so I delete it: rm

Integrity checksum failure while installing API Connect toolkit #apiconnect

谁说胖子不能爱 提交于 2019-11-27 04:34:17
问题 I'm getting the following error while installing API Connect toolkit: sha1-UhOHSxsj+deaxi0QbjKXDirzcn8= integrity checksum failed when using sha1: wanted sha1-UhOHSxsj+deaxi0QbjKXDirzcn8= but got sha1-208ds/bfbkHrcce1kMfz2sLUPhs=. (627039 bytes) Node version:- 6.10.3 NPM version:- 5.0.1 I'm trying to install API Connect toolkit on a windows 7 workstation (64-bit) using npm install -g apiconnect command. What could be the next steps for fixing this issue ? 回答1: I encountered this issue,