Announcement

Collapse

NextGen (Mirth) Connect 3.10.0 Released!

NextGen (Mirth) Connect 3.10.0 is now available as an appliance update and on our GitHub page. This release includes better SQL Server database support, security improvements through fixes and library updates, and improvements for the Advanced Clustering plugin with a focus on improving performance of many of the tasks that are carried out on a frequent interval. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Calling an external web service from transformer

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

  • Calling an external web service from transformer

    Mirth 1.5 w/ JRE 1.6 Windows Server 2000 SP4
    =========

    I have a web service written in ASP.NET 2.0 and running on a different box. It takes an integer parameter and returns a string.

    How do I call (consume) this webservice from Mirth transformer JavaScript step?

    Thanks in advance!

  • #2
    Mule and .NET Web Services FAQ

    Came across the following FAQ:
    Mule and .NET Web Services FAQ
    http://mule.mulesource.org/download/...8-10_10_43.pdf

    How can I call a .NET Web Service from Mule?

    The request and paramters used to access a .NET Web Service have to be sent as SOAP messages. For this reason you can generally use either Axis or Xfire transports to do so. View the following cookbook entry to view how this can be done.
    http://mule.mulesource.org/display/M...ice+using+Axis
    http://mule.mulesource.org/display/M...es+using+XFire

    Q1: Is this something that can be used with Mirth?
    Q2: Can I get sample code to call a .NET web service from Mirth?

    Thanks in advance!

    Comment


    • #3
      Re:Calling an external web service from transformer

      Refer Issue Tracker http://www.mirthproject.org/communit...owse/MIRTH-409

      Comment


      • #4
        Re:Calling an external web service from transformer

        Hi, nshaik ... This post is related to call a .net WS from JS or from an ordinal SOAP Sender?

        I've been working with ordinal SOAP Senders against .NET WS without a problem (well, this is not 100% right).

        I made some changes to the WS code, but they were related to support HTTP basic-auth and NTLM security.

        The link you've posted are related to WS-Security. Is this your problem?

        Comment


        • #5
          Re:Calling an external web service from transformer

          Hello Alberto,

          This post is related to call a .net WS from JS or from an ordinal SOAP Sender?
          Call a .NET web service from JS and also process the return value from WS. But the request added to JIRA does not specifically mention .NET web service. I thought we should be able to call any external web service (written in .NET or otherwise) from JS in Mirth and hence kept the request generic.
          The link you've posted are related to WS-Security. Is this your problem?
          I'm not sure if the links referring to mulesource.org specifically refers to WS-Security. When I started working on trying to call a WS from JS, I just came across that link and was hoping I could help from the forum.

          As regards WS-Security, in the workaround suggested by Chris, I haven't implemented security yet but will start working on it shortly. As I understand, Mirth does provide basic WS-Security in terms of user id and password only for now.

          Comment


          • #6
            Re:Calling an external web service from transforme

            Ok.

            I solved the problem using two destinations (each destination can access to the response of the previous destination).

            BTW.. ┬┐What is the 'workaround suggested by Chris' ?

            Comment


            • #7
              Re:Calling an external web service from transformer

              Similar. The channel I was working on was a "Database to FileWriter". The suggested workaround was to create two destinations. "Destination 1 - WS Call" and "Destination 2 - FileWriter" which processed the result back from destination 1.

              Comment

              Working...
              X