How do I invoke a MobileFirst Platform Adapter using PUT? -


this similar question asked here, question not answered problem is.

customer.xml

<?xml version="1.0" encoding="utf-8"?> <wl:adapter name="customer"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"      xmlns:wl="http://www.ibm.com/mfp/integration"     xmlns:http="http://www.ibm.com/mfp/integration/http">      <displayname>customer</displayname>     <description>customer</description>     <connectivity>         <connectionpolicy xsi:type="http:httpconnectionpolicytype">             <protocol>https</protocol>             <domain>kenatibm.cloudant.com</domain>             <port>443</port>         </connectionpolicy>     </connectivity>      <procedure name="addcustomer"> </procedure>  </wl:adapter> 

customer-impl.js

function addcustomer(param1) {      var input = {         method : 'put',         returnedcontenttype : 'json',         path : 'userinputrequired',         body : {             contenttype: 'application/json',             content : param1         }     };      return wl.server.invokehttp(input); } 

the issue though have defined method put, when testing using file run | call mobilefirst adapter user interface displays method, there no option put.

so answer put or bug or there configuration parameter missing?

enter image description here

i think confusing how invoke/test adapter, verb uses on back-end system calling. testing/invoking using get, adapter calling backend system - http://kenatibm.cloudant.com/backendsystem - using put.

this broadly same explanation dave gave in previous question.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -