Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
MG2020
Contributor
Contributor

problem using tRESTRequest wirh post methode

I want to do the tutorial :

Scenario 3: REST service accepting HTTP POST requests

https://help.talend.com/reader/mjoDghHoMPI0yuyZ83a13Q/y7ItlNI_TXLt0PkK6AuSUg

I am using Talend open studio for ESB 7.3.1

i have done all the steps correctly but i got error when passing data in URL

0693p000008vB6xAAE.png

0693p000008vBA5AAM.png

if i pass url with parametter

http://localhost:8045/users/post/1/firstname1/lastname1

i got :

ERR_CONNECTION_REFUSED on browser

--------------------------------------------------------------------

Starting job HTTP_POST at 13:21 15/07/2020.

Endpoint deployed at: http://localhost:8045/users

[statistics] connecting to socket on port 3602

[statistics] connected

Jul 15, 2020 1:21:25 PM org.apache.cxf.endpoint.ServerImpl initDestination

INFOS: Setting the server's publish address to be http://localhost:8045/users

[WARN ] 13:21:27 org.eclipse.jetty.server.handler.ContextHandler- Empty contextPath

Jul 15, 2020 1:21:50 PM org.apache.cxf.interceptor.LoggingInInterceptor

INFOS: Inbound Message

----------------------------

ID: 1

Address: http://localhost:8045/users/post/1/firstname1/lastname1

Http-Method: GET

Content-Type: 

Headers: {Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9], accept-encoding=[gzip, deflate, br], Accept-Language=[en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7,ar;q=0.6], Cache-Control=[max-age=0], connection=[keep-alive], Content-Type=[null], Host=[localhost:8045], Sec-Fetch-Dest=[document], Sec-Fetch-Mode=[navigate], Sec-Fetch-Site=[none], Sec-Fetch-User=[?1], Upgrade-Insecure-Requests=[1], User-Agent=[Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36]}

--------------------------------------

Jul 15, 2020 1:21:51 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse

AVERTISSEMENT: javax.ws.rs.ClientErrorException: HTTP 405 Method Not Allowed

at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:117)

at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:168)

at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:514)

at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:181)

at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78)

at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)

at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)

at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:247)

at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:79)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:205)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)

at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)

at org.eclipse.jetty.server.Server.handle(Server.java:505)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)

at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)

at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)

at java.lang.Thread.run(Unknown Source)

Jul 15, 2020 1:21:52 PM org.apache.cxf.interceptor.LoggingOutInterceptor

INFOS: Outbound Message

---------------------------

ID: 1

Response-Code: 405

Content-Type: 

Headers: {Content-Type=[application/xml], Date=[Wed, 15 Jul 2020 17:21:52 GMT], Content-Length=[0]}

--------------------------------------

Labels (5)
0 Replies