Announcement

Collapse
No announcement yet.

Web Service Connector error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Web Service Connector error

    I found this error when i send a xml data from a file to remote web service



    ERROR-410: Web Service Connector error
    ERROR MESSAGE: Error connecting to web service.
    com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Error during saving a multipart message
    at com.sun.xml.internal.messaging.saaj.soap.MessageIm pl.saveChanges(Unknown Source)
    at com.mirth.connect.connectors.ws.WebServiceMessageD ispatcher.processMessage(WebServiceMessageDispatch er.java:131)
    at com.mirth.connect.connectors.ws.WebServiceMessageD ispatcher.doDispatch(WebServiceMessageDispatcher.j ava:82)
    at com.mirth.connect.connectors.ws.WebServiceMessageD ispatcher.doSend(WebServiceMessageDispatcher.java: 169)
    at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:164)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130)
    at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85)
    at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:54)

  • #2
    I found this error when i tried to send a large xml file
    but when i tried to send a small file its work......

    Comment


    • #3
      I have the same problem with a short message. My Mirth version is the 2.0.1.5164.

      ERROR-410: Web Service Connector error
      ERROR MESSAGE: Error connecting to web service.
      com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Error during saving a multipart message
      at com.sun.xml.internal.messaging.saaj.soap.MessageIm pl.saveChanges(Unknown Source)
      at com.mirth.connect.connectors.ws.WebServiceMessageD ispatcher.processMessage(WebServiceMessageDispatch er.java:137)
      at com.mirth.connect.connectors.ws.WebServiceMessageD ispatcher.sendPayload(WebServiceMessageDispatcher. java:190)
      at org.mule.providers.QueueEnabledConnector$QueueWork er.run(QueueEnabledConnector.java:218)
      at java.lang.Thread.run(Unknown Source)
      Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Unable to get header stream in saveChanges:
      ... 5 more
      Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: SOAP exception while trying to externalize:

      Comment


      • #4
        Did you find a solution for this one? I have the same issue in a channel hitting a tried and true web service.

        Comment


        • #5
          No I didn't!

          Can someone help us about this issue?

          Comment


          • #6
            Ok, so I finally got a solution. The problem is in the Envelope that MIRTH generates. If we travel to the end of the trace it says:
            InputStream does not represent a valid SOAP 1.2 Message

            So I used SoapUI to generate the envelope for the SOAP 1.2 and copied to the envelope and it works!!

            I hope this helps you too.

            Comment


            • #7
              I am trying to use Web Service as destination.

              I use http://soap.amazon.com/schemas2/AmazonWebServices.wsdl

              SOAP envelope is getting created.

              But I am getting the following error after deploying:

              ERROR-410: Web Service Connector error
              ERROR MESSAGE: Error connecting to web service.

              Not finding anything related to Inputstream as mentioned in the previous comment.

              Please help me out.
              Last edited by sreepk; 11-19-2012, 09:11 PM.

              Comment


              • #8
                I am trying to use Web Service as destination.

                I use http://soap.amazon.com/schemas2/AmazonWebServices.wsdl

                SOAP envelope is getting created.

                But I am getting the following error after deploying:

                ERROR-410: Web Service Connector error
                ERROR MESSAGE: Error connecting to web service.

                Not finding anything related to Inputstream as mentioned in the previous comment.

                Any idea about this...

                Comment


                • #9
                  Originally posted by sreepk View Post
                  i am trying to use web service as destination.

                  I use http://soap.amazon.com/schemas2/amazonwebservices.wsdl

                  soap envelope is getting created.

                  But i am getting the following error after deploying:

                  Error-410: Web service connector error
                  error message: Error connecting to web service.

                  Not finding anything related to inputstream as mentioned in the previous comment.

                  Any idea about this...


                  Web Service part is working for me. Thank you...

                  Comment


                  • #10
                    Just put tag <![CDATA[${message.rawData}]]> in Destination
                    Like this:
                    <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:tem='http://tempuri.org/'>
                    <soapenv:Header/>
                    <soapenv:Body>
                    <tem:ReceiveData>
                    <tem:data><![CDATA[${message.rawData}]]></tem:data>
                    <tem:fileName>${ORIGINALNAME}</tem:fileName>
                    </tem:ReceiveData>
                    </soapenv:Body>
                    </soapenv:Envelope>

                    Comment

                    Working...
                    X