REST HEAD to SOAP ping

34 views
Skip to first unread message

gcr...@gmail.com

unread,
Sep 18, 2015, 1:41:32 AM9/18/15
to membrane-monitor
Hi Membrane Group,

I have been going through the examples and doing some research. The REST2SOAP is what iam particularly interested in. I have 2 questions. 1) Is it possible to deal with a REST HEAD request to a SOAP ping? and 2) If my application does a GET and the body is empty I get this error

 

14:41:58,973  INFO LogInterceptor:127 - ==== Request ===
14:41:58,974  INFO LogInterceptor:127 - GET /api/now/table/event/ServiceNow:INC333995: HTTP/1.1
14:41:58,974  INFO LogInterceptor:127 - Headers:
14:41:58,974  INFO LogInterceptor:127 - Accept: application/xml
Authorization: Basic --removed-
Content-Type: application/xml
User-Agent: Wink Client v1.0
Host: -removed-:2003
Connection: keep-alive
X-Forwarded-For: 10.161.67.13
14:41:58,974  INFO LogInterceptor:127 - ================
14:41:58,975 DEBUG InterceptorFlowController:104 - Invoking request handler: Regex Replacer on exchange: [time:Sep 18, 2015,requestURI:/api/now/table/event/ServiceNow:INC333995:]
14:41:58,975 DEBUG InterceptorFlowController:104 - Invoking request handler: REST 2 SOAP Gateway on exchange: [time:Sep 18, 2015,requestURI:/api/now/table/event/ServiceNow:INC333995:]
14:41:58,975 DEBUG REST2SOAPInterceptor:166 - uri: /api/now/table/event/ServiceNow:INC333995:
14:41:58,976 DEBUG Header:370 - type: application
14:41:58,976 DEBUG Header:371 - subtype: xml
14:41:58,976 DEBUG Header:372 - parameters: null
14:41:58,978 DEBUG InterceptorFlowController:145 - Invoking abortion handler: Regex Replacer on exchange: [time:Sep 18, 2015,requestURI:/api/now/table/event/ServiceNow:INC333995:]
14:41:58,978 DEBUG InterceptorFlowController:145 - Invoking abortion handler: Log on exchange: [time:Sep 18, 2015,requestURI:/api/now/table/event/ServiceNow:INC333995:]
14:41:58,978 DEBUG InterceptorFlowController:145 - Invoking abortion handler: Reverse Proxy on exchange: [time:Sep 18, 2015,requestURI:/api/now/table/event/ServiceNow:INC333995:]
14:41:58,979 DEBUG InterceptorFlowController:145 - Invoking abortion handler: Exchange Store Interceptor on exchange: [time:Sep 18, 2015,requestURI:/api/now/table/event/ServiceNow:INC333995:]
14:41:58,980  WARN AbstractHttpHandler:89 - An exception occured while handling a request:
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
Message: Premature end of file.
        at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:601)
        at com.predic8.membrane.core.http.xml.XMLBody.write(XMLBody.java:52)
        at com.predic8.membrane.core.http.xml.Request.write(Request.java:74)
        at com.predic8.membrane.core.config.AbstractXmlElement.toXml(AbstractXmlElement.java:107)
        at com.predic8.membrane.core.interceptor.rest.SOAPRESTHelper.getRequestXMLSource(SOAPRESTHelper.java:56)
        at com.predic8.membrane.core.interceptor.rest.REST2SOAPInterceptor.handleRequest(REST2SOAPInterceptor.java:173)
        at com.predic8.membrane.core.interceptor.InterceptorFlowController.invokeRequestHandlers(InterceptorFlowController.java:106)
        at com.predic8.membrane.core.interceptor.UserFeatureInterceptor.handleRequest(UserFeatureInterceptor.java:43)
        at com.predic8.membrane.core.interceptor.InterceptorFlowController.invokeRequestHandlers(InterceptorFlowController.java:106)
        at com.predic8.membrane.core.interceptor.InterceptorFlowController.invokeHandlers(InterceptorFlowController.java:71)
        at com.predic8.membrane.core.transport.http.AbstractHttpHandler.invokeHandlers(AbstractHttpHandler.java:70)
        at com.predic8.membrane.core.transport.http.HttpServerHandler.process(HttpServerHandler.java:225)
        at com.predic8.membrane.core.transport.http.HttpServerHandler.run(HttpServerHandler.java:111)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
14:41:58,981 DEBUG HttpServerHandler:242 - exchange set completed

Is this a known bug?

Regards,

Reply all
Reply to author
Forward
0 new messages