Forum Discussion

Narasimharao's avatar
Narasimharao
Contributor
13 years ago

how to add jms properties to WSDLRequestStep

Hi,

Iam working on a migration sample. We have sample request files that need to be migrated to soapui. Created com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep and added JMS headers but i am facing problem finding API for adding JMS properties(using java code). Please suggest how to add JMS properties using java api.

Thanks,
Narasimharao

3 Replies

  • Hi Support Team,

    Could you guide me in this as iam doing a PoC to migrate current request to soapui project and it is very important/urgent.

    Thanks,

    Narasimharao
  • Hi,

    I figured out how to add a jms property to soaprequest step. here the code using java

    JMSPropertyConfig soapActionJMSProperty = JMSPropertyConfig.Factory.newInstance();
    soapActionJMSProperty.setName(jmsPropName);
    soapActionJMSProperty.setValue(jmsPropValue);
    requestStep().getJMSPropertiesConfig().getJMSProperties().add(soapActionJMSProperty);

    Thanks,
    Narasimharao
  • MRtai2's avatar
    MRtai2
    Occasional Contributor
    sorry to bring a dead thread back to life. Just wanted to thank Narasimharao for this code snippet. Saved me X amount of hours THANKS!