I have a WebService(Soap)Request that is working and I get a response back in 
results tree:

<NewDataSet>? <Table>??? <Town>Eltham</Town>??? <County>Greater 
London</County>??? <PostCode>SE9</PostCode>? </Table>? <Table>??? 
<Town>Mottingham</Town>??? <County>Greater London</County>??? 
<PostCode>SE9</PostCode>? </Table>? <Table>??? <Town>New Eltham</Town>??? 
<County>Greater London</County>??? <PostCode>SE9</PostCode>? </Table>? 
<Table>??? <Town>Well Hall</Town>??? <County>Greater London</County>??? 
<PostCode>SE9</PostCode>? </Table>? <Table>??? <Town>Avery Hill</Town>??? 
<County>Greater London</County>??? <PostCode>SE9</PostCode>? 
</Table></NewDataSet>

So i then (after this step) added a Regular Expression Extractor to try and 
pull out a value for Town:

Response Field to Check:? (i have tried both Response Message and Body its not 
clear which one I should be using for XML?)
Reference Name: town
Regular Expression: <Town>(.+*)</Town>
Template: $1$
Match No.:? 1
Default Value: failed

In the next WebService Sampler I have the following as my SOAP Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:web="http://www.webserviceX.NET";>
?? <soapenv:Header/>
?? <soapenv:Body>
????? <web:GetUKLocationByTown>
??????? 
<web:Town>${town}</web:Town>
???????? 
????? </web:GetUKLocationByTown>
?? </soapenv:Body>
</soapenv:Envelope>

Using this to insert the value of what I got from the Regular Expression 
Extractor before it.? However I have tried many combinations of variables in 
the Regular Expression Extractor form but I still get "failed" as the value 
that gets passed along in this second WebService Sampler.? Any ideas?? 

Thanks
Matthew

Reply via email to