Announcement

Collapse
No announcement yet.

How to load wsdl from a file

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

  • #16
    Originally posted by cmcwhorter View Post
    Maybe this is a dumb question, but Do you have to be running a webserver in order to use the Mirth web services listener?
    I've setup a web services listener, when I put the url in a web browser, i get:
    "Web Services"
    "No JAX-WS context information available"
    Nope, the channel will be acting as the server. Did you deploy your channel? Are you running the browser on the same machine as the Mirth Connect server? What URL did you use?
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


    - How do I foo?
    - You just bar.

    Comment


    • #17
      I ran the browser on the Mirth server and got the same messages. The channel is deployed. This is the URL I am using http://svrie04.gvh.local:6211/services/Mirth.
      Is the correct URL to use: "http://svrie04.gvh.local:6211/services/Mirth?wsdl"?
      cmc

      Comment


      • #18
        Here are the results using this url "http://svrie04.gvh.local:6211/services/Mirth?wsdl"

        <?xml version="1.0" encoding="UTF-8" ?>
        - <!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.6 in JDK 6.
        -->
        - <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.6 in JDK 6.
        -->
        - <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.connectors.connect.mirth.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://ws.connectors.connect.mirth.com/" name="DefaultAcceptMessageService">
        - <types>
        - <xsd:schema>
        <xsd:import namespace="http://ws.connectors.connect.mirth.com/" schemaLocation="http://svrie04.gvh.local:6211/services/Mirth?xsd=1" />
        </xsd:schema>
        </types>
        - <message name="acceptMessage">
        <part name="parameters" element="tns:acceptMessage" />
        </message>
        - <message name="acceptMessageResponse">
        <part name="parameters" element="tns:acceptMessageResponse" />
        </message>
        - <portType name="DefaultAcceptMessage">
        - <operation name="acceptMessage">
        <input message="tns:acceptMessage" />
        <output message="tns:acceptMessageResponse" />
        </operation>
        </portType>
        - <binding name="DefaultAcceptMessagePortBinding" type="tnsefaultAcceptMessage">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        - <operation name="acceptMessage">
        <soapperation soapAction="" />
        - <input>
        <soap:body use="literal" />
        </input>
        - <output>
        <soap:body use="literal" />
        </output>
        </operation>
        </binding>
        - <service name="DefaultAcceptMessageService">
        - <port name="DefaultAcceptMessagePort" binding="tnsefaultAcceptMessagePortBinding">
        <soap:address location="http://svrie04.gvh.local:6211/services/Mirth" />
        </port>
        </service>
        </definitions>
        cmc

        Comment


        • #19
          Looks correct to me at first glance. What's the problem?
          Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

          Nicholas Rupley
          Work: 949-237-6069
          Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


          - How do I foo?
          - You just bar.

          Comment


          • #20
            I am hoping to use this to receive from an ITI-41 vendor interface, however the vendor is indicating it is not configured to receive any type of message they would send.
            Would the vendor send to this address?
            "http://svrie04.gvh.local:6211/services/Mirth?wsdl"
            cmc

            Comment


            • #21
              I know this post has aged, however I would like to know if this public_html can be used for a WSDL file used on a Web Listener? I am working on Help Desk Integration and would like to take the same WSDL for the inbound say Application A publishes and use it on a WebService Listener for the Mirth Connect Engine to Receive mainly for the structure.

              If I have a WSDL for Application A and a WSDL for Application B, I can transform as necessary while being able to talk to each application in their own language.

              Application A Source WS Listener with destination Application B Destination WS Sender
              Application B Source WS Listener with destination Application A Destination WS Sender

              Many times, what an app wants is also what it sends out....I am having difficulty getting the application data unsolicited inbound since they need to map it to individual fields as opposed to <args>?</args> even using CDATA.

              Comment


              • #22
                If you want a custom/specific WSDL to be loaded for your web service listener, well one option is to create your own custom web service class, and there are annotations you can use to point to a file. Or, another option is to use the Static Resources feature added to the HTTP Listener. Basically you can make an HTTP Listener act as if it was a Web Service Listener quite easily, by using static resources for your WSDL and any XSDs, etc. The only difference is that when you channel receives a message, it will receive the entire SOAP envelope, instead of just the data that is sent via processData (for the default class, that's just the content of that single argument node). Similarly the channel would be expected to return an appropriate SOAP response.
                Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

                Nicholas Rupley
                Work: 949-237-6069
                Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


                - How do I foo?
                - You just bar.

                Comment

                Working...
                X