HelloWorld using Drools Workbench & KIE Server

后端 未结 3 547
无人共我
无人共我 2021-01-25 01:37

Have KIE Drools Workbench 6.2.0 Final installed inside a JBoss 7 Application Server local instance and Kie Server 6.2.0 Final inside a local Tomcat 7 instance.

Using th

相关标签:
3条回答
  • 2021-01-25 02:17

    are you ok?

    The response of Esteban is right, but, you should add a another header, the header that you need to add is "Authorization", and the value of Authorization is the user that you registered to you application realm to your kie-server converted in base64. e.g.:

    kieserver:system*01

    converted to base64:

    a2llc2VydmVyOnN5c3RlbSowMQ==

    Anyway, the complete header of my request is like this:

    Authorization : Basic a2llc2VydmVyOnN5c3RlbSowMQ==
    Content-Type  : application/xml
    

    I hope it was helpful.

    Sorry for my english! :)

    0 讨论(0)
  • 2021-01-25 02:20

    I got it working with using Postman (Chrome app / plugin) with the Authorization tab selected to No Auth. Really cool response!

    <response type="SUCCESS" msg="Container helloworld successfully called.">
         <results>
             <![CDATA[<execution-results>
               <result identifier="message">
                    <demo.HelloWorld>
                        <message>Joe</message>
                    </demo.HelloWorld>
               </result>
               <fact-handle identifier="message" external-form="0:4:1864164041:1864164041:4:DEFAULT:NON_TRAIT"/>
    </execution-results>]]>
               </results>
    </response>
    
    0 讨论(0)
  • 2021-01-25 02:21

    What content type are you using in your POST request header? As far as I remember, that error message happened if you didn't provide a content-type: application/xml in your request's header.

    Hope it helps,

    0 讨论(0)
提交回复
热议问题