11 Replies Latest reply on Jul 5, 2017 12:36 AM by twelvetens

    FM16 CURL alternative for MBS (SetInputText)


      I've got a solution which uses the MBS plugin to make CURL requests, and I'd like to port this functionality to the new native FMP Insert From URL script step.


      Currently, I use the MBS script steps to define things like header options, which I know I can do using the new cURL options under Insert From URL, but the way I used the MBS plug in was to define a pre-formatted input text string that adhered to the WDSL (this was for a magento integration).


      So my existing script steps look something like this:


      Screen Shot 2017-06-29 at 12.04.23.png


      Where, critically, the value deinfed in the MBS "CURL.SetInputText" step was defined as something like this:


      MBS("CURL.SetInputText"; $curl;



      "<?xml version=\"1.0\" encoding=\"utf-8\"?>

      <soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:Magento\">



            <urn:login soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">

               <username xsi:type=\"xsd:string\">" & $username & "</username>

               <apiKey xsi:type=\"xsd:string\">" & $password & "</apiKey>








      And this worked fine when I execute the MBS CURL.Perform step.


      What I want to know now is, how do I do this using the native tools? I've been trying to form my own list of cURL options using Wim's CF's in this post, cURL options - no need to remember the syntax ,


      But I don't really know to define that operation I want to do, in this example, is 'login'.


      Can anyone give me any clues?


      Thanks in advance...