Forum Discussion

jdudleyh's avatar
jdudleyh
New Contributor
12 years ago

JMS

Greetings,

I have a JMS (TIBCO EMS) queue that I'm trying to send data to from SoapUI. I have a working Hermes connection and can successfully upload a file via Hermes to the JMS queue (which the app picks up and writes to the database). The XML data file that I'm sending via Hermes looks something like the following:

<?xml version = "1.0" encoding = "UTF-8"?>
<DataPackage xmlns = "http://www.company.com/services/Init">
<Element1>blah</Element1>
<Element2>foo</Element2>
<Element3>yada</Element3>
<SendTime>2014-10-16T23:47:26Z</SendTime>
<Etc>more data</Etc>
</DataPackage>


Now I just need to hook this into SoapUI. I followed the tutorial and have a nice test case with a SOAP Request step using my jms:// endpoint (with the queue name in it).

Unfortunately the demo results in a "login" operation from "SampleServiceSoapBinding".

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://www.example.org/sample/">
<soapenv:Header/>
<soapenv:Body>
<sam:login>
<username>?</username>
<password>?</password>
</sam:login>
</soapenv:Body>
</soapenv:Envelope>


I tried going to the XML tab on the request and replacing the soap envelope with my XML data, but that didn't seem to do the trick when I submitting the request. I did get the message in the soapUI log:
Tue Aug 06 17:21:34 EDT 2013:INFO:Got response for [SampleServiceSoapBinding.login:Test Request] in 191ms (0 bytes)

I'm not trying to do SOAP over JMS. Just JMS like I did with Hermes. Is this possible?
  • SOAPUI with Hermes will always send a soap over jms. If you are intended to use just jms message you may use groovy script to call TIBCO EMS API to communicate jms message. Hope this helps.
  • nmrao's avatar
    nmrao
    Champion Level 3
    SOAPUI with Hermes will always send a soap over jms. If you are intended to use just jms message you may use groovy script to call TIBCO EMS API to communicate jms message. Hope this helps.
    • soapuitester999's avatar
      soapuitester999
      Occasional Contributor

      I'm having the same question, and thanks for the relevant answer. Cheers