drnet
12 years agoNew Contributor
Create request, get respone
I am currently working on plugin for soapUI.
Plugin is a RequestFilter. It filters all request and if encounters <SignRequired> tag in header, it performs custom signature of request, using properties file defined in tag.
Right now I get token with custom signed request in soapUI, save the responce to file and then use it in signature process.
It works fine now.
Now I need to automaticaly refresh token before signature process.
The question is - how to execute token Request before returning filtered request back to soapUI. (example code will be very helpfull)
Plugin is a RequestFilter. It filters all request and if encounters <SignRequired> tag in header, it performs custom signature of request, using properties file defined in tag.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ejb="http://ejb.jaxws/">
<soapenv:Header><SignRequired prefsFile="D:\singReq\signProperties.properties"/>
</soapenv:Header>
<soapenv:Body>
<ejb:echo>
<!--Optional:-->
<message>some message</message>
</ejb:echo>
</soapenv:Body>
</soapenv:Envelope>
Right now I get token with custom signed request in soapUI, save the responce to file and then use it in signature process.
It works fine now.
Now I need to automaticaly refresh token before signature process.
The question is - how to execute token Request before returning filtered request back to soapUI. (example code will be very helpfull)