WS-REST Request

Clovertech Forums Cloverleaf WS-REST Request

  • Creator
    Topic
  • #119843
    MiteshBhatt
    Participant

      Hello Team – I am very grateful to this forum as I have got assistance in past. I need one more help related to WS_REST request.

      We have a public facing load balancer which has a rule that when it sees /ws-fhir in the URL it will fwd. the request to this interface in Cloverleaf at port 8081 (as shown in screenshot) and will do a BASIC AUTH.

      When i hit the URL https://LOADBALANCER.COM/ws-fhir I get the username/pwd fields to enter, upon entering correct credentials I get a 404/Jetty Error.

      This makes me believe the request did hit Cloverleaf but since nothing was present on Cloverleaf it threw 404 error.

      Now the question is –

      1. What do i need to configure in Cloverleaf to receive the JSON/XML if posted through API? Do i need to change “Address” in RestProvider ? as currently it is pointing to https://localhost:8081/server/path (default).

       

      Can someone pls. help! Thanks in advance.

      I can be reached at Mitesh.Bhatt@Wolterskluwer.com if someone has time to spare. thank you again!!

       

       

      • This topic was modified 2 years, 5 months ago by MiteshBhatt.
      Attachments:
      You must be logged in to view attached files.
    Viewing 1 reply thread
    • Author
      Replies
      • #119847
        MiteshBhatt
        Participant

          Hi – I modified the REST PROVIDER from default path to

          https://localhost:8081/ws-fhir and now i see the requests coming in.

           

          The only problem I have now is,

          If i hit the URL from Browser, I see the request in, with Error in Cloverleaf as EOF Prolounge.

          And I hit the same URL from PostMan i dont see anything coming to Cloverleaf and the request times out in POSTMAN,

          Any thoughts why the GET Request from POSTMAN is dying?

        • #119848
          MiteshBhatt
          Participant

            I tried the calls using SOAP UI as someone mentioned in some other thread, as POSTMAN is missing some headers that CLOVERLEAF needs, and I get the request visible in Cloverleaf. But it is sending HTTP 500 back to CLIENT.

            Any thoughts what is EOF Prolog exception here?

            [java:java:INFO/1:ite_ws_process_cmd:07/07/2022 18:06:54] org.apache.cxf.services.RESTProviderService.RESTProviderPort.RESTProvider:INFO: Outbound Message
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] —————————
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] ID: 6
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] Response-Code: 500
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] Encoding: UTF-8
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] Content-Type: text/xml
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] Headers: {}
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] Payload: <ns1:XMLFault xmlns:ns1=”http://cxf.apache.org/bindings/xformat”><ns1:faultstring xmlns:ns1=”http://cxf.apache.org/bindings/xformat”>com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] at [row,col {unknown-source}]: [1,0]</ns1:faultstring></ns1:XMLFault>
            [java:java:INFO/1:ite_ws_process_cmd:–/–/—- –:–:–] ————————————–
            Engine idle — 07/07/2022 18:07:04

             

             

             

             

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.