Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
15 years ago

Why does messageExchange.getRawRequestData() return null

In a script assertion the messageExchange object is available. The API shows a getRawRequestData() and getRawResponseData() for this object, but both of these return null when I call them in a script assertion. Is this expected?
  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    I see that I can call

    [tt:2p754b0u]messageExchange.response.getRawResponseData()[/tt:2p754b0u]

    and

    [tt:2p754b0u]messageExchange.response.getRawRequestData()[/tt:2p754b0u]

    and get data, but why don't the wrapper methods in messageExchange work?
  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Doing

    [tt:f69m0k01]log.info messageExchange.class[/tt:f69m0k01]

    in a Script assertion I get

    [tt:f69m0k01]com.eviware.soapui.impl.wsdl.teststeps.WsdlResponseMessageExchange[/tt:f69m0k01]