Forum Discussion
irene_smile
16 years agoOccasional Contributor
Thank you for the help! I was able to set the Media type to application/xml and send the request that had no input params.
I am now looking to send a request that input parameters. Here is what I did: the same service exists in both SOAP and REST. I have a SOAPUI request that works for SOAP. I cut and past the SOAP request into the body of Rest Request, removed the tag and tags. But I am seeing exceptions that indicate inability to parse contents.
15:30:45,145 ERROR [STDERR] Wed 2009/01/28 15:30:45.145|***|http-0.0.0.0-8080-1|
SynchronousDispatcher|org.jboss.resteasy.spi.LoggableFailure: Failure extracting
body
org.jboss.resteasy.spi.LoggableFailure: Failure extracting body
at org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBo
dyParameterInjector.java:81)
at org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInje
ctorImpl.java:93)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.
java:114)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.
java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232
)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166
)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(Dispatch
erUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
If I have a request in that works for SOAP, how do I send the same request in REST?
Thanks!
I am now looking to send a request that input parameters. Here is what I did: the same service exists in both SOAP and REST. I have a SOAPUI request that works for SOAP. I cut and past the SOAP request into the body of Rest Request, removed the
15:30:45,145 ERROR [STDERR] Wed 2009/01/28 15:30:45.145|***|http-0.0.0.0-8080-1|
SynchronousDispatcher|org.jboss.resteasy.spi.LoggableFailure: Failure extracting
body
org.jboss.resteasy.spi.LoggableFailure: Failure extracting body
at org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBo
dyParameterInjector.java:81)
at org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInje
ctorImpl.java:93)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.
java:114)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.
java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232
)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166
)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(Dispatch
erUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
If I have a request in that works for SOAP, how do I send the same request in REST?
Thanks!
Related Content
Recent Discussions
- 8 days agoemoya