Forum Discussion

ESLTTester's avatar
ESLTTester
New Contributor
13 years ago

Setting MQ Headers

Hi,

We are using SoapUI Pro to run automated tests against services hosted by Oracle Service Bus.

In particular, several services are initiated via messages placed on a message queue. The MOM we are using is Websphere MQ.

Placing messages on the queue via SoapUI is not a problem and we have been doing this for some time. However, we now need to place some data into specific fields within the MQ header. These fields are Application Id Data and Application Origin Data.

So far we have had no luck in doing this.

We have tried setting custom JMS headers with the appropriate field names but to no avail.

My question is: Is it possible, through SoapUI, to set these fields in the MQ message header? If so, how do we do it?

Kind Regards

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Have you tried using the JMS Properties tab to set these fields? Alternatively, do you know the required Java code to set the fields you need? That may help us see if it is supported or not.

    Regards,
    Dain
    SmartBear Sweden
  • ESLTTester's avatar
    ESLTTester
    New Contributor
    Hi,

    We have tried using the JMS properties but it did not appear to set the relevant MQ header (MQMD) field.

    We will try it again to be certain. I assume that it is a simple mapping between the JMS property name and the MQMD field name.

    We are using MQ version 7.0.1.0 so the property mappings should be in place.

    We do not have the java needed to set the header fields. Up to now it has not been required.

    Thanks