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?
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
Post a Comment