Skip to content

bonita_connector_notes

Gabor Szarnyas edited this page Apr 4, 2015 · 1 revision

Creating a New WS Connector

Source: http://www-inf.int-evry.fr/cours/WebServices/TP_Workflow/publish_news.html

Set the Content-Type, application/soap+xml

  1. Write the following code:

    import javax.xml.transform.dom.DOMSource;
    
    def output = (DOMSource) responseDocumentBody
    def ret = []
    def apps =
       output.getNode().
       childNodes.item(0).
       childNodes.item(1).
       childNodes.item(0).
       childNodes
    
    for (int i = 0; i < apps.length; i++) {
       ret.add(apps.item(i).textContent)
    }
    return ret

    Set the Return type to q java.util.List.

Lab material

MDSD 2021

MDSD 2020

MDSD 2019

(Gradually replaced with updated content)

MDSD 2018

MDSD 2017

MDSD 2016

MDSD 2015

MDSD 2014

System Integration 2014

Clone this wiki locally