Forum Discussion

mwsrosso's avatar
mwsrosso
New Contributor
14 years ago

Parameterise Security Token in a Soap Header

I have just started using SoapUI Pro and have come across a problem I cannot resolve.

I have 2 test steps the first makes a Soap call to retrieve a GUID and the 2nd needs to use the GUID to make a further Soap call.

I can capture the GUID from the first step however when trying to transfer to a filed in the Soap header in the 2nd step using a property transfer, the only fields I can select are those in the Soap body.

Im trying to populate the GUID param in the line from my Soap header


<wsse:BinarySecurityToken QualficationValueType="http://MyURL/MyCode#ResourceAccessToken">GUID</wsse:BinarySecurityToken>



can anyone help?

Mark Smith

1 Reply

  • mwsrosso's avatar
    mwsrosso
    New Contributor
    If it helps anyone I managed to resolve this using a DataGen step and capturing the data with Groovy using it's Xpath with the code below. I was then able to plugh the myGUID into the next Soap call.
    def myGUID = context.expand( '${Get-GUID#Response#declare namespace ns4=\'http://services.rt.fs.documentum.emc.com/\'; //ns4:registerResponse[1]/return[1]}' )



    Mark Smith.