Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10808

OTRS integration doesn't properly validate SOAP responses

    XMLWordPrintable

    Details

      Description

      While debugging the new OTRS integration, after fixing HZN-513, I found out that OpenNMS failed to validate SOAP responses:

      OpenNMS logs:

      2015-11-04 16:14:52,019 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleMessage on interceptor org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor@f59abec
      2015-11-04 16:14:52,023 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor@f59abec
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.jaxb.attachment.JAXBAttachmentSchemaValidationHack@38f43400
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor@2237075d
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@283b6ecb
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.binding.soap.interceptor.StartBodyInterceptor@6073c674
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@2d32c46f
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@5b5960cc
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.frontend.WSDLGetInterceptor@2e518316
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.interceptor.StaxInInterceptor@38b69f03
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@47c3eb2f
      2015-11-04 16:14:52,024 DEBUG [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Invoking handleFault on interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@109d911f
      2015-11-04 16:14:52,025 WARN [OpenNMS.TroubleTicketer-Thread] o.a.c.p.PhaseInterceptorChain: Interceptor for

      {http://www.otrs.org/TicketConnector/}

      GenericTicketConnector#

      {http://www.otrs.org/TicketConnector/}

      TicketCreate has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: Unexpected element

      {http://www.otrs.org/TicketConnector}

      TicketCreateResponse found. Expected TicketCreateResponse.

      It is obviously not expecting the namespace in the SOAP response.

        Attachments

          Activity

            People

            • Assignee:
              stcyr Cyrille Bollu
              Reporter:
              stcyr Cyrille Bollu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: