sending http request from PLSQL, receiving it by Spring Integration and replying -
I am trying to send http request from PLSQL. It works fine.
HttpRequest: = UTL_HTTP.BEGIN_REQUEST (url = & gt; v_http_url, METHOD = & gt; 'POST'); Utl_http.set_header (HttpRequest, 'content-type', 'text / xml; charset = UTF-8'); Utl_http.set_header (HttpRequest, 'content-length', 64); Utl_http.write_line (HttpRequest, 'some string'); Httpresp: = utl_http.get_response (HttpRequest); Utl_http.end_request (HttpRequest); Utl_http.end_response (Httpresp); Spring integration side:
& lt; Int: channel id = "input channel" /> & lt; Int: channel id = "output channel" / & gt; & Lt; Int-http: inbound-gateway request-channel = "input channel" answer-channel = "output channel" supported-methods = "post" name = "/ recycle" message-converters = "MyRequestConverter" request-payload-type = " MyRequest "& gt; & Lt; / Integer - http: inner gateway & gt; & Lt; Int: service-catalyst input-channel = "input channel" method = "received message" riff = "dbmoc" & gt; & Lt; / Int: Service-Trigger & gt; I created MyRequestConverter with methods:
Read MyRequest Inside (class public object getMessage (@ headers map & lt; string, object & gt; header, request @Payload MyRequest) Payload)
The problem is that the PLSQL site does not get the answer - it waits endlessly when I comment
HT PF = Utiel_ http.get_response (Actiteepiandist) Pielsyuel process is executed successfully Also I have no converter for exceptions that get Jawaklingkstring.
Is there any way to use Microcost Coronavor in the opposite direction?
Thanks for any help!
You are setting content length to 64, but only send 11 bytes. The server is waiting for more data.
Comments
Post a Comment